B4J Question B4J Simple Question - How To Pause

AlexOfOz

Active Member
Licensed User
Is there a PAUSE type command?

I'm working on a graphical game and want to add a PAUSE button? Is there some sort of PAUSE command, or will I need to pause the flow programmatically?

I know how to do it in B4A, but B4J appears to lack the same facilities.

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I know how to do it in B4A
If you are doing it with DoEvents then you should quickly delete it.

You should never try to pause the main thread. With a game, you should have a timer that implements the game loop and you should disable the timer to pause the game.
 
Upvote 0

AlexOfOz

Active Member
Licensed User
If you are doing it with DoEvents then you should quickly delete it.

You should never try to pause the main thread. With a game, you should have a timer that implements the game loop and you should disable the timer to pause the game.
Thanks Erel. I have instead chosen to have a RESET button to start the game again. I love the design phase.
 
Upvote 0
Top