Hi.
So, as the thread name says want to match a certain sound effect to my character sprite animation.
Under main I got: Graphics.frame_rate = 30
I have smooth mode ON.
I'm using a standard 4x4 character sprite file that has 4 frames for animation.
What I want is to match a certain sound effect to start just as the 4th frame of the animation is playing.
I can edit the sound file and make it start at any time I want but I don't know the exact time because, in general, I don't really understand how the game calculates the speed at which it plays each frame of the sprite animation. How does move_speed affect the animation speed? It must increase in certain increments?
What are the formulas for calculating the frame rate based on my settings?
In short;
What I exactly need is to calculate how much pause I need to add before a sound effect so it starts to play exactly at the time as the 4th frame of a character sprite animation is displayed on the screen.
I need to calculate that for move_speed = 2,3,4,5,6
The length of the sound effect is 0,250s.
Thanks.
So, as the thread name says want to match a certain sound effect to my character sprite animation.
Under main I got: Graphics.frame_rate = 30
I have smooth mode ON.
I'm using a standard 4x4 character sprite file that has 4 frames for animation.
What I want is to match a certain sound effect to start just as the 4th frame of the animation is playing.
I can edit the sound file and make it start at any time I want but I don't know the exact time because, in general, I don't really understand how the game calculates the speed at which it plays each frame of the sprite animation. How does move_speed affect the animation speed? It must increase in certain increments?
What are the formulas for calculating the frame rate based on my settings?
In short;
What I exactly need is to calculate how much pause I need to add before a sound effect so it starts to play exactly at the time as the 4th frame of a character sprite animation is displayed on the screen.
I need to calculate that for move_speed = 2,3,4,5,6
The length of the sound effect is 0,250s.
Thanks.