Can "EventActor" be used like other actors?

Game Editor comments and discussion.

Can "EventActor" be used like other actors?

Postby Marcelo_jampa » Thu Mar 31, 2005 1:29 pm

Can i use?

ball.angle = EventActor.angle;
ball.diretional_velocity = EventActor.diretional_velocity;

I' ve tried to do this but it didn' t work. Is there some way to do this?
Marcelo_jampa
 
Posts: 4
Joined: Thu Feb 24, 2005 11:18 am
Score: 0 Give a positive score

Postby jazz_e_bob » Thu Mar 31, 2005 7:59 pm

Hi Marcelo,

EventActor is the actor that called the script.

Your code seems OK providing it is called by the bat/racquet/club.

( otherwise you would simply be assigning values to themselves. )
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Sat Apr 02, 2005 2:10 pm

Just use:

ball.angle = angle;
ball.diretional_velocity = diretional_velocity;
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron