0 Favourites

Question about object timescale

  • Ok so we all know you can set objects' timescales independently from the game's timescale.

    So, in theory, you could pause the entire game (set timescale to 0) yet have certain objects remain active (set their timescales to 1) right? Wrong :<

    After tinkering around for a bit I got this to work by moving an object using n*self.dt instead of n*dt, then setting the timescale to 0 and the object's timescale to 1.

    Works great.


    Is that the right way to do this?

    If that's the case, then every object you want to remain active when the game's timescale is 0 would have to be programmed using self.dt instead of just dt, which in a sense makes just dt obsolete, which makes me feel like I'm not doing this right.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • You're right, you need to use Self.dt for any objects that change timescale independently of the game timescale. Otherwise you can just use dt.

    It has to be like that, because if you use just 'dt' everywhere, its value is used for everything so it's impossible to vary the timestep for different objects.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
353 32,065
yojona's avatar
Unread sticky
192 1,337,369
Kyatric's avatar
Kyatric Construct Team Support
Unread hot topic
167 14,485
DMT2005's avatar