SOLVED..Inventory cursor hotspot

Started by NickyNyce, Mon 28/03/2011 23:31:19

Previous topic - Next topic

NickyNyce

Im sorry for having to ask....I cant seem to figure out the inventory hotspot cursor or find a clear answer anywhere. My only real problem is whenI'm trying to click on an inventory item...Example...i have a good size balloon, i put the cursor image crosshair right in the middle of the balloon, but if i click anywhere but right in the middle it doesn't pick up the item( I also tried putting it in the upper most left corner ) to no avail. I would think any part of the item would be fine to click on, but that don't seem to be the case, i also tried to draw my own cursor image but cant seem to figure that out either...

I  would appreciate the help ...thanks

Khris

The hotspot is only relevant when the item *is* the active cursor; it defines the sprites position in relation to the mouse coordinates.

What you need to do is decide on fixed inventory item sprite dimensions and enter those in the properties of the InventoryWindow GUI element.
In other words, choose a sensible size like 30x20, then draw all inventory item sprites to fit that.

NickyNyce

#2
Khris thanks for the info....But im still having a problem following you...sorry... im 3 weeks into AGS...i think i need you to lead me to water...
I go to the GUI inventory section but i dont see where i should put those numbers....im still confused. I follow you on keeping all items the same size, but the rest is a little greek..lol

Khris

After you've opened the inventory GUI for editing, click the InvWindow, the rectangle containing the grid of items. Now you can set its properties, including ItemWidth and ItemHeight.

NickyNyce

O.K. Gotcha, i notice now what the problem is, Im drawing my Items different sizes and its messing up the hotspot click, at the moment my items actually click fine when i click slightly above them....I appreciate the help your giving me...thanks again

Khris

Yeah, like I said, draw all items at the same size.


SMF spam blocked by CleanTalk