recycle actor help (ignore previous post!)
stackpoole
Melbourne, Victoria, AustraliaMember, PRO Posts: 473
Hi
I have 3 actors that move down and when I touch these three actors they go off the scene (to recycle)
What I want is that when the actors are touched and go off the scene, how can I make the move stop
Thanks for any help!!
I have 3 actors that move down and when I touch these three actors they go off the scene (to recycle)
What I want is that when the actors are touched and go off the scene, how can I make the move stop
Thanks for any help!!
Sydney Swans 2014!!
Best Answers
-
UtopianGames Posts: 5,692Make a boolean "touched" and add if attribute "touched" is false to your move rule.
Then when actor is hit change the boolean touched to true.
Darren. -
MotherHoose Posts: 2,456@brendanzh926 …knowing what behavior controls the movement of those actors
… might get a better answer
your GS project (computer) will always track the X;Y position on any actor
for MLV …
on movingDown actors:
in actorAttributes: Motion… set Linear Velocity.Y to -100 (or whatever speed you like)
add:
Rule: when
Event: touch is pressed
-changeAttribute: self.Position.Y To: 400 (offScreen position)
(here you can add more changeAttributes for count or score)
that should keep things moving
MH
Answers
I have 3 actors that move down and when I touch these three actors they go off the scene (to recycle)
What I want is that when the actors are touched and go off the scene, how can I make the move stop
Thanks for any help!!
Sydney Swans 2014!!