My first game
Posted: Wed Jun 25, 2014 11:31 pm
Hi this is my fisrt game, its alfa version
What do you think ?

The rapid development solution with a tiny footprint
http://www.emix8.org/forum/
Code: Select all
CurrentModel.Velocity.Y -= 1;
Code: Select all
CurrentModel.Velocity.Y -= 60*App.DeltaTime;
Not sure why this still isn't build-in, but it isn't unfortunately .. so you have to detect when a key has been released yourself. Here's a simple example of how to do this for a single key ( S in this case ).Csabalia wrote:I need one more help, delphi has OnKeyUp event, i want to implement this function on my app, so when i realese one key, the app will do one think, how can i do it?
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application">
<OnUpdate>
<ZExpression>
<Expression>
<![CDATA[Key[1] = Key[0]; // Cache current value
Key[0] = 0; // Reset current value]]>
</Expression>
</ZExpression>
<KeyPress Keys="S">
<OnPressed>
<ZExpression Expression="Key[0] = 1;"/>
</OnPressed>
</KeyPress>
<ZExpression Expression="Key[2] = Key[1] && !Key[0]; // Determine if key has been released"/>
</OnUpdate>
<OnRender>
<Condition Expression="return Key[2];">
<OnTrue>
<RenderSprite/>
</OnTrue>
</Condition>
</OnRender>
<Content>
<Array Name="Key" Type="4" SizeDim1="3"/>
</Content>
</ZApplication>
No worries, your English is fineCsabalia wrote:And sory for my english