Actor moving to unpause click
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
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
Many thanks in advance
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
Chris