Simple animator oversleeps in Preview
Posted: Sat Dec 27, 2014 6:46 am
If you start the example below (with F9, or as an exe), you'll see the square changing colors as expected. But if started inside the preview, it takes some 5 seconds before anything starts happening.
Edit: Tested it on my other (Windows 7) computer and there it sometimes works without delay.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" NoSound="1">
<OnUpdate>
<AnimatorSimple Duration="0.5" AutoStart="255" Target="MonoColor.Color.G" RepeatCount="-1" ToValue="1" Smooth="255"/>
</OnUpdate>
<OnRender>
<UseMaterial Material="MonoColor"/>
<RenderSprite/>
</OnRender>
<Content>
<Material Name="MonoColor" Color="0.0548 0.9042 1 1"/>
</Content>
</ZApplication>