When to use action mapping and when to use axis mapping?

I really want to know when it is better to use action mapping over axis mapping. Can I use both of them be in all cases/situations or is there a specific situation in which one is better than the other?

1 Like

You generally want to use axis mappings for movement so the player can use an analog stick (for instance) to say how fast they want to move. Action mappings are for discrete actions, like firing or (usually) jumping. Actions can either be on or off - you can’t half-jump or half-fire.

If you’re using a keyboard the difference is less obvious because axis mappings on the keyboard behave almost identically to action mappings - when you press the key mapped to an axis the value immediately jumps from 0 to 1. But if you were to plug in a controller and map the analog stick to the same axis you’d see the difference (the value slowly increases towards 1 instead).

2 Likes

Roger that