Animated tokens

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
User avatar
bubblobill
Giant
Posts: 167
Joined: Sun Jan 24, 2010 3:07 pm

Animated tokens

Post by bubblobill »

New toy experimenting with ways to animate token images.
Animation.cmpgn
(394.97 KiB) Downloaded 75 times
Two ways of animating a token.
  • Three frame animation that cycles through the token image/portrait/handout.
  • n frame animation that loops through the images on a table.
Clicking a token will start/stop its animation.

Macros explained
onCampaignLoad calls animate which starts the overlay containing the JavaScript timing business.
animationRegister builds a JSON of animations to run and stores it as a property on the lib token.
Stop All closes the overlay and consequently stops the animations. It doesn't work well and needs to be clicked a bunch of times before it happens.
OCS (onChangeSelection) toggles the animation on and off.
animProcess takes the output of the overlay and selects the appropriate image changing macro.
frame3 cycles the images on the token.
frameTbl steps through the image table.
Bubblobill on the forum.
@Reverend on the MapTool Discord Server

Responsible for less atrocities than most... I do accept responsibility for these though: SmartDoors, Simple d20 Framework - barebones, Drop-in: All 3.5 SRD Monsters, Drop in: Simple Character Editor, Battletech Framework

User avatar
JoeDuncan
Giant
Posts: 118
Joined: Sun Nov 22, 2020 9:02 pm

Re: Animated tokens

Post by JoeDuncan »

bubblobill wrote:
Thu Nov 11, 2021 11:18 pm
New toy experimenting with ways to animate token images.
Check out my "Joe's Ugly Hacks" drop-in macro library (in the sub forum).

It has a complete token animation scripting system already built.
"Joe's Ugly Hacks - Get 'em while their hot! Guaranteed ugliest hacks around or your money back!"

Post Reply

Return to “User Creations”