0 Favourites

How do I apply dt to an animation playing

  • Hi everyone,

    My game basically resumes itself to "touching a sprite makes this sprite spawn another object (which is animated) and modifies its instance variables". Pretty simple, but I'm using lots of sprites, so performance is not always very good. I can live with that but my main problem is that when I touch an object multiple times quickly when performance is low, each animation is delayed and performs just like a moving object without dt.

    The result is that if I touch 10 times quickly, then I have to wait sometimes 3 seconds or more for every animations to be finished, and of course instance variables modification only happens when the corresponding animation starts playing, which ruins my gameplay. What I would like to do is that when performance is low, every animation that has been triggered plays as soons as possible, even if it means 5 or more animations playing together.

    I tried to add dt in the "speed" animation property of my spawned object, but it doesn't work... It can only contain numbers.

    To be more complete, when clicking on an object, another "main" object also play an animation and a very short (0.05 second) "wait" action triggers before the touch could be perform again. But "wait" actions already have dt included, right?

    Any idea how I could resolve this problem?

    Thanks !

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
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
1,941 263,361
FlyingRam's avatar
FlyingRam
Unread sticky
763 305,718
asikanddestroy's avatar
asikanddestroy
Unread hot topic
87 5,378
facecjf's avatar
facecjf