Actor is thrown after button is pressed on previous scene

huppertatorhuppertator Member Posts: 34
edited April 2013 in Working with GS (Mac)
The previous scene to any level requires a button press to continue to the level. However, when the level loads the tomato actor is thrown down without any action taking place. I know it has to do with the way I set up the touch triggers to move and throw the actor but I don't know how to balance the rules correctly to make this stop happening.

Comments

  • glyniusglynius Member Posts: 231
    i wouldn't suggest you posting like this your full project...
    i wouldn't do it.
  • huppertatorhuppertator Member Posts: 34
    Good call. Will repost within an hour with demo.
  • huppertatorhuppertator Member Posts: 34
    edited April 2013
    Here is a link to the demo download: http://bit.ly/14KXj9v
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Your "Release" rule has the condition When Mouse Button is Up, so it's going to trigger as soon as the scene loads.

    You need another condition in that rule, most likely a boolean that gets set when Touch is Pressed (or Mouse Button is Down) so that you know the player has tapped and released rather than just having the mouse button up.

    Any easier fix is to use When Touch is Released, but I'm not sure if that's going to work if you wanted the entire screen to trigger movement.

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

  • huppertatorhuppertator Member Posts: 34
    edited April 2013
    Wow, don't know how I missed that. I had a boolean in there before and must have accidentally removed it. Thanks once again @tatiang!

    Edit: actually, when I add the boolean it throws off the behaviors in the rule. Will try a different attribute.
  • huppertatorhuppertator Member Posts: 34
    Got it to work. Just needed to use a different boolean.
Sign In or Register to comment.