Trying to replicate Game Maker's "sleep" function, which stops the game for X seconds
Potential uses:
-Game feel
-Camera "focus", which emphasizes importance (enemy death for example) by putting the camera there for an instant
https://www.dropbox.com/s/cxsgjukbdo3lk ... .capx?dl=1
First try:
" On freeze (0.5):
- set timescale to 0
- wait (function.param(0))*dt
- set timescale to 1 "
(doesn't work)
Second take:
" On freeze (0.5):
- set timescale to 0.01
- wait (function.param(0)*dt)
- set timescale to 1 "
(works, but time is not really 100% "frozen"!
I'm not asking for a miracle here, just curious if there is a really obvious solution I'm missing
Thanks in advance!