Skip to main content

Behaviors reference

Settings are shown in the Inspector with friendly names; scripts and the Set behavior setting action use the id. For explanations and screenshots see the Behaviors guide.

BehaviorType idSetting idDefault
🏃 Platformerplatformerspeed · jumpStrength · jumpButton · turnToDirection · cameraRelative · animate5 · 7 · jump · true · true · true
🕹️ Top-down movementtopdownspeed · turnToDirection · cameraRelative · animate5 · true · true · true
🏎️ Carcarspeed · acceleration · steering · grip · brake · wheels · frontWheels15 · 10 · 30 · 1 · 1 · (auto) · (auto)
🎥 Camera followcameraFollowtarget · offsetX · offsetY · offsetZ · smoothing · lookAtTarget · stayBehindPlayer · 0 · 6 · 10 · 5 · true · false
🔄 RotaterotatespeedX · speedY · speedZ0 · 90 · 0
➤ Bulletbulletspeed · gravity10 · false
〰️ Wave (sine)sineproperty · magnitude · periody · 0.5 · 2
🎯 Follow targetfollowtarget · speed · stopDistance · lookAt · animatePlayer · 2 · 1 · true · true
🗑️ Destroy when fardestroyOffscreenkillY · maxDistance−20 · 200
✋ Draggabledraggableaxisxz

Using behaviors from events and scripts​

To…EventScript
Turn on/offEnable/disable behaviorentity.setBehaviorEnabled('car', false)
Change a settingSet behavior settingentity.setBehaviorParam('platformer', 'speed', 8)
Read a settingPlayer.behavior("platformer", "speed")entity.getBehaviorParam('platformer', 'speed')