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¶
-
Select the object and view its properties by choosing the More icon.
-
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.
|
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. |
Revolve¶
The Revolve component makes an object move in a circle around a central axis.
Field | Description |
---|---|
Condition | Determines the trigger of revolve.
|
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. |
Move¶
The Move component makes an object move along specified positions in the scene.
Field | Description |
---|---|
Trigger Condition | Determines the trigger of movement.
|
Start/Relative position | Specifies the position for the object to start off.
|
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. |
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:
|
Degree | Determines the degree of pushing the player away. |