Pause problem
in Tech Support
Hello the world ;-)
I have created a pause actor in my game which works great, but...
But my character is controlled by touching the screen so that means when the game is paused the character also receives a touch event. And when the game is unpaused the same thing happens. I have of course the same problem with the "stop music" fonction.
Do you have any solution ?
Please find my rules for the two fonction.
Pause fonction.
Jump fonction
Good luck with your project.
Comments
Just make different actors for pause and mobile.
@yoyobid12 Do you HAVE to touch outside the player character?
@janis[email protected] I'm not sure I understand what you mean.... I have two different actor for pausing the game :
@jdlcrater Yes I think so. It's an endless runner type game.... If i restricted the action to the player, you must follow the player with your finger....
I read somewhere that I must / can restricted the "touch" area. But I have absolutely no idea how to do that.
You could make a "touch" actor take up the screen behind the player character and then when it is pressed change an integer or boolean so that the player will jump.