Anteworld - Outerra Game > Modding: Importer, Tools & Utilities

Some questions about the engine

(1/4) > >>

mustang60348:
Hopefully these haven't been asked before

1) What is the update rate of the Javascript update function. If I want to create an animation based on time, what happens if the animation takes longer than the update rate.

2) Is it possible to 'destroy' an object in the game via JS, iow, lets say I put a missle on an aircraft and fire it off, can that object be removed from the game.

3) Is it possible to create custom animation like explosions etc.

cameni:
1) Refresh rate. Delta time from previous frame is in the first parameter.
2) Not yet, though you could hide it away somewhere.
3) No, needs particle effects

mustang60348:
Thanks.

For your answer to the second question: Does this mean the update function does not start till the previous one ends. OR is it on a timer of sorts.

mustang60348:
One more question: Is it possible to print values to the console for testing

cameni:
The update function is a part of the game loop, and you must not spend long time in there else you block the game.

To print something into console use this.log_err(string) or this.log_dbg(string) or this.log_inf(string)

Navigation

[0] Message Index

[#] Next page

Go to full version