User Tools

Site Tools


pushing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pushing [2022/12/15 22:47] justinpushing [2022/12/18 17:18] (current) justin
Line 21: Line 21:
 {{:pushable_object_03.png?nolink|}} {{:pushable_object_03.png?nolink|}}
  
-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 any surrounding [[navigation_and_interaction|navigation]] paths whenever the player pushes or pulls the [[object]] to a new [[tile]].+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 any surrounding [[navigation_and_interaction|navigation]] paths whenever the player pushes or pulls the [[object]] onto a new [[tile]].
  
 {{:pushable_object_navigation.gif?nolink|}} {{:pushable_object_navigation.gif?nolink|}}
 +
 +=====Animation=====
 +When a [[character]] pushes or pulls an [[object]], the game will automatically attempt to play the "push" or "pull" [[animation]] for that [[character]]. If a "pull" [[animation]] isn't defined, the game will use the "push" [[animation]] for both pushing and pulling. See [[Predefined Animation Names]] for more information.
  
 =====Scripting===== =====Scripting=====
Line 30: Line 33:
 {{:pushable_object_example.gif?nolink|}} {{:pushable_object_example.gif?nolink|}}
  
-As an example, the [[script]] below could be assigned to the "Object stops on tile" trigger for a special [[tile]] that the player needs to push a box onto. The [[script]] plays an [[animation]] for the box and removes all navigation paths surrounding it in order to lock it into place and prevent further interaction. This could be extended to perform additional actions, like opening a door to the next room.+As an example, the [[script]] below could be assigned to the "Object stops on tile" trigger for a special [[tile]] that the player needs to push a box onto. The [[script]] plays an [[animation]] for the box and removes all [[navigation_and_interaction|navigation paths]] surrounding it in order to lock it into place and prevent further interaction. This could be extended to perform additional actions, like opening a door to the next room.
  
 <code bauxite> <code bauxite>
pushing.1671173259.txt.gz · Last modified: 2022/12/15 22:47 by justin