Help with flickering sprites when player walljumps

Hey guys!

I know it’s been a few months since I last posted on the forums, but I’m working on a port of Micro Mages to MakeCode arcade, and what I have so far is basic, but I need help with the player’s sprite “flickering” when they try to climb a wall.

2 Likes

I think that when you hit a wall, your velocity gets set to 0 and that makes you stop colliding and you start falling again, or something like this

It seems you have a full animation for when you fall so maybe since the sprite is not touching the ground the game thinks its “falling” so it plays the animation and it also seems you have an animation for holding on to the wall so then both play causing the “flickering”. That’s my guess.

hm. Well, I’m not using an animation (it’s using a set [variable] image ___ block), and the game update block is more like a “state machine” if you think about it.

(it’s all attached to the game update block)

and I think the issue might stem from the [var] vy = 0 block, but if I remove it, the player won’t cling to the wall.

so.. I might be using spaghetti code, or maybe I didn’t plan the wall jump gimmick out right.

1 Like