- Joined
- Nov 6, 2009
- Messages
- 279
How do you do something when an image is clicked(for an inventory system or something)?
You use an event that catches the action.
:whistles:
First of all, you need to define what you mean by "image".
Unit detection is amazing slow. Selection events tend to be very delayed, use trackables. For an inventory, it's not important to destroy them.
A type like units, strings... just a normal Blizz variable type
Trackables are 2D "pictures" then can be set on the ground. Then, there are events for "hovering" over a trackable or clicking them.
Hmm... Devil, if you want to make an inventory system with multiboard by that, forget it right now And start looking for a one with keyboard(arrows) controlled one There are plenty of them