How do you make luigi move towards the castle after touching the flagpole?

if there is that´d be great

Can we get a link to your game?

I made this at the end of my SMB game, if this is even what you’re talking about, just finish the first level and see if this will help.

sure, here it is! https://flowlab.io/game/view/1505170