Architheutis
Member
Hi Folks.
Here is a very simple code-block for ladder-climbing.
My game hero is working absolutely fine. I made further idles
for climbing a ladder. He climbs up and down, as I wanted.
But: He doesn´t play the full loop of the climb-idle "sPlayerLadderClimb".
You can only see the first image of the sprite, but not the following 13 images (animation).
I tried different ways to solve it, bit nothing helped. Can anybody
help me with having a look on the code, below?
Is there a way to run the full loop?
Thank you a lot, previously, for your help!
Sincerely,
Archie
Here is a very simple code-block for ladder-climbing.
My game hero is working absolutely fine. I made further idles
for climbing a ladder. He climbs up and down, as I wanted.
But: He doesn´t play the full loop of the climb-idle "sPlayerLadderClimb".
You can only see the first image of the sprite, but not the following 13 images (animation).
I tried different ways to solve it, bit nothing helped. Can anybody
help me with having a look on the code, below?
Is there a way to run the full loop?
Code:
//LadderClimb
if (place_meeting(x,y,o_Ladder))
{
if (key_up)
{
vsp = -4;
sprite_index = sPlayerLadderClimb;
image_index = 0;
image_speed = 1
}
if (key_down)
{
vsp = 4;
sprite_index = sPlayerLadderClimb;
image_index = 0;
image_speed = -1
}
}
Sincerely,
Archie