This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
door_scripting_tutorial [2017/11/04 10:44] – justin | door_scripting_tutorial [2017/11/04 10:47] – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
=====Creating the Model===== | =====Creating the Model===== | ||
- | You'll first need to build a [[voxel]] model for your door. Create a new [[object]] in the [[Voxel Editor]] and build a door model similar to one of those shown in the examples below. For this tutorial, you'll want to have at least two separate frames, one for the door in its closed state and one in its open state. | + | You'll first need to build a [[voxel]] model for your door. Create a new [[object]] in the [[Voxel Editor]] and build a door model similar to one of those shown in the examples below. For this tutorial, you'll want to have at least two separate frames, one for the door in its closed state and one in its open state. Most of the examples in this tutorial will be be based on the first type of door shown. |
The style, orientation, | The style, orientation, | ||
Line 66: | Line 66: | ||
====Method 1: Replace Navigation==== | ====Method 1: Replace Navigation==== | ||
- | The improved version of the [[script]] using the [[Replace Navigation]] is fairly straightforward. We simply swap the navigation types between " | + | The improved version of the [[script]] using the [[Replace Navigation]] |
<code lua> | <code lua> | ||
if self.property[" | if self.property[" |