Need App.DeltaTime help :)

Post screenshots, binaries and projectfiles of the projects you have made with ZGE that you want to share!

Moderator: Moderators

Post Reply
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Need App.DeltaTime help :)

Post by turshija »

ok I made some kind of small game, and its working fine on my computer but I'm not sure how to use App.DeltaTime to make it working nice on different CPU speeds ...
I have attached zgeproj file, and I would like someone to add App.DeltaTimes where is necessary please :)

Thank you

Boris

P.S. I made this game to test reflexes so it is meant to be very fast ;)
Attachments
Spacer.zip
(1.35 KiB) Downloaded 581 times
Yo mama's so fat that a recursive function computing her weight causes a stack overflow.
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

I'm impressed!

You really seem to have understood how to use ZGE even though there
is so little documentation, good work. That makes me happy! :)

About deltatime: Since you only set an initial velocity in OnSpawn, you
do not need to use deltatime. If you modify Velocity or Position in an
expression in OnUpdate, then you need deltatime.

I would make the rocks fall slightly slower though, they are too fast
for my reactions :)
Attachments
Spacer screenshot
Spacer screenshot
spacer.png (19.46 KiB) Viewed 5280 times
Post Reply