Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Pause problem

yoyobid12yoyobid12 Posts: 21Member, PRO

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.


  • BaccardaBaccarda Posts: 122Member

    Just make different actors for pause and mobile. ;)

  • SLOCM3ZSLOCM3Z Posts: 797Member

    @yoyobid12 Do you HAVE to touch outside the player character?

  • yoyobid12yoyobid12 Posts: 21Member, PRO

    @janis[email protected] said:
    Just make different actors for pause and mobile. ;)

    @janis[email protected] I'm not sure I understand what you mean.... I have two different actor for pausing the game :

    • One to activate the "pause actor" with a keyboard
    • One to activate the "pause actor" on a mobile device.
      @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.

  • SLOCM3ZSLOCM3Z Posts: 797Member

    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.

Sign In or Register to comment.