Is a pain when you want place some panel/sprite in screen, for fine tune you've only trial and error, till tou get the disired position.
And I'm not talking abouy just place img in screen, you imagine the following scene:
I'm working in inventory, so I've a big imagen ( a box) lets say in the center of screen, place it is not problem (50,50), but now I'll should to place the collectibles, all the objects the player grabb, inside this box, leaving some space between them and so on, there should be a slots to contain those items; when player use one item, there should be a new empty slot.
Here any way to get the real x,y, co-oor becames very handy, like a grid along the screen, the ability to works with sprites as some item more, and being able to place them manually in the editor, of course remain hide while in test mode till the player want to use it.
What I really would like was some sort of oop, where one item is one object, it has their own properties, methods, events, etc.
Just my thoughts.
Does not work a lot with this sorts of thing (sprittes, panels), because this; and I'm not sure if the others items are screen coordinate based, following with the example above:
The box is clear positioned (screen based), but the collectibles, does they are screen based too?
If so, why not box coordinate based?
If engine alredy now the box coordinates, why not work with them, to positioned the collectibles?
If inventory be an object, the slot can be image control, so easily I can say: slot1.picture = "collectible.bmp" (teapot, ammo, healt, etc); and do not have to care about screen coordinates, and so on.
A panel being a textbox, so I can say: textbox1.text= "the text you want here"
Since the textbox have picture properties, so I can say: textbox1.picture="myImage.bmp", and I alredy have the image panel I want to. And so on.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics