ID:176577
 
HI
im making a game with a some people and i was thinking can any one help me ? i made the game so when you CLick the mouse you move to the point you clicked and was thinking is therer a way to make the it so when you whant to attck and click to attack there a way to Diss able that ? CLick movment for the attack click ? so it will be like DAIBLO
i will give credit if you fix this prob thank you very much
Mordor wrote:
HI
im making a game with a some people and i was thinking can any one help me ? i made the game so when you CLick the mouse you move to the point you clicked and was thinking is therer a way to make the it so when you whant to attck and click to attack there a way to Diss able that ? CLick movment for the attack click ? so it will be like DAIBLO
i will give credit if you fix this prob thank you very much

It's not really as hard as you think. First thing you want to do is set mouse_opacity to 2 on mobs, so that if you click anywhere on the tile containing the mob, it will react. Now, you just need to call the appropriate Click() procedures.

mob/mouse_opacity = 2
mob/Enemy/Click()
Attack_Proc()
turf/Click()
if(!src.density)
walk_to(usr, src, 0, 4)

This is meant to be a simple guideline, so don't copy and paste this directly into your code, as it needs to be modified according to your own mob types and proc names.
In response to Malver
Thank you but i cant seem to get it got aim ? we can talk about it if i get it befor we talk i will tell you thank you agin