Resetting?

triton13triton13 Member Posts: 161
edited March 2012 in Working with GS (Mac)
Hey guys, I have multiple actors and I want to make it so when they are pressed a certain amount of times, it resets to a different level. I made an attribute that's an integer and set it to 0. I added a Change Attribute on all my actors and made it so game.Reset = game.Reset +1. Then in my Background actor, I made it, game.Reset =5 then change scene to Level 1. I want to make it so when those actors accumulate 5 presses, it changes to Level 1. It doesn't work though when I did that. What's wrong?

Comments

  • triton13triton13 Member Posts: 161
    Anyone?
  • 921creative921creative Member, PRO Posts: 140
    Your question is a little confusing. Are you trying to change scenes or reset the current scene?
  • triton13triton13 Member Posts: 161
    Change to a different scene.
  • 921creative921creative Member, PRO Posts: 140
    Instead of putting the rule in your background actor, put the Change Scene behavior in one of the actor's "when touch is pressed" rules.

    When actor "touch" is "pressed" AND game.Reset = 5 THEN Change Scene to Level 1.
  • triton13triton13 Member Posts: 161
    I'll try that but I have a quick question about it. When I do that, will it change when all the actors accumulate 5 or will it only change when I get to 5 on one of the actors?
  • poorcollegedevpoorcollegedev Member Posts: 289
    It should change when scene when you get to 5 on one of the actors. If it doesn't, possibly post some screenshots of your attributes and all of that jazz so we can take a deeper look inside.
  • triton13triton13 Member Posts: 161
    Well, I want it to change when it collects 5 from the actors when they're pressed. I don't want to have to press one 5 times in order for it to change.
Sign In or Register to comment.