Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Yeah, might be an easy question... If only I wouldn't use the things like timeMs and getTime in my scripts. The thing is, if I would make the pause scene (pause menu), the scripts would stop probably, sure. The thing is, the time won't stop. So, if calculating something uses time, it will calculate this as if some time passed. This even includes such simple thing as DoLater action. Is there any way to bypass this problem? |
||||
|
Try to create a new scene of pause of Game. The functions will not work in the previously screen when you change to another scene. |
||||
|
With scripting you can do it. I will make example if i have time.. You need to change doLater script also.. its time values needs to be sync with your Game and Pause timers.. |
||||
|
Press P to pause or unpause TIME. In scripts folder you see scripts i made: behavior_GTime action_NEWDoLater You see in NEW doLater i use gameTime not NOWtime. Download: https://drive.google.com/file/d/... This is very fast example but should give you idea how to make your own version. This may include errors -i didnt test it 100%. |
||||
|
Huh... That's actually kinda smart, yet an easy solution. I think I might be able to do something like that (or maybe something similar, or without using the global variable, who knows). Thanks for help, sven, I really appreciate it. |
||||
|
I edited script and added Game_Speed variable. So it can speedUP or slowDOWN gameTIMER //Script by sven from ambiera forum. |
|