• 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!

how to do breath movement?

M

MigueelZY

Guest
How do I do that breathing movement when the player is stopped?
 

TheouAegis

Member
Give your idle sprite multiple frames with him animated as breathing then make sure image_speed isn't 0 when you switch to the idle sprite.

Poor Man/Lazy Man's way: Set an alarm. In the alarm event, check if image_yscale is 1. If it is, add 1/sprite_height to it; else set it to 1. Then reset the alarm.
 
R

robproctor83

Guest
lol your question is really vague and way too general. What your talking about is typical called idel movement, and its something you animate with sprites.
 
I think he's talking about doing CPR on the player if they pass out...

But seriously, make a separate sprite for idle movement, and set your player object to that sprite when the player isn't pressing any key related to movement. Some common things people do are expanding/contracting the size of the sprite by alternately increasing and decreasing the image scale, or drawing the sprite so that the character's shoulders raise and lower every other frame.
 
Top