Horizontal speed does not work with forces

I have a very simple game of a player (with platform character behaviour) walking on a platform (with platform behaviour). The following event sheet doesn’t behave as expected:

When I start de game and press ‘d’, then indeed the player starts moving but the condition of ‘horizontal speed != 0’ does not get evaluated to true; the color of the player doesn’t change.

I’m thinking the ‘current horizontal speed’ of the ‘plattform character’ behaviour fails to work with forces in the implementation?

You are applying a force, which I think is not recognised by the platform character behaviour. Instead of using “Add instant force…”, use “Simulate left key pressed”. That should then detect the speed of the RedPlayer.

4 Likes

Ah I see how it works now. Thank you!