Im placing obj's on the screen when specific procs are called. I was wondering how i would be able to know all of the cords on the screen so i can have exact positioning. Rather than constantly guessing the cords.
Oct 10 2012, 3:26 am
|
|
Iv come up with a better way of explaining this. I want to create a grid of my game screen for easier placement. Are there any ways to do this or is my only option to create my own.
|
Screen does have grid.
(1,1) is bottom left corner, it expands towards top right corner in same way as tiles do. |
Sorry, what? You're trying to place objs on the screen but are placing them on the map?
You should look into HUDs more: http://www.byond.com/docs/ref/info.html#/client/var/screen http://www.byond.com/docs/ref/info.html#/atom/movable/var/ screen_loc |
Essentially what you'd like, if I understand, is kind of a nice "map editor" style tool, for placing and previewing your screen object HUD?
To my knowledge, no tool currently exists that does this (although I guess, one could be made by a helpful community member). So yeah, I'm afraid you'll probably need to continue with the method you have. As Zaoshi points out though, the point of origin of screen objects is the lower left corner of your map control, (1,1) being bottom left, or origin. So given that, and existing elements you've place, you should be able to work out where other elements should go. Prototyping and checking it looks okay though, will just be as you are currently. |