Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Well I know i can use RexRainbow's plugin and I could also set the time scale to 0. But my problem is regarding a custom "bounce" behavior i made which doesn't pause in both cases. I would like to fix/modify my behavior and have it work with the time scale, i just need to know what variable do i have to work with and what is the concept of using time scale in a behavior?
Disregard, i already found out what to do.
"this.runtime.timescale" is just a multiple of time and after implementing this in my behavior, the pause plugin works great.
Eh, not quite! You need to use dt, which automatically takes in to account the timescale. More in this tutorial. Have a look at the built-in behaviors which all take it in to account.
Develop games in your browser. Powerful, performant & highly capable.
Ashley
Thanks for the reply.
My Bounce Behavior is using dt and all i did was multiply dt by time scale. I also disable the behavior when time scale == 0.
Keep up the good work, C2 is AMAZING.