VNEvents
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
<set property="craig->material->color.a" value="0" />
|
||||
|
||||
<!-- Fade out the black overlay -->
|
||||
<animate item="square->material->color.a" from="1" to="0" time="1" curve="easeOut" />
|
||||
<set property="square->material->color.a" from="1" to="0" duration="1" curve="easeOut" />
|
||||
|
||||
<!-- Example Text, also showing how in future we can support multiple languages -->
|
||||
<text character="eth">
|
||||
@ -24,7 +24,7 @@
|
||||
</text>
|
||||
|
||||
<!-- Fade in craig -->
|
||||
<animate item="craig->material->color.a" from="0" to="1" time="1" curve="easeOut" />
|
||||
<set item="craig->material->color.a" from="0" to="1" duration="1" curve="easeOut" />
|
||||
<text character="craig">
|
||||
<string lang="en">Hi, I'm Craig.</string>
|
||||
</text>
|
||||
@ -35,12 +35,12 @@
|
||||
at the same time. This will make craig exit screen left.
|
||||
-->
|
||||
<parallel>
|
||||
<animate item="craig->material->color.a" from="1" to="0" time="1" curve="easeOut" />
|
||||
<position item="craig" x="-2" time="1" curve="easeOut" />
|
||||
<set item="craig->material->color.a" from="1" to="0" duration="1" curve="easeOut" />
|
||||
<position item="craig" x="-2" duration="1" curve="easeOut" />
|
||||
</parallel>
|
||||
|
||||
<!-- Now Craig is gone, so sad, let's now fade the screen out and present some choices -->
|
||||
<animate item="square->material->color.a" from="0" to="1" time="1" curve="easeOut" />
|
||||
<set item="square->material->color.a" from="0" to="1" duration="1" curve="easeOut" />
|
||||
|
||||
<!-- Here I am creating a marker -->
|
||||
<marker name="craigCool" />
|
||||
@ -90,7 +90,7 @@
|
||||
<choice-set key="isCraigCool" value="yes" />
|
||||
|
||||
<!-- We can also wait some time -->
|
||||
<wait time="1" />
|
||||
<wait duration="1" />
|
||||
|
||||
<!--
|
||||
Now change scenes. Changing scenes is handled in-engine to stop the game
|
||||
|
Reference in New Issue
Block a user