Page 1 of 1

GReeting And Question about App.functions

Posted: Sat Aug 30, 2008 12:24 pm
by GGPlay
HI everybody, firstof all i want to express all my
passion and appreciation to this ZGameEditor ,it's really fantastic!!
I am just get this on tutorial 2 and i have seen also some post of
this forum, but i just saw the App.MousePosition(), App.DeltaTime()
,i have checked out the documentation on official page, but there
is no info.(or i didn't get it)about App functions.

Is that possible to get it ? Or App. is not available now??
:?: :?:

Thx again and welcome any reply :P

GGPlay

Posted: Sat Aug 30, 2008 3:44 pm
by VilleK
Hi and welcome ggplay!

The info you want is here:

http://www.zgameeditor.org/index.php/Co ... pplication

DeltaTime and MousePosition are not functions, they are properties of the ZApplication-component. When you make a new project there is always a ZApplication-component named "App" created for you. You access the properties in code using "App.MousePosition" etc, without the "()" you would use for calling a function.

Posted: Sat Aug 30, 2008 5:44 pm
by GGPlay
:oops: jaja, that's right...,it should be a property not
function.Thx ur correction!

I should read more in the documentation, but thak you
very much for the really useful answer !!
and also ur time :)