Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Lukey J on Mon 28/02/2022 11:55:46

Title: Frame Rate, Movement Speed & Animation Delay
Post by: Lukey J on Mon 28/02/2022 11:55:46
Good Morning,

i've created a nice smooth Walk cycle in after effects 24 .fps 1sec long

(https://photos.dsnmarketingphotos.co.uk/photos/Luke/FRANK%20SIDE.gif)

when i add it to the game

Animation Delay 1
Movement Speed 24

it becomes very blurry when in motion - im not sure if its the speed setting or the frame rate or what?
any help would be grand!

(https://photos.dsnmarketingphotos.co.uk/photos/Luke/Walking.gif)


Title: Re: Frame Rate, Movement Speed & Animation Delay
Post by: Gilbert on Mon 28/02/2022 14:41:29
No, movement speed is not FPS. It is something like how many pixels the character's position will advance every frame.
If you really make everything in the game 24 FPS (or a fraction of it ) you may set the game to run at this frame rate (or a multiple of it, like 48 or 72 FPS), by using the SetGameSpeed() (https://www.adventuregamestudio.co.uk/manual/ags53.htm#SetGameSpeed) function.
You may put this in the game_start() function of the Global Script. Like:
Code (ags) Select

function game_start()
{
  SetGameSpeed(48);
}
Title: Re: Frame Rate, Movement Speed & Animation Delay
Post by: eri0o on Tue 01/03/2022 23:08:09
Quote from: Lukey J on Mon 28/02/2022 11:55:46
i've created a nice smooth Walk cycle in after effects 24 .fps 1sec long

hey, is this using lottie?
Title: Re: Frame Rate, Movement Speed & Animation Delay
Post by: Khris on Wed 02/03/2022 09:04:36
Animation Delay needs to be 2.
40 FPS is the default setting, and 40 / 24 ~ 2.

The movement speed is the amount of pixels the feet move back in between frames, play with values like 10 until the character stops gliding / moonwalking.
Title: Re: Frame Rate, Movement Speed & Animation Delay
Post by: Lukey J on Thu 03/03/2022 08:30:14
i've changed the walk cycle to 12 frames long
and the game speed to 24 FPS

with a animation delay of 1
that seems to look aright

still kinda blurry when he walks