<Traits>
Traits lets you customize how an object behaves. Traits are simply a way for you to tell the Novelty game engine how an object should be treated or behave.
Multiple traits can be added to the same object, but no more than one of each trait type.
List of trait types
Type | Description |
<AnimateColor> | Animate object's color |
<AnimateOpacity> | Animate object's opacity |
<AnimateRotation> | Animate object's rotation |
<AnimateScale> | Animate object's scale |
<AnimateX> | Animate object's horizontal position (x) |
<AnimateY> | Animate object's vertical position (y) |
<ConstantRotation> | Constantly rotate object |
<ShowDialogue> | Display dialogue text (Text only) |
<ShowName> | Display name (Text only) |
<ShowOnWait> | Only show object when waiting |
Example
<Image name="My image" texture="My texture">
<Traits>
<!-- Traits goes here -->
</Traits>
</Image>