[messages] [Module Design] Using sound

kerkael kerkael at gmail.com
Thu Jun 20 09:36:29 CEST 2019


This is an old topic, but it didn't get an answer.
The track should be coded and identified with each tile named with a
number : tr1, tr2, tr3 ...
When the piece moves, from a player action, thanks to a button, or a
card or anything, it need to move from tr{n} to tr{n+x}
Then, the trait you can use is a trigger based on the n+x value to play
a sound. Therefore you can use a formula to say {n+x}%4==1 -> sound1 ;
{n+x}%4==2 -> sound2 .... 
Or in your case, clearly identify the 37 special tiles and locations to
associate them with a sound.

If, on the other hand, the players can move a piece on the board
manually, without a button, I'm not certain you can have the underlying
tile see it has a piece above itself ...

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=57104#p57104


More information about the messages mailing list