reset position when changed scene HELP

kajutokajuto Member Posts: 314
edited June 2012 in Miscellaneous
Hi there everyone!! i got 2 actors that i need to reset them when the player win the level and going to the next level. I just want where i press Next Button reset those 2 actors, every other actor reset to their original value. Please help and thanks in advances.!! appreciate it.!

Actor 1
change att- self.X to self.PositionX
change att- self.Y to self.PositionY

Rule- Att game.Restart is true

change att- self.positionX to self.X
change att- self.positionY to self.Y
change att- motionLinearVelocityX to 0
change att- motionLinearVelocityY to 0
change att- motionAngularVelocity to 0
change att- game.trigger collide to false
change att- self.rotation to 0

Actor 2
Rule- Att game.trigger is true
- timer for 1.5seconds change att- self.selfUsed to true
- timer after 1.5seconds change att- self.Color.Alpha to 0

Rule- Att game.Restart is true
- change att- self.SelfUsed to false
Otherwise-change att- restart button to false

Rule- Att- selfSelf.Used is false
-change att- self.Color.Alpha to 1
-change att- self.Color.Alpha to 0

FOR the 3rd ACTOR (NEXT BUTTON), what should i put there inside??? I'm stuck there.

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It seems like you set up all of your rules but didn't add a way for game.Restart to become true. So in the NEXT BUTTON actor, just add When Touch is Pressed --> Change Attribute game.Restart to true.

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

  • kajutokajuto Member Posts: 314
    Tatiang thanks for the reply its work! sorry to take so long to replied you, i was in the hospital sorry about it. Good job
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @kajuto You're welcome! Be sure to add the @ symbol before my forum nickname if you want me to be notified. Hope everything's okay (re: hospital).

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

  • kajutokajuto Member Posts: 314
    @tatiang thanks I'm getting better thanks god
Sign In or Register to comment.