User Tools

Site Tools


en:examples:fx:add_fx_to_an_object

Adding FX to an Object

Code

orxObject_AddFX(heroObject, "HitPowerPill");

Config

[HitPowerPill]
SlotList = ColorFlash
 
[ColorFlash]
Type        = color
StartTime   = 0.0
EndTime     = 1.0
Curve       = sine
Absolute    = true
Period      = 0.5
EndValue    = (0, 128, 255)
StartValue  = (255, 255, 255)

Note: if you want to know how to add fx to an object using config, see: Object (FXList property) and FX

en/examples/fx/add_fx_to_an_object.txt · Last modified: 2018/02/14 08:47 (2 years ago) (external edit)