Creating non-interactive decorations
Jump to navigation
Jump to search
Warning: Information on this page is outdated. It relies on DECORATE functionality (which is currently deprecated in GZDoom), and may also contain mistakes, bad practices or missing details. See here for an up-to-date ZScript version of this page. |
Non-interactive decorations are the simplest form of actor that can be defined. They usually consist of a single sprite with one frame or a looping animation. Therefore they only define a Spawn state which defines the entire visual appearance.
You may set any property and flag as needed.
This is an example of a simple decoration:
actor CEye 10242 { Height 40 Radius 20 +SOLID States { Spawn: HAW6 A 10 HAW6 B 10 Bright HAW6 C 10 Loop } }
Simple decorations can use code pointers just as any other actor. This is an example of a decoration that uses actions:
actor Pulsar 10239 { PainSound "pulsar/pulse" +NODAMAGETHRUST States { Spawn: HAX7 A 15 bright HAX7 B 15 bright A_Pain HAX7 C 20 bright A_Explode Loop } }
For a step by step detailed guide, please view this post.