RPTools.net

Discussion and Support

Skip to content

It is currently Sat May 25, 2013 9:25 am 






Reply to topic  [ 4 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Fri Aug 20, 2010 8:31 am
Posts: 6
 Post subject: Dynamic Tokens?
PostPosted: Thu Jan 06, 2011 11:20 am 
Is there a way to make a top-down token that changes its image when you turn it? I'd like to use an overworld game sprite as the token, but it would need to change which sprite it has loaded when it looks left/up/down.

_________________
---Enough of them will take you where you want to go---


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5229
 Post subject: Re: Dynamic Tokens?
PostPosted: Thu Jan 06, 2011 12:21 pm 
Baby Steps wrote:
Is there a way to make a top-down token that changes its image when you turn it? I'd like to use an overworld game sprite as the token, but it would need to change which sprite it has loaded when it looks left/up/down.


No. And I would doubt that anything like this is coming in 1.4, or even whatever is after that unless there is a large need for this.

You could sort of fake it I think using Wiki: onSelectionChange() event hooked into call Wiki: getFacing() and then Wiki: setTokenImage() functions I would bet.. but I don't really have experience with the macro language enough to know how much work it would take.

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5307
Location: Bay Area
 Post subject: Re: Dynamic Tokens?
PostPosted: Thu Jan 06, 2011 2:31 pm 
Do you not want the rotate the image, but change it? Top down image will rotate image when you change the facing. Are you going for a 3d effect? ie show the character back when going north? You can change by simply changing the facing (no event handler for that), but you could write a macro to set the image based on facing. So, you would first change your facing, then click the macro.

You would need to create a table for the different facings. Let's say you have 8. Because facing goes from -179 to 180 you can take the facing value and divide by 45 and round. Your image table indexes will go from -4 to 4 where -4 = 4 image.

One special note, because you're using top down, you would have to rotate the image saved so when MT rotates the image it will appear in the correct orientation. You can set it to circle to avoid that, but then you would have the yellow arrow.

_________________
Downloads:


Top
 Profile  
 
 Offline
Kobold
 
Joined: Fri Aug 20, 2010 8:31 am
Posts: 6
 Post subject: Re: Dynamic Tokens?
PostPosted: Thu Jan 06, 2011 3:28 pm 
I'll probably just end up using normal Tokens, since it's so much easier, but I might look into some of those event handlers. Thanks for the feedback.

_________________
---Enough of them will take you where you want to go---


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 4 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman