Skip to content

Hedgehog platformer

Jump and run on platforms at 360°.

Authors and contributors to this experimental extension: Kennoir, UnknownUney, D8H.

Warning

This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.


A platformer engine for Sonic-like games.

A small demo shows how to use this extension (open the project online).

Tip

Learn how to install new extensions by following a step-by-step guide.

Conditions

Character is on given platform
Check if a platformer character is on a given platform.

See parameters
  • Parameter 1 (👾 Object): Character
  • Parameter 2 (🧩 Behavior): Hedgehog platformer character
  • Parameter 3 (👾 Object): Platform
  • Parameter 4 (🧩 Behavior): Hedgehog platform

Technical note: parameters 0, 5 are internal parameters handled by GDevelop.

Character is pushing platform
Check if a platformer character is pushing against a platform.

See parameters
  • Parameter 1 (👾 Object): Character
  • Parameter 2 (🧩 Behavior): Hedgehog platformer character
  • Parameter 3 (👾 Object): Platform
  • Parameter 4 (🧩 Behavior): Hedgehog platform

Technical note: parameters 0, 5 are internal parameters handled by GDevelop.

Hedgehog platformer character

Jump and run on platforms at 360°.

Behavior actions

Follow current platform
Follow the current platform.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Movement angle
Check if the movement angle is around a given direction.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2 (🔢 Number): Angle (in degrees)
  • Parameter 3 (🔢 Number): Tolerance (in degrees)

Technical note: parameter 4 are internal parameters handled by GDevelop.

