![]() ![]() I can see that each point got the good number of "nb of close point" with the tool-tip, so the ds_list got the good number of info stored in.Ä«ut i don't have any line between the map_spot. I try at first with mp as a "normal" variable, not an array, but actually nothing get draw. The "nb of close point" is just used as a debug for now (i have an "info" tool-tip for debug on all my objects). Info = string("nb of close point"+string(nb_near)) The draw_event code of the map_spot object : closeList = scr_find_near(300,map_spot) If (point_distance(x,y,other.x,other.y) < argument0) The script i use : ///scr_find_near(dist,object) based on the solution provided, this is what I've done : So I try the solution, but something is not working. It doesn't really work as intended as if there are three map spots close enough each other I get a green triangle and not just the path used. But as the event run on all map_spot I can't find a way to keep track of everything.Äone is a variable to check if I already got on a particular spot. ![]() It was the only way I found to be able to get the instance_ID of multiple instances of the same object around a point. Inst= collision_circle(x,y,100,map_spot,false,false) I tried to do something like that directly on the draw event of the map_spot object.Äraw Event code : for (i=0 i ![]() This part works as intended, I got the line drawn between the spot object I'm currently in and the other closest spot. If point_distance(mapSpot.x,mapSpot.y,near.x,near.y)<100Äraw_line(mapSpot.x,mapSpot.y,near.x,near.y) I made an object ctr_obj that moves (on mouse click) from one spot to another if they are distant less than 100 pixels.Ĭreate Event code : smp = instance_nearest(x,y,map_spot)Äraw Event code : for (i=0 i ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |