Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / GetVirtualWidth

Author
Message
Mark532011
8
Years of Service
User Offline
Joined: 27th Jun 2016
Playing: X-Com, WOW-Legion
Posted: 18th Jul 2016 02:31 Edited at: 18th Jul 2016 02:32
I am not understanding the "GetVirtualWidth" (and Height) commands. The documentation sounds straightforward but it doesn't work.


It seems like in this scenario I should get a 1024 and 768 printed on the screen, but I get a compiler error instead. Do these commands only work in certain circumstances?
Mark532011
8
Years of Service
User Offline
Joined: 27th Jun 2016
Playing: X-Com, WOW-Legion
Posted: 18th Jul 2016 02:33
Sorry, duplicate post but I don't see any way to delete it.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Jul 2016 02:50
print is a function and requires brackets ie;
print(GetVirtualWidth())
Mark532011
8
Years of Service
User Offline
Joined: 27th Jun 2016
Playing: X-Com, WOW-Legion
Posted: 18th Jul 2016 18:57
jeez - thanks for the reminder. don't I feel dumb!

Login to post a reply

Server time is: 2024-11-22 02:15:58
Your offset time is: 2024-11-22 02:15:58