Drag & Drop mechanics

ElLoco

Member
Hello!
First, sorry for my english (i'm french)

I like to program an drag and drog méchanics to deplace object in my room.

I can deplace it but first probleme: when i click on superposed object, only the first created is selected (and not the objects with less depth!)
I haved programm a script who selected the sprite who have the less depth but... there is a probleme when two object have the same depth!

I'm newbee in Gamemaker so if somebody can help me ;-)
 

Nidoking

Member
Can you be more specific about the problem? What is happening that you don't want to happen, and what do you want to happen instead?
 

TheouAegis

Member
If they have the same depth, the drawing orderwill beseemingly random. Youcould always take the one with the highest id, or the one with the lowest. Test which works.
 
Top