Left Pressed Event Help
Posted 26 May 2012 - 01:43 AM
global.Marked_Enemy = obj_Enemy
If two enemies are on the screen than this errors out. I thought about having a object that acts as a controller for battle and that left pressing in a specific location targets enemies. How would I go about doing this in actual code form:
If left pressed's location = obj_Enemy.x, obj_Enemy.y then . . .
Is there a way to make it so that I can mark objects based on their coordinates? Such as:
Set x and y to wherever you left pressed. If an object is there, set Marked_Enemy to that CLICKED object.
Posted 26 May 2012 - 01:54 AM
they are always different!(you can go to the room editor and move your mouse over an object and it will show the id some where)
Posted 26 May 2012 - 03:04 AM
Posted 26 May 2012 - 03:23 AM
So for example:
blueorb = instance_create(x,y,obj_Mark);
blueorb.sprite_index = IAMASPRITESNAME;
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users