Loading...
48
8 months ago

GameMaker: Studio tutorials

Animations for player!


Code here!

// Animations

// System to scale sprites

if (move!=0)

{

image_xscale = move

}

// Main animation

if (place_meeting(x,y+1,objSolid))

{

if (move!=0)

{

sprite_index = sprWalk

image_speed = 0.4

}

else

{

sprite_index = sprIdle

}

}

else

{

if (vsp < 0)

{

sprite_index = sprJump

}

else

{

sprite_index = sprFall

}

}



5 comments

Loading...

Next up

So, i have added texture batching, and now my fps flew up to 150 (max), and i think i'll also add texture atlases render, to have a simple sprite sheet with sprites in it.

I might have something you need....

Vasia the cat.

: Список тех кто заслуживает подарка! :D

: List of those who deserve a gift! :D

А теперь думайте кому это адресованно.

cute cat guy ✨️

Here's some video for you.

Ох блять, если бы не over дохуя времени, я бы это не сделал.

Я уже думал забить на проект, но резко был переубеждён самим собой.

My death is already near

Первая тестовая сборка на Java.