This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pushing [2022/12/15 22:20] – justin | pushing [2022/12/18 17:18] (current) – justin | ||
---|---|---|---|
Line 3: | Line 3: | ||
The **pushing** mechanic allows [[character|characters]] to push and pull [[object|objects]] onto other [[tile|tiles]]. This is a great way to include puzzles in your game! For example, a room could be set up where the player needs to move one or more boxes onto specific [[tile|tiles]] in order to open a door. | The **pushing** mechanic allows [[character|characters]] to push and pull [[object|objects]] onto other [[tile|tiles]]. This is a great way to include puzzles in your game! For example, a room could be set up where the player needs to move one or more boxes onto specific [[tile|tiles]] in order to open a door. | ||
- | =====Setting Up Pushable | + | =====Setting Up a Pushable |
Add the [[object]] that you want to be pushable to an open [[tile]] on your [[map]]. | Add the [[object]] that you want to be pushable to an open [[tile]] on your [[map]]. | ||
Line 13: | Line 13: | ||
{{: | {{: | ||
- | Switch to Edit mode (F2), then double-click the [[object]] to open the [[Entity Properties]] panel. From the [[Entity Properties]] panel, enable the " | + | Switch to Edit mode (F2), then double-click the [[object]] to open the [[Entity Properties]] panel. From the [[Entity Properties]] panel, enable the " |
- | Set the desired movement speed for the [[object]]. The movement speed is measured in [[voxel|voxels]] per second, similar to the movement speed of [[character|characters]]. This speed determines how the | + | Set the desired movement speed for the [[object]]. The movement speed is measured in [[voxel|voxels]] per second |
If the pushable [[object]] should be restricted to, or prohibited from, certain [[tile]] types, you can make use of the [[terrain types]] option to do so. If the default option of " | If the pushable [[object]] should be restricted to, or prohibited from, certain [[tile]] types, you can make use of the [[terrain types]] option to do so. If the default option of " | ||
Line 21: | Line 21: | ||
{{: | {{: | ||
- | Once the [[object]] is configured to be pushable, the player will be able to grab onto it from an adjacent [[tile]] and then push or pull it. As shown below, the game will automatically update | + | Once the [[object]] is configured to be pushable, the player will be able to grab onto it from an adjacent [[tile]] and then push or pull it. As shown below, the game will automatically update |
{{: | {{: | ||
+ | |||
+ | =====Animation===== | ||
+ | When a [[character]] pushes or pulls an [[object]], the game will automatically attempt to play the " | ||
=====Scripting===== | =====Scripting===== | ||
Line 29: | Line 32: | ||
{{: | {{: | ||
+ | |||
+ | As an example, the [[script]] below could be assigned to the " | ||
+ | |||
+ | <code bauxite> | ||
+ | replace_navigation(self, | ||
+ | play_animation($object, | ||
+ | </ | ||
=====Game Controls===== | =====Game Controls===== |