User Tools

Site Tools


en:examples:fx:dynamic_fx_values

This is an old revision of the document!


Dynamic FX Values

When you need to change the values in the FX. Any further objects created using the FX will use the new values.

Code

if (orxConfig_PushSection("GrowFXSlot")){
	orxConfig_SetFloat("EndValue", someNewScaleVectorValue.fX);					
	orxConfig_PopSection();
}
 
orxObject_CreateFromConfig("ObjectUsingGrowFX");

Config

[GrowFX]
SlotList        = GrowFXSlot
Loop            = false
DoNotCache 	= true ;<----- this is the important setting. Allows the values of the FX to change
 
[GrowFXSlot]
Type            = scale
Curve           = linear
StartTime       = 0.0
EndTime         = 1.0
StartValue      = 0.1
EndValue        = 1.0 ; <----- value when app starts. But our code will alter this. 
Absolute        = true
 
[ObjectUsingGrowFX]
FXList          = GrowFX
en/examples/fx/dynamic_fx_values.1638188041.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)