Air drag
Change the air drag of the object. The air drag reduce the speed on X axis.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Air drag min speed Y
Change the air drag min speed Y of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Airborne acceleration
Change the acceleration when the object is in the air.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Allow jumping again
When this action is executed, the object is able to jump again, even if it is in the air: this can be useful to allow a double jump for example. This is not a permanent effect: you must call again this action every time you want to allow the object to jump (apart if it's on the floor).

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Forbid jumping again in the air
This revokes the effect of "Allow jumping again". The object is made unable to jump while in mid air. This has no effect if the object is not in the air.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Collision layer
Change the collision layer of the object, only interacts with hedgehog platforms of the same layer.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Deceleration
Change the deceleration of the object when changing of direction on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Downwards slope factor
Change the acceleration when running down a slope. The actual deceleration applied to the character depends on how steep the slope is.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Friction
Change the friction of the object. The friction is a deceleration when there is no input.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Gravity
Change the gravity of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Grounded acceleration
Change the acceleration when the object is on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Jump height reducer
Change the Jump height reducer factor of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Jump speed
Change the jump speed of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Max speed
Change the max speed of the object while grounded.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Running lock remaining duration
Change the duration during which the character can't run left or right.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Rotate the object
Enable or disable rotation of the character when moving on the ground of falling from the ceilling.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2 (❓ Yes or No): ShouldRotate

Technical note: parameter 3 are internal parameters handled by GDevelop.

Speed
Change the current speed of the object. The speed can be negative when the object is on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Horizontal speed
Change the current horizontal speed of the object. The object is automatically set in airborne state.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Vertical speed
Change the current vertical speed of the object. The object is automatically set in airborne state.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Stand max angle
Change the stand max angle of the object. Allow characters to fully stop on not too steep floors.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Upwards slope factor
Change the deceleration factor when running up a slope. The actual deceleration applied to the character depends on how steep the slope is.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Operator
  • Parameter 3 (🔢 Number): Value

Technical note: parameter 4 are internal parameters handled by GDevelop.

Simulate jump key press
Simulate a press of the jump key.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Simulate left key press
Simulate a press of the left key.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Simulate right key press
Simulate a press of the right key.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Behavior conditions

Air drag
Compare the air drag of the object. The air drag reduce the speed on X axis.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Air drag min speed Y
Compare the air drag min speed Y of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Airborne acceleration
Compare the acceleration when the object is in the air.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Can jump
Check if the object can jump.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Collision layer
Compare the collision layer of the object, only interacts with hedgehog platforms of the same layer. .

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Deceleration
Compare the deceleration of the object when changing of direction on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Downwards slope factor
Compare the acceleration when running down a slope. The actual deceleration applied to the character depends on how steep the slope is.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Friction
Compare the friction of the object. The friction is a deceleration when there is no input.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Gravity
Compare the gravity of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Grounded acceleration
Compare the acceleration when the object is on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Is facing forward
Check if the character is facing forward.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is jumping
Check if the object is in the air because of a jump.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is moving
Checks if the object is moving.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is on floor
Check if the object is on a platform.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is on left ledge
Check if the object is on the left ledge of a platform.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is on right ledge
Check if the object is on the right ledge of a platform.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is pushing
Check if the object is pushing againgst a wall.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is slipping
Check if the object is slipping.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Control pressed or simulated
A control was applied from a default control or simulated by an action.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2 (🔤 String): Key to check (one of: "Left", "Right", "Jump")

Technical note: parameter 3 are internal parameters handled by GDevelop.

Jump height reducer
Compare the Jump height reducer factor of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Jump speed
Compare the jump speed of the object.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Max speed
Compare the max speed of the object while grounded.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Running lock remaining duration
Compare the duration during which the character can't run left or right.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Rotate the object
Check if the character is rotated while moving on the ground of falling from the ceilling.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Speed
Compare the current speed of the object. The speed can be negative when the object is on the ground.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Horizontal speed
Compare the current horizontal speed of the object. The object is automatically set in airborne state.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Vertical speed
Compare the current vertical speed of the object. The object is automatically set in airborne state.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Stand max angle
Compare the stand max angle of the object. Allow characters to fully stop on not too steep floors.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Upwards slope factor
Compare the deceleration factor when running up a slope. The actual deceleration applied to the character depends on how steep the slope is.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2: 🟰 Relational operator
  • Parameter 3 (🔢 Number): Value to compare

Technical note: parameter 4 are internal parameters handled by GDevelop.

Behavior expressions

Expression Description
Object.HedgehogCharacter::AirDrag() Return the air drag of the object. The air drag reduce the speed on X axis.
Object.HedgehogCharacter::AirDragMinSpeedY() Return the air drag min speed Y of the object.
Object.HedgehogCharacter::AirborneAcceleration() Return the acceleration when the object is in the air.
Object.HedgehogCharacter::CollisionLayer() Return the collision layer of the object, only interacts with hedgehog platforms of the same layer. .
Object.HedgehogCharacter::Deceleration() Return the deceleration of the object when changing of direction on the ground.
Object.HedgehogCharacter::DownSlopeFactor() Return the acceleration when running down a slope. The actual deceleration applied to the character depends on how steep the slope is.
Object.HedgehogCharacter::Friction() Return the friction of the object. The friction is a deceleration when there is no input.
Object.HedgehogCharacter::Gravity() Return the gravity of the object.
Object.HedgehogCharacter::GroundedAcceleration() Return the acceleration when the object is on the ground.
Object.HedgehogCharacter::JumpReducer() Return the Jump height reducer factor of the object.
Object.HedgehogCharacter::JumpSpeed() Return the jump speed of the object.
Object.HedgehogCharacter::MaxSpeed() Return the max speed of the object while grounded.
Object.HedgehogCharacter::MovementAngle() Return the angle (in degrees) in which the object is moving at.
Object.HedgehogCharacter::RunningLockRemainingDuration() Return the duration during which the character can't run left or right.
Object.HedgehogCharacter::Speed() Return the current speed of the object. The speed can be negative when the object is on the ground.
Object.HedgehogCharacter::SpeedX() Return the current horizontal speed of the object. The object is automatically set in airborne state.
Object.HedgehogCharacter::SpeedY() Return the current vertical speed of the object. The object is automatically set in airborne state.
Object.HedgehogCharacter::StandMaxAngle() Return the stand max angle of the object. Allow characters to fully stop on not too steep floors.
Object.HedgehogCharacter::UpSlopeFactor() Return the deceleration factor when running up a slope. The actual deceleration applied to the character depends on how steep the slope is.

Hedgehog character animator

Change animations and horizontal flipping of hedgehog characters automatically.

No expressions for this behavior.

Hedgehog character rolling

Toggle rolling mode.

Behavior actions

Simulate roll key press
Simulate a press of the Roll key. When characters stand still, they chouch instead of rolling.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Simulate spindash key press
Simulate a press of the spindash key.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Simulate spindash or jump key press
Simulate a press of the Spindash key when the character is crouching or the jump key otherwise.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Behavior conditions

Started a spindash
Check if the character has just started a spindash.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is charging a spindash
Check if the character is charging a spindash.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is crouching
Check if the character is crouching.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

Is rolling
Check if the character is rolling.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior

Technical note: parameter 2 are internal parameters handled by GDevelop.

No expressions for this behavior.

Hedgehog platform

Flag objects as being platforms which characters can run on.

No expressions for this behavior.

Hedgehog spring

Push hedgehog characters.

Behavior actions

Push character
Make the spring push the character.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2 (👾 Object): Character
  • Parameter 3 (🧩 Behavior): Hedgehog platformer character

Technical note: parameter 4 are internal parameters handled by GDevelop.

Behavior conditions

Can push
Check if the spring can push the character.

See parameters
  • Parameter 0: 👾 Object
  • Parameter 1: 🧩 Behavior
  • Parameter 2 (👾 Object): Character
  • Parameter 3 (🧩 Behavior): Hedgehog platformer character

Technical note: parameter 4 are internal parameters handled by GDevelop.

No expressions for this behavior.


This page is an auto-generated reference page about the Hedgehog platformer extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.