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 id = default
🏃 Platformerplatformerspeed = 5 · jumpStrength = 7 · turnToDirection = true · cameraRelative = true · sideView = false · climb = false · climbSpeed = 3 · animate = true · controller = physics · maxSlope = 50 · slideSlope = 45 · snapDistance = 0.5 · stepHeight = 0.3 · stepWidth = 0.1
🕹️ Top-down movementtopdownspeed = 5 · turnToDirection = true · cameraRelative = true · animate = true · controller = physics · maxSlope = 50 · slideSlope = 45 · snapDistance = 0.5 · stepHeight = 0.3 · stepWidth = 0.1
⛵ Boatboatspeed = 8 · turnSpeed = 70 · acceleration = 3 · seat = 0, 0.3, 0 · autoSeat = true · autoCamera = true
🏎️ Carcarspeed = 15 · reverseSpeed = 0 · acceleration = 10 · steering = 30 · steerRate = 0 · steerAtTopSpeed = 35 · topSpeedEase = 15 · grip = 1 · brake = 1 · suspensionStiffness = 1 · suspensionDamping = 1 · wheels = (empty) · frontWheels = (empty) · driver = manual · path = (empty) · seat = 0, 0.5, 0 · autoSeat = true · autoCamera = true
🎥 Camera followcameraFollowtarget = Player · offsetX = 0 · offsetY = 6 · offsetZ = 10 · smoothing = 5 · lookAtTarget = true · stayBehind = false · fadeInWay = false · fadeTag = (empty) · fadeOpacity = 0.3 · mouseLook = false · lookSpeed = 1 · lockX = false · lockY = false · useLimits = false · limitMinX = −10 · limitMaxX = 10 · limitMinY = −5 · limitMaxY = 10
👀 Look at targetlookAtTargettarget = Player · bone = (empty) · axis = +Z · maxAngle = 70 · speed = 8 · weight = 1
🦾 Two-bone IKtwoBoneIKbone = (empty) · target = (empty) · hintTarget = (empty) · weight = 1 · matchRotation = false
👁️ First personfirstPersontarget = Player · eyeHeight = 0.6 · offsetX = 0 · offsetY = 0 · offsetZ = 0 · lookSpeed = 1 · invertY = false · minPitch = −85 · maxPitch = 85 · turnBody = true · hideBody = true
🔁 Repeat along curverepeatOnCurveobject = (empty) · object2 = (empty) · object3 = (empty) · pick = sequence · startCap = (empty) · endCap = (empty) · countMode = spacing · spacing = 2 · count = 10 · startOffset = 0 · faceForward = true · upright = true · alignAxis = -Z · keepRotation = true · rotateX = 0 · rotateY = 0 · rotateZ = 0 · sideOffset = 0 · upOffset = 0 · alongOffset = 0 · alternateSides = false · flipAlternate = false · randomRotX = 0 · randomRotY = 0 · randomRotZ = 0 · randomScale = 0 · seed = 1 · useTilt = true · useScale = true · hideSource = true · live = true
➰ Follow curvefollowCurvecurve = (empty) · speed = 4 · mode = loop · startAt = 0 · faceForward = true · upright = true · playing = true
🏞️ ParallaxparallaxfactorX = 0.5 · factorY = 0 · wrapWidth = 0
↔️ Moving platformmovermoveX = 4 · moveY = 0 · moveZ = 0 · speed = 2 · pause = 0.5
🔄 RotaterotatespeedX = 0 · speedY = 90 · speedZ = 0
➤ Bulletbulletspeed = 10 · gravity = false
〰️ Wave (sine)sineproperty = y · magnitude = 0.5 · period = 2
🎯 Follow targetfollowtarget = Player · speed = 2 · stopDistance = 1 · lookAt = true · animate = true · pathfinding = false
🗑️ Destroy when fardestroyOffscreenkillY = −20 · maxDistance = 200
✋ Draggabledraggableaxis = xz
❤️ HealthhealthmaxHealth = 3 · invincibleTime = 0.5 · flash = true · knockback = 0 · showBar = false · destroyOnDeath = true

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')