ID:1592169
 
(See the best response by Akto.)
Is it possible to highlight an area over an object or mob when the player mouses over it? For example if I have a flag and want the area under the flag to belong to the player can I make it so when the player (and only the player it belongs to) mouses over the flag (which would be an object) the area gets highlighted(to the player only).


I'm not sure how to get things to happen on mouse over, if its even possible. Also would I have to create a highlight icon to do this? Is it possible to use any of the tools in DM to do this purely from code? (sorry if i've been asking too many questions as of late, seems like im not even making the game myself but im stuck)
Best response
Wow, I think I can help with this one... Now I am not the best programmer but I believe this is what you are looking for:

atom // Attach to what you want highlighted
var
highlight
MouseEntered() // mouse over
highlight = image(src.icon+rgb(255,0,0),src,src.icon_state,100) //creates a duplicate image with red tint at layer 100
usr << highlight // only the player who moused over can see
MouseExited()
del(highlight) // delete when the mouse is off
god bless your soul
@Gluscap, you could see this example in the DMguide, which i recommend you view.
Will do, been using the dm docs(there were a lot of mouse procs) like a religious text and have been ignoring most of the later part of the dmguide.
Alright, good luck on your ventures into the DM Language.