resize then change angle question
Posted: Thu Dec 08, 2011 3:56 pm
I'm trying to manipulate an image in a card to:
1. Resize itself slightly larger
2. Wiggle back and forth (using set angle)
3. Reset back to original size
I can resize the image, but as soon as I issue the angle command the image reverts back to its original size. Below is the script I'm using - any suggestions? Thanks in advance!
1. Resize itself slightly larger
2. Wiggle back and forth (using set angle)
3. Reset back to original size
I can resize the image, but as soon as I issue the angle command the image reverts back to its original size. Below is the script I'm using - any suggestions? Thanks in advance!
Code: Select all
on mouseUp
wait 0 with messages
--grab the original size, place in variable, resize
put the height of image "Forklift_lil.jpg" into daOriginalHeight
put the width of image "Forklift_lil.jpg" into daOriginalWidth
set the height of image "Forklift_lil.jpg" to daOriginalHeight + 20
set the width of image "Forklift_lil.jpg" to daOriginalWidth + 20
repeat 3 times
wait 0 with messages
set the angle of image "Forklift_lil.jpg" to -10
wait 5 ticks
set the angle of image "Forklift_lil.jpg" to 10
wait 5 ticks
end repeat
set the angle of image "Forklift_lil.jpg" to 0
set the height of image "Forklift_lil.jpg" to daOriginalHeight
set the width of image "Forklift_lil.jpg" to daOriginalWidth
end mouseUp