-
Instance destroyed
Code:
Repeat when user click on left button
+ Mouse over "Active"
Set "Active" Flag 0 ON
X Repeat when user click on left button
Set "Active" Flag 0 OFF
is Flag 0 ON
Set "Active" X o XMouse-15
Set "Active" Y o YMouse-15
User double-click with left button on "Active"
Create "Active" at (320,240)
With this code, when I overlap the created instances, the instance which is underneath is destroyed..
Is it a bug or may I miss something ?
Thx
-
Setting the flags like that is pointless. It will still set the flags for all objects under the cursor, meaning that all those objects under the cursor get set to the same position and the top ones hide the bottom ones.
-
Thanks for clarifying this but how can I solve it so ?
-
Code:
Always
-->Set Alterable Value A of Object to 0
Repeat while mouse is over Object
& Repeat while Left Mouse Button is pressed
& Only One Action on Event Loop
-->Spread Value 0 in Alterable Value A of Object
-->Set Alterable Value A of Object to NObjects("Object")-Alterable Value A("Object)
Repeat while mouse is over Object
& Repeat while Left Mouse Button is pressed
& Only One Action on Event Loop
& Alterable Value A of Object = 1
-->Do Code on Object
-
Thanks LB but it doesn't work at all. The object are not even following the mouse anymore...
I followed your code, and just replace "Do code object" by Set X(object) to Xmouse-15 and the same thing for Y...
-
Could you upload the changed MFA? The actives use the Drag 'n' Drop movement.
-
LB
I'm just totally stupid. I totally forgot the drag'n'drop behavior.
That's just what I need, and it doesn't destroy other instances.
Thx for your time.