The point checker works fine but when you press the d button the player doesn’t flip
This is probably not the issue…but…
…are you using D for both directions?
are you sure it shouldn’t be A key for left
the player is moving non stop and when it collide with a wall or you press d it changes the direction
Have u tried 1 set of flip conditions at time ?. i mean have you tried disabling the second set and to check just if when non horizontal flips conditions works?
…just curious…so youi can exclude one frrom the other…to focus on what cause the unwanted behaviour
Actually yes the checker works just fine on its own and still the code I provide does work it is just the d button when I press it it doesnt preforme the flip
I dunno if it’s the problem, but let’s say
player is not horizzontally flipped then you press D it will flip.
Since there is no trigger once for (D button keypress) the other set is triggered and the player return to not flipped…It may be that the flip is so fast that you can’t see it…
it is driving me crazy i did everything it just doesnt work sometimes it freezes sometimes it double flip quickly sometimes it only works with one side
Your issue is a logical flaw in your events. When you press “D” in the third event it flips the player. However, in the very next event, the condition checks if the player is flipped and undoes it.
To get around this, use a boolean value on the player (I’ve named it IsFlipped) and when the “D” key is pressed (with a trigger once condition), toggle the boolean value. Then set the player flip based on the toggle value:
Thank you it finally worked