Malte... thanks, but in my case I have an already finished
image being applied to a button, so I need to rotate the whole
button and so I don't have these grc angles to use as
"handles"
ooops! blunder. btns don't have angle props... OK
this works
on mouseUp
set the angle of img "rudra-1.png" to 0
set the flag of me to not the flag of me
if the flag of me then
rollBead1
end if
end mouseUp
on rollBead1
local tStep
put 40 into tStep
lock screen
set the angle of image "rudra-1.png" to the angle of image
"rudra-1.png"- tStep
unlock screen
if the flag of me then send "rollBead1" to me in 80 milliseconds
end rollBead1
I just cannot instantiate those img over multiple locations as btn...
It's OK I can use in descreet groups and place as needed.
cheers from Hawaii
Malte Brill wrote:
Hi Katir,
Here is a starter. Try this in a button:
on mouseUp
set the flag of me to not the flag of me
if the flag of me then
createBall
end if
end mouseUp
on createBall
if there is a grp "ball" then delete grp "ball"
local tSpikes,tAngle
put 6 into tSpikes
put 360/tSpikes into tAngle
create group "ball"
set the style of the templateGraphic to "oval"
set the height of the templateGraphic to 50
set the width of the templateGraphic to 50
set the opaque of the templategraphic to true
set the loc of the templateGraphic to 100,100
repeat with i=1 to tSpikes
set the backColor of the templateGraphic to any item of
"red,green,blue,yellow,purple,magenta"
create grc ("spike"&i) in grp "ball"
set the arcAngle of the last grc to tAngle
set the startangle of the last grc to i*tAngle-tAngle
end repeat
if the flag of me then rollBall
end createBall
on rollBall
local tStep
put 8 into tStep
lock screen
repeat with i=1 to the number of grcs of grp "ball"
set the startAngle of grc i of grp "ball" to the startAngle of grc i
of grp "ball" + tStep
end repeat
unlock screen
if the flag of me then send "rollBall" to me in 40 milliseconds
end rollBall
You will need to move the group asynchronously then. AE might help there.
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
--
Om shanti
(In Peace)
Sivakatirswami
www.himalayanacademy.com
Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution