I discovered ZGameEditor two days ago. I was amazed by the simplicity and efficiency of it. So after going through the "avoid walls" tutorial, I made this simple game this morning.
Now I have some questions for you... For starters, let's talk about the enemy color change. I made that using the Condition component within the Render part:
Code: Select all
<OnRender>
<UseMaterial Material="SpriteMaterial"/>
<Condition Expression="return CurrentModel.EnemyLife == 3;">
<OnTrue>
<RenderSetColor Color="0.502 0.502 0.502 1"/>
</OnTrue>
<OnFalse>
<Condition Expression="return CurrentModel.EnemyLife == 2;">
<OnTrue>
<RenderSetColor Color="1 0.502 0 1"/>
</OnTrue>
<OnFalse>
<Condition Expression="return CurrentModel.EnemyLife == 1;">
<OnTrue>
<RenderSetColor Color="1 0 0 1"/>
</OnTrue>
</Condition>
</OnFalse>
</Condition>
</OnFalse>
</Condition>
<RenderMesh Mesh="EnemyMesh"/>
</OnRender>
I've got some more questions about random numbers and laser angle, but I'll ask one at a time
![Smile :)](./images/smilies/icon_smile.gif)
Thanks !
Now I'm going to try particles...