[messages] [Module Design] Placing counters on counters

JoelCFC25 jkoepp at yahoo.com
Tue Jun 18 15:41:01 CEST 2019


I'm attaching an extremely minimal module demonstrating some (but not
all) of what you can do with Layer traits. 

The green unit on the right shows the most basic "on/off" layer that
activates and deactivates with the same command. All it's doing is
showing another image on top of the base unit image. 

The orange unit on the left is more in line with what I personally would
implement based on the description you provided. The Layer has multiple
levels in it, each with its own image (varying number of CP). Instead of
controlling the Layer directly, you actually have the user (unwittingly)
manipulate a Dynamic Property to adjust the numerical value. The Layer
is configured to essentially "listen" to the value of that property to
know which image to display on top of the base unit image (or no image
at all in the case where CP = 0, i.e. they are all gone).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.vmod
Type: application/octet-stream
Size: 36110 bytes
Desc: Example of Layers
URL: <http://www.vassalengine.org/pipermail/messages/attachments/20190618/21240e43/attachment-0001.obj>
-------------- next part --------------

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


More information about the messages mailing list