Hi all,
I'm currently making a mini game where my player is "locked" to move horizontally by a parallel event that might cause some clipping. It's also no the best way to "lock" movement, though I haven't found any other way yet. I guess my question has two parts. This is the small conditional branch I made to move sideways only using the arrow keys:
Loop
◆If:Button
I'm currently making a mini game where my player is "locked" to move horizontally by a parallel event that might cause some clipping. It's also no the best way to "lock" movement, though I haven't found any other way yet. I guess my question has two parts. This is the small conditional branch I made to move sideways only using the arrow keys:
Loop
◆If:Button
is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Left
◆
:Else
◆If:Button
◆Set Movement Route:Player (Wait)
: :◇Move Left
◆
:Else
◆If:Button
is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Right
◆
:Else
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Left
◆
:Else
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Right
◆
:End
◆
:End
◆
:End
◆
:End
Now, I got my character stuck in a box for this mini-game, as she is trying to catch falling objects. When she reaches a wall on the side though, first she gets stuck beside it, and after +- 20 seconds she clips through it. This is question one. Why on earth is my movement route (as I suspect) somehow overruling the hitbox of the wall? The second question is if anybody knows a better way to prevent your player from moving certain directions that locks out i.e. mouse or tapping movement as well.
Sorry for the long text, and thank you for reading!
◆Set Movement Route:Player (Wait)
: :◇Move Right
◆
:Else
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Left
◆
:Else
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Move Right
◆
:End
◆
:End
◆
:End
◆
:End
Now, I got my character stuck in a box for this mini-game, as she is trying to catch falling objects. When she reaches a wall on the side though, first she gets stuck beside it, and after +- 20 seconds she clips through it. This is question one. Why on earth is my movement route (as I suspect) somehow overruling the hitbox of the wall? The second question is if anybody knows a better way to prevent your player from moving certain directions that locks out i.e. mouse or tapping movement as well.
Sorry for the long text, and thank you for reading!