how do I stop the time?

8022apple

  • Posts: 19
Hi! I just published my first game, Break Out. When the game is paused, the time won't stop, because its a scene behavior, so how do I stop the time? Thank you for reading this post, help me please!

Max Finch

  • *
  • Posts: 2174
If_____=Pause change boolean________ to true

Otherwise change boolean___________ to false

-Timer-

If boolean_______= false (continue count down timer)

bobby6478

  • Posts: 89
I know this sucks but I believe u cannot stop the time. you can stop from pausing by going to scene behaviors>Scene>Game Flow> pause game and change pause to unnpause and apply to all scenes. Sorry
"I don't know what my calling is, but I want to be here for a bigger reason. I strive to be like the greatest people who have ever lived." -Will Smith

captaincomic

  • *
  • Posts: 6108
There's also a boolean block "game is paused" built in, so you don't have to create your own boolean to keep track of the paused status.

8022apple

  • Posts: 19
Thank you, guys!

8022apple

  • Posts: 19
I still don't know how to pause the timer, I know how to let it increase by 1 every 1 second.
If game is paused=true
set game is paused to true
Otherwise set game is paused to false

-Timer-

If game is paused = false
do every 1 second
increment Time by 1
But how do I stop the Time from going up when paused? Decrement?

Hectate

  • *
  • Posts: 4643
Put the IF inside the Do Every Second. This way every second it will try to increment, but won't if the game is paused.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

8022apple

  • Posts: 19
Thanks, although I figured out myself, but thank you guys for telling me!