Actor moving to unpause click

squirrel42squirrel42 Member, PRO Posts: 195
edited November -1 in Working with GS (Mac)
i am trying to use the pause unpause behaviour. I have set up a pause screen and the pause function works fine, actors stop and pause screen pops up.

The problem is when I click the resume button the game restarts but the actor ( which moves to the touch location) move to where I have touched the resume button 'through' the pause screen. I have tried putting the unpause behaviour in a timer for 0.1 secs but this doesn't help.

Any help appreciated

Chris

Comments

  • squirrel42squirrel42 Member, PRO Posts: 195
    Any pointers for a relative noob as to the best way to do this?

    Many thanks in advance
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    try this:

    Make a attribute called paused

    when u press the button that pauses a game, also put a change attribute behavior changing pause to 1

    in your unpause button where you have ur rule when touch is pressed unpause game, also put a timer in that rule after 1 second run to completion checked, then put a change attribute behavior in the timer changing attriubte pause to 0

    then in your player where it has the rules to move to touch, put those in a rule when attriubte pause=0
  • squirrel42squirrel42 Member, PRO Posts: 195
    Thanks but still not working
  • squirrel42squirrel42 Member, PRO Posts: 195
    Is there something that can determine when it is returning specifically from a paused state?

    Chris
Sign In or Register to comment.