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

[Help] Disable animations ?

When, with a script, I rotate a token, the rotation is instantaneous, which is perfect. But when I move a token (by obj.set(left) and obj.set(top)), a animation is trigger. Is there a way to specify to the API that I want a instant move ? PS : English is not my native language. Sorry for bad grammar/conjugation.
1449331349
The Aaron
Pro
API Scripter
Not really.  The animation happens on the client side and is intended to allow the players to follow where a token goes. If what you are wanting is to have a token move somewhere without the players having an indication of where it is going, first move it to the GM Layer.  You can set a timeout function to have it move back to the objects layer shortly there after.
1451614204
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Since Aaron gave a solution...  Just want to wander a bit off topic... I wonder what it would look like to change the image source? Shrink.... and change URL to "sparkle transparent png"... move in sight of the players.... change back... and grow back normal size. Guess that is not just off topic... but anti-topic... (sorry Toxicat.)
1451634384
The Aaron
Pro
API Scripter
Probably you could change the width/height to zero, move it, then change it back. Would have about the same effect.  
1451634791
Lithl
Pro
Sheet Author
API Scripter
It would probably just be easier to switch the token to the GM layer, move it, and then drop it back on the token layer. I'm pretty sure that would prevent the players from seeing the animation.
1451670811
The Aaron
Pro
API Scripter
Yeah, that's what I said originally.  I was just speculating on the size part. =D