# rotating a piece

**URL:** <https://forum.vassalengine.org/t/rotating-a-piece/712>\
**Category:** Module Design\
**Created:** [June 10, 2008, 6:09pm UTC](https://forum.vassalengine.org/t/rotating-a-piece/712 "2008-06-10T18:09:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emaluzer](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@emaluzer](https://forum.vassalengine.org/u/emaluzer)\
**Post date:** [June 10, 2008, 6:09pm UTC](https://forum.vassalengine.org/t/rotating-a-piece/712/1 "2008-06-10T18:09:27Z")

</div>

I have a game piece that when it is knocked out It goes off the edge of the board. Is there a way to get the piece to rotate automatically so its direction is up . Currently when it leaves the board it faces the direction it was facing when it was destroyed?

---

<div class="post-metadata">

**Author:** ![Neumannium](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/neumannium/32/2562_2.png) [@Neumannium](https://forum.vassalengine.org/u/Neumannium)\
**Post date:** [June 10, 2008, 6:14pm UTC](https://forum.vassalengine.org/t/rotating-a-piece/712/2 "2008-06-10T18:14:57Z")

</div>

Create a zone where the piece will end up.

Create a key command tied to your board that fires whenever a piece is placed on it. Set up a trigger on the piece that whenever it lands in the zone you created it fires a keystroke.

Use that keystroke on the rotate command to set it back to its unrotated state.

Dave

On Tue, Jun 10, 2008 at 1:09 PM, emaluzer \<[messages@forums.vassalengine.org](mailto:messages@forums.vassalengine.org) ([messages@forums.vassalengine.org](mailto:messages@forums.vassalengine.org))\> wrote:

> [@](#):
>
> I have a game piece that when it is knocked out It goes off the edge of the board. Is there a way to get the piece to rotate automatically so its direction is up . Currently when it leaves the board it faces the direction it was facing when it was destroyed?
> 
> * * *
> 
> Messages mailing list  
> [Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org) ([Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org))  
> [http://forums.vassalengine.org/mailman/listinfo/messages\_forums.vassalengine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))
