WDFUSE Tutorial - Objects

From DF21 Wiki
Revision as of 09:13, 27 June 2022 by DF21net (talk | contribs) (Created page with "== Objects == In this tutorial we will talk about Dark Forces objects. These include the enemies you fight, the items you pick up, the sound effects and the 3D renderings of the Moldy Crow. Some objects are visible and some are invisible. Some have logic assigned to them and some do not. In this section we will do a deep-dive of all the object types and how to use them in WDFUSE. To get started load up the '''Objects''' tutorial in the New Projects ( '''Ctrl+N''' ) sect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Objects

In this tutorial we will talk about Dark Forces objects. These include the enemies you fight, the items you pick up, the sound effects and the 3D renderings of the Moldy Crow. Some objects are visible and some are invisible. Some have logic assigned to them and some do not. In this section we will do a deep-dive of all the object types and how to use them in WDFUSE.

To get started load up the Objects tutorial in the New Projects ( Ctrl+N ) section. Load up the map and switch to Object Mode.

Object Editor

It's time to learn about Object Editor properties. While in Object Mode go ahead and select the Player on the left hand side.

Object Properties

Just like the other editors you will see that each Object has a numerical ID. In this case the OB # is 0. Let's go over the properties of the object

  1. Class - This is the Type of object. For example, it could be a Sprite or a Frame or a Sound
  2. Name - This is the name of the of the object. For example a Stormtrooper or an extra life.
  3. X - The X position on the map.
  4. Y - The Y altitude on the map.
  5. Z - The Z position of the map.
  6. Yaw - The Yaw rotation of the object.
  7. Pitch - The Pitch rotation of the object.
  8. Roll - The Yaw rotation of the object.
  9. Difficulty - The Difficulty setting of the object (Ex: An extra life only appears on Easy mode).
  10. Sector - What sector the object belongs to.
  11. Color - The Color of the object on the map.
  12. Type - The Type of the object (Ignore - for now).
  13. Generator - Does it use a generation logic (Respawning stormtroopers).

At the top you will see the ubiquitous Commit, Rollback and Stay-on-top buttons as well as the new Select, Logic and Generate buttons. The Select button allows you to choose the object you want, the Logic will automatically assign the default logic for the object and Generate will load the logic to respawn the object (Infinite stormtroopers).

At the bottom you will see a text edit box for the object's Logic. And below that you will see the name of the Sector the object belongs to, the Floor and Ceiling heights as well as the map Layer in which the object is drawn.

Adding and Selecting an Object

Just like in the Geometry section you can Add an object by pressing the Insert key and it will make a copy of a new object. Or you can right click on the map and in the pop-up menu choose Duplicate.

Once the object is created you have two main ways to choose the object you want. You can either double-click on the


The Select button allows you to pick and choose the

Sprite Objects

Go ahead and GOB your mission and you will find yourself in a hallway of of various enemies.

Don't worry, they won't attack you. All the logic from them has been removed.