Skip to content

Mechanics

YAHAHA Studio allows you to add mechanics, such as rotate, revolve, move and retroact, to your game by adding and configuring gameplay components.

Adding mechanics gameplay components to your objects

  1. Select the object and view its properties by choosing the More icon.

  2. In the Gameplay tab, choose +Component and you can add the Rotate/Revolve/Move/Retroaction component.

Rotate

The Rotate component makes an object move in a circle around the axis of rotation.

Field Description
Condition Determines the trigger of rotation.
  • On start, starts rotation when you enter Play mode.
  • Touched by player, starts rotation when the object is touched by the player.
Rotation Type Determines the type of rotation, either Circle or Arc. Specify the angle if you choose Arc.
Axis Determines the axis of rotation.
Direction Determines the direction of the circular movement.
Time Time to finish a circle or an arc in second.
Rotation NO Specifies the number of rotation.
Loop type Determines the loop type, either One-way or Two-way. If you choose One-way, the object rotates in the same direction. If you choose Two-way, the rotation direction changes to the opposite whenever the previous circle/arc movement finishes.

rotate

Revolve

The Revolve component makes an object move in a circle around a central axis.

Field Description
Condition Determines the trigger of revolve.
  • On start, starts revolving when you enter Play mode.
  • Touched by player, starts revolving when the object is touched by the player.
Revolving Type Determines the type of revolve, either Circle or Arc. Specify the angle if you choose Arc.
Rotate point The central point of revolve
Axis The central axis of revolve
Direction Determines the direction of the circular movement.
Time Time to finish a circle or an arc in second.
Rotation NO Specifies the number of revolving.
Loop type Determines the loop type, either One-way or Two-way. If you choose One-way, the object revolves in the same direction. If you choose Two-way, the revolving direction changes to the opposite whenever the previous revolve finishes.

revolve

Move

The Move component makes an object move along specified positions in the scene.

Field Description
Trigger Condition Determines the trigger of movement.
  • On start, starts moving when you enter Play mode.
  • Touched by player, starts moving when the object is touched by the player.
Start/Relative position Specifies the position for the object to start off.
  • Point, the point on the coordinate where the object starts moving.
  • Stay time, the time that the object stays when it reaches the point.
  • Move speed, the speed of moving to the next point.
Move NO Specifies the number of movement.
Loop type Determines the loop type, either One-way or Two-way. If you choose One-way, the object always moves in the same direction. If you choose Two-way, the movement direction changes to the opposite whenever the previous movement finishes.

move

Retroaction

The Retroaction component makes an object act an force on the player who touches it and cause some effects.

Field Description
Type Determines the effect type of retroaction:
  • Hit the player, pushes the player away.
  • Dead, causes the player to die.
  • Hit and dead, both pushes the players away and causes the player to die.
Degree Determines the degree of pushing the player away.

retroact