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 .
×

Question about "Slide Token" and scripted token movements.

So I have this idea that I wanted to execute ingame which would include multiple "dancing" tokens that would slide around the map as if they were dancing as I give a description. It's basically for more flavor rather than just have standstill tokens. My question is can I even do this? I want to have multiple tokens move at the same time and with multiple movements. Can Slide token do multiple movements/multiple tokens? Asking so I don't end up finding out that I can't do this yet as I don't know how to code really but Im willing to learn if it can accomplish what I want + be useful for the future. Thank you for the help I really appreciate it.
1547787653

Edited 1547787705
The Aaron
Roll20 Production Team
API Scripter
This can be done. It’s not trivial but also not horribly difficult. Look at BounceToken or RotateToken. Basically, you’ll have a list of tokens you are manipulating every so often. In your case they will likely be oscillating between a left leaning and right leaning orientation as well as some change in position. If you can get it down to a formula where the rotation and position are both determined by some time value + ordering, it should be pretty doable.