• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Plays Animation when Dropping from a certain height?

R

RayLemun

Guest
Hey.. I'm STILL new to Game Maker studio, how do I get so the player to plays a landing delay animation? So, it could look a lot more natural rather than landing on feet from a high place




Here an example of what I'm trying to achieve
http://imgur.com/Zldmend

Any help would be great!
Thanks!~
 
M

mr_starfire

Guest
does your player fall at a constant speed or does it speed up as it falls . im pretty terrible at coding but when i had this issue i made my players speed gradually increase as he fell up to a point (terminal velocity) and at a certain vertical speed have the animation triggered

That is probably a hopelessly bad way of doing it but it works
 
R

RayLemun

Guest
Hmm, can translate that in codes? I'm not very confident in my coding skills..
and yes, the player do falls at a constant speed.
 
T

trentallain

Guest
You could try so when in the air, trigger an alarm and if the alarm reaches -1 before landing, set the animation to true.
 
M

Maksymilian

Guest
Hi RayLemun

I use vspeed variable for jumping and falling in my player character.
In my STEP EVENT, I use this:


Don't forget to store vspeed = 0 in your create event just to be sure.
 

Attachments

Top