Page 1 of 1

Actor Variables

PostPosted: Wed Jul 16, 2003 12:23 am
by jazz_e_bob
When creating an actor I've created a new variable "mass".

I don't seem to be able to refer to this variable as "collision.mass" within a collision event script.

(I suppose this is because there is no guarantee that the collision object will have a "mass" variable available...)

Suggestions? Workarounds?

PS.

I'm enjoying your editor. Almost finished the tutorial but now I'm sidetracked by bouncing balls... :)

PostPosted: Wed Jul 16, 2003 3:13 am
by makslane
The variables are global, so, is not possible make a collison.mass call.

PostPosted: Wed Jul 16, 2003 5:08 am
by jazz_e_bob
Workaround?

I was hoping that if an actor isn't being used for text I could use "textNumber" as a local variable for that actor.

That way I could clone the actor and change the "textNumber" value for each one.

Unfortunately cloning refers to the same global textnumber variable...