Maximum animation speed?

Bugs will be moved here once resolved.

Post » Tue Oct 01, 2013 7:49 pm

Is it a bug, or is maximum animation speed is capped for certain amounts of frames?
I have a 6 frame animation, I play it faster, 200 frames a second, 500 frames a second, 50000, it's all the same.

Tried it on a fresh new project, or the examples by Scirra, the same thing happens.
Couldn't find anyone else having issues with this since r59

Operating system & service pack: Windows 7 SP 3

Construct 2 version: Release 142
    
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Tue Oct 01, 2013 8:00 pm

A human can only see up to 60 frames per second.
Perhaps you should change frame speed
Image ImageImage
B
169
S
50
G
174
Posts: 8,330
Reputation: 110,804

Post » Tue Oct 01, 2013 8:04 pm

So there's a cap? It makes no sense that there is a cap on how fast it can go. I use animation speed to speed up or slow down an animation I use as a loading bar. It's very convenient, except for the artificial limit, if in fact one exists.

I absolutely love Construct 2 because the developers don't presume too much how I will be using this or that ability, and they don't impose many artificial limits.

This could also be a matter of performance, but it's still weird and unproductive to take away control from users. Again, if there is such a thing as a artificial cap.
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Tue Oct 01, 2013 8:19 pm

I have no idea if there is a cap, but my point is: even if there was you wouldn't see a difference after 60fps.

You could always do the animation by events, and do something like set frame to lerp(self.frame,self.frame.count,60*dt)
Image ImageImage
B
169
S
50
G
174
Posts: 8,330
Reputation: 110,804

Post » Tue Oct 01, 2013 8:27 pm

there is a "self" command? I really hope so :) But that's unrelated.

I know that the human eye can't differentiate above 60fps, but it's a loading bar. So the loading bar loads faster when on 200 or 400 fps. I guess I could try what you propose.

Just what do you mean by "dt"? 60*dt?

Thank you very much in any case :)
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Tue Oct 01, 2013 8:53 pm

Dt is a system expression for delta time, or the time since the last tick.
Used here to keep the interpolation synced with the current frame rate.
The 60 would get you about 60 frames per second... that's a huge approximation tho...
Also there is a self, but it would be self.AnimationFrame, and self.AnimationFrameCount
Image ImageImage
B
169
S
50
G
174
Posts: 8,330
Reputation: 110,804

Post » Wed Oct 02, 2013 7:09 am

@damjancd, found this helpful in understanding dt

https://www.scirra.com/tutorials/67/delta-time-and-framerate-independence
B
13
S
4
Posts: 67
Reputation: 1,270

Post » Wed Oct 02, 2013 1:13 pm

The animation system will advance at most one frame per tick. So animations cannot run faster than changing a frame every tick.

Why not implement your own system using the 'set animation frame' action?
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,661

Post » Wed Oct 02, 2013 6:07 pm

Been reading into lerp and delta time, thanks @newt and @AngelEyes :)

@Ashley I'm probably doing exactly that :) thanks. Very close to releasing to AppStore. My first game is waiting for a better CocoonJS graphical integration since it's quite glitchy now, this game is much simpler and minimal graphically.

I'm very excited, I will lay down now. :)
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Sat Nov 02, 2013 11:08 pm

@newt if i have 3 animations "idle" , "running" , "jumping".
how can i make the "running" animation use the set animation frame number with the lerp like you said?can you please give me an example? i made a silky smooth running animation with 100 frames and it goes in slo mo even when i put 60 frames per second in the animation box,so i must use your solution but i do not understand how to do that for a specific animation. thanx!
B
15
S
6
G
4
Posts: 277
Reputation: 3,948

Next

Return to Closed bugs

Who is online

Users browsing this forum: boybacteria, worm1 and 4 guests