S
SonicTheHedgehog+123
Guest
When my player is switching from the normal sprite to the ducking sprite and at the same time is hiting the x axis of the wall he gets stuck. If this happens the player shouldnt be in the wall. He maybe could get a pushback or I could make a invisible wall.
Here is a picture:
And here is my player duck code:
if keyboard_check(ord("S"))
{
sprite_index = Ducken
}
else
{
sprite_index = Fledermaus_Bild
}
if sprite_index = Ducken
{
hspeed = 0
}
Does somebody know a good solution for this problem?
I would be happy for any response
Here is a picture:
And here is my player duck code:
if keyboard_check(ord("S"))
{
sprite_index = Ducken
}
else
{
sprite_index = Fledermaus_Bild
}
if sprite_index = Ducken
{
hspeed = 0
}
Does somebody know a good solution for this problem?
I would be happy for any response