Question about object timescale

0 favourites
  • 2 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • 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.

    But..

    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.

  • Try Construct 3

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

    Try 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)