[Solved] When i unpause the game, my actor jumps up
Mayhem_Madness
Member, PRO Posts: 168
Hi i have an actor that jumps when i touch an actor that covers the whole screen, when i pause the game everything is fine, but when i unpause it the actor jumps up, which i don't want to happen.
Here are my rules for my jumping actor, my actor that covers the whole screen which makes the actor jump and also my unpause button.
Any ideas on what i should do.
Thankyou.
This is the rules for the unpause button.
This is the rule for the actor that jumps.
This is the rule for that actor which covers the screen and makes the other actor jump
\
Comments
@Thor Try moving the unpause behavior below the "Change Attribute game.jumping to false."
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
No, its still not working.
Ok so make your jump rule when touch is pressed and game.paused=0
Before you unpause the game set game.paused=1
On your normal screen set a timer that says
if game.paused=1,
after 0.5 seconds
set game.paused=0
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
The touch when you unpause the scene is probably still being registered when the scene is first unpaused meaning it's getting registered by the jump rule.
Try unpausing the scene with a "touch is released" condition rather than a "touch is pressed".
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Or you could do what @Armelline said.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Its still not working, with the touch is released.
Try setting "jump" to false just before changing the scene, still using touch is released.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
It looks like there was already a thread about this here.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Thankyou both very much Armelline and Summation i have got it working now.
Thanks
Congrats, Thor!
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)