Hello!
I'm learning 2-D platformer basics from Spaulding's recent GMS2 YouTube tutorial and it's been going well but I ran into a hiccup.
My sprite carries a shield in his left hand so he looks different when traveling LT and RT.
How could I modify this code to have the character face left (JumpingLT) when jumping in the left direction?
Right now, when I jump toward the left, he faces right. I've tried several things to no avail.
---------Current code------------
//Animation//Air
{
if (!place_meeting(x,y+1,ground))
{
sprite_index = sprite_player_JumpingRT;
image_speed = 0;
image_index = 1;
}
}
-----------------------------------
Thanks for your time!
I'm learning 2-D platformer basics from Spaulding's recent GMS2 YouTube tutorial and it's been going well but I ran into a hiccup.
My sprite carries a shield in his left hand so he looks different when traveling LT and RT.
How could I modify this code to have the character face left (JumpingLT) when jumping in the left direction?
Right now, when I jump toward the left, he faces right. I've tried several things to no avail.
---------Current code------------
//Animation//Air
{
if (!place_meeting(x,y+1,ground))
{
sprite_index = sprite_player_JumpingRT;
image_speed = 0;
image_index = 1;
}
}
-----------------------------------
Thanks for your time!