I'm trying to create a box that will move randomly about the screen, and can't seem to get it to work. when i open the card it will place the object in a random location, but will not move after that. Here's what i've found to work to at least get it to move upon opening, but it does not seem to move after that...
Code: Select all
on openCard
moveImage
end openCard
on moveImage
put random(100) into x
put random(200) into y
set the loc of image id 1015 to x,y
send “moveImage” to me in 2 seconds
end moveImage
thanks in advance!
Sean