Creating non-interactive decorations
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.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.