else if statement
Posted: Mon Jul 18, 2011 4:17 pm
I want to slow down a filled region actor, which is parent to many clones, when its y-coordinate is greater that -100
I believe the y-coordinate of a filled region is taken as its top left corner.
Why doesn't the following script work?
if (y>-295 && y<-100){yvelocity=+0.17;}
else if (y>-100){yvelocity=+0.05;}
The script is triggered by activation events sent from the child clones when they collide with other actors
Anyone see the error?
I believe the y-coordinate of a filled region is taken as its top left corner.
Why doesn't the following script work?
if (y>-295 && y<-100){yvelocity=+0.17;}
else if (y>-100){yvelocity=+0.05;}
The script is triggered by activation events sent from the child clones when they collide with other actors
Anyone see the error?