Actor spawns other actor on top - how set it to active?
Hunnenkoenig
Member Posts: 1,173
I have an icon and if I click it, it spawns the same actor on top of itself.
Now I want this spawned actor to drag and drop, but without having to reclick it. It should look like I would drag the icon itself while the copy of it stays on place.
I tried that the spawned actor has an attribute which makes it dragable immediately (it follows the mouse without press), but I can't switch it off. Now my icon can't be dropped, because not even timers work, when I try to switch the attribute off with them.
Strange.
Any advice?
Now I want this spawned actor to drag and drop, but without having to reclick it. It should look like I would drag the icon itself while the copy of it stays on place.
I tried that the spawned actor has an attribute which makes it dragable immediately (it follows the mouse without press), but I can't switch it off. Now my icon can't be dropped, because not even timers work, when I try to switch the attribute off with them.
Strange.
Any advice?
Comments
I just added a layer to the whole screen, which is only watching click and release and changes an attribute accordingly.
The actor watches this attribute and if it is released, then it sets the drag attribute to off.
Nobody cares, I know....