DocsNodesValues

Input

Which way the player is pressing, while the scene is playing.

keyboard, wasd, arrows, controls, player, move, keys
Category
Values
Outputs
value
Runs live in
no target yet

Arrow keys or WASD, reported as minus one, zero or plus one on the axis you pick. Two of these, one horizontal and one vertical, cover movement in a plane.

On its own it says which way, not where. Feed it through State and the presses accumulate into a position, which is what actually moves something.

Inputs

SocketTypeWiring

Parameters

NameTypeDefaultAvailable whenWhat it does
Axishorizontal | verticalhorizontalalways

Watch out

It reports a direction, not a position. Without State in the chain, whatever it drives snaps back the moment a key is released.

Built with this node

Nothing in the manual is built around this node yet.

See also

  • stateTo turn the presses into a position that persists.
  • botThe same signal from an autonomous player instead of a person.

Open the editor and try it