How do I reset actors actions after it respwans?

frank067frank067 Member Posts: 56
edited February 2014 in Working with GS (Mac)
I have a charging actor that is slow down by wind and he get slower overtime he is hit and then he is send back to another non moving actor and collied the first moving actor is destroy, actor respawns without reseting the actor action of moving forward and instead move back. How can I reset the actor after it respawns please assist thank you.

https://skydrive.live.com/?cid=22f4de5fa4febb57&id=22F4DE5FA4FEBB57!115#cid=22F4DE5FA4FEBB57&id=22F4DE5FA4FEBB57!1086

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Okay, I took a look at the file and I believe your answer is this: game.slowdown needs to be an actor attribute (self.slowdown) so that each actor has its own setting. Otherwise when you slow down one actor by changing the value of game.slowdown, you end up changing it for all new actors as well. The other option would be to reset game.slowdown to its initial value right before you spawn a new actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • frank067frank067 Member Posts: 56
    I'm new to the application can you please change it on the template for me please.
Sign In or Register to comment.