i´m new here and I got a problem with a little Script.
I got a card with a .png-image and a button. I want that i`m able to select the image and clone it when I push the button.
Script of the .png-image:
Code: Select all
on mouseDown
PersonMove //used for Drag&Drop
set the selected of me to true
put the selectedObject into gsle_Item
end mouseDown
Code: Select all
global gsle_Item
on mouseUp
clone image gsel_item
end mouseUp
I also tried in the button-script:
Code: Select all
global gsle_Item
on mouseUp
clone the selectedObject
end mouseUp
When i used following script in the image, it works fine (buts not what i need):
Code: Select all
on mouseDown
clone me
end mouseDown