Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Rotation Animation Request

I'd like to have a way to set the selected token to rotate 10 degrees in rapid succession so that it appears to be animated. and of course a way to turn it off. Can this be done?
1416705085
The Aaron
Roll20 Production Team
API Scripter
It can. My turn marker script has an option for causing the marker to spin.
1416706439

Edited 1416708579
Yeah, but I don't know how to isolate that effect and/or apply it to a token. Besides, I've already got a pretty big backlog for you. I was hoping I could get it from somebody else while I wait.
1416707469
vÍnce
Pro
Sheet Author
We need to start a tip jar for Aaron until roll20 hires him. :-)
+1
1416709691

Edited 1416709724
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Hi Robert, Since The Aaron is buried in requests I thought I'd help you out with this one. <a href="https://gist.github.com/SteveKoontz/fabacf7aafd5c993dff7" rel="nofollow">https://gist.github.com/SteveKoontz/fabacf7aafd5c993dff7</a> !spin to start !stop to stop Change the ("rotation")+10 to a higher number to increase the speed of turn or negative to switch directions. Change the (spinthis, 200) to change the rate of turning.
Awesome. This is pretty cool!
1416711239

Edited 1416711349
vÍnce
Pro
Sheet Author
Right on. Thanks Steve. Now I want to see the token that you want to apply this to. Spinning blade trap?
Spinning blade trap is a good idea for another day. It's actually an aesthetic touch for an enchanted monolith that surrounds itself with a circle of revolving runes (indicating that it has been activated). Of course, the applications are limitless and this is just the beginning.
1416856619

Edited 1417208479
The Aaron
Roll20 Production Team
API Scripter
Vince said: We need to start a tip jar for Aaron until roll20 hires him. :-) There is little that would make me happier than working for Roll20. Probably not in the cards (dice?) right now though. Thanks for taking up my slack, Steve! That's what I've been trying to do for the Roll20 crew! Irony. I took Steve's snippet and expanded it into a full script: A few changes: I tied the rotation to the time, rather than keeping a counter. I find this makes a smoother rotation when latency is variable (though it does have an initial jump when the rotation starts to get on the clock). Works for all selected tokens Supports variable rotation rates (and setting a new rotation rate cancels the old one). So, if you want the selected tokens to rotate fully once every 5 seconds: !spin-start 5 Supports counter clockwise rotation. Rotate counter-clockwise once every 5 seconds: !spin-start -5 Dependencies : This script uses my isGM script, see it for install instructions. GIST: <a href="https://gist.github.com/shdwjk/acda2fca3aaaa114242" rel="nofollow">https://gist.github.com/shdwjk/acda2fca3aaaa114242</a>...
Aaron, I get a, "Gist is not defined" error when I played with your newest toy. I have IsGM installed and working these past few months. (ver 0.6).
1416861916
The Aaron
Roll20 Production Team
API Scripter
PM me an invite, I'll see what I can figure out. =D
Thanks for looking at that so quickly. I did not see the missing character and went and looked at the notepad where I had pasted it to... And then noticed it. Duh!
1416864886
The Aaron
Roll20 Production Team
API Scripter
No problem!!
1416866333
The Aaron
Roll20 Production Team
API Scripter
Update v0.2 -- fixed bug where the help is whispered on any API command... (Thanks Erich!)
1417208486
The Aaron
Roll20 Production Team
API Scripter
Update v0.3 -- Rotation is persisted across API restarts, Only occurs on pages where there are players (GMs, drag yourself there to test without your players), and is much more efficient due to only using a single interval to manage all rotating objects. =D
1417209465
The Aaron
Roll20 Production Team
API Scripter
Posted this as a real script: <a href="https://app.roll20.net/forum/post/1380961/script-spintokens-allows-the-gm-to-set-a-token-to-spinning-persisted-across-restarts-minimally-active#post-1380966" rel="nofollow">https://app.roll20.net/forum/post/1380961/script-spintokens-allows-the-gm-to-set-a-token-to-spinning-persisted-across-restarts-minimally-active#post-1380966</a>