Pause problem

yoyobid12yoyobid12 Member, PRO Posts: 21

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

  • BaccardaBaccarda Member Posts: 122

    Just make different actors for pause and mobile. ;)

  • SLOCM3ZSLOCM3Z Member Posts: 797

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

  • yoyobid12yoyobid12 Member, PRO Posts: 21

    @janis.piziks@gmail.com said:
    Just make different actors for pause and mobile. ;)

    @janis.piziks@gmail.com 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 Member Posts: 797

    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.