TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
how do I stop the time?
Pages:
1
how do I stop the time?
8022apple
Posts: 19
July 02, 2012, 04:56:24 pm
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
July 02, 2012, 04:59:40 pm
If_____=Pause change boolean________ to true
Otherwise change boolean___________ to false
-Timer-
If boolean_______= false (continue count down timer)
bobby6478
Posts: 89
July 02, 2012, 05:02:48 pm
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
July 03, 2012, 01:48:14 am
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
July 03, 2012, 01:41:33 pm
Thank you, guys!
8022apple
Posts: 19
July 03, 2012, 05:33:54 pm
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
July 03, 2012, 05:59:06 pm
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
July 03, 2012, 06:05:26 pm
Thanks, although I figured out myself, but thank you guys for telling me!
Pages:
1