![]() |
screen size
can someone show me how to check the players screen size so my NPC's can adjust if it is changed ...
|
The built-in variables "screenwidth" and "screenheight" hold the value's of the width and height of the screen.
|
therefore:
if(screenwidth=#) { showimg 501, .....; } would work? |
Yes........ But I wouldn't show an image if the screen equaled a certain size. If people play in Windowed mode, the size can really be anything......
|
Quote:
|
Welcome ^_^ People normally use screenwidth and screenheight to place custom status bars on screen. Like:
NPC Code: |
Quote:
NPC Code: so then it is always constant on were it is on the screen (so it doesn't get moved if you get what I mean) |
thnx you both !
and status bars are what they were for ... |
Quote:
well also things like menus and stuff can use it... if you want to base something off the center of the screen or like move when you move the screen size then its good to use that... |
| All times are GMT +2. The time now is 04:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.