Create account / Log in

Showing movement trails for masked unit

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Showing movement trails for masked unit

Postby blackice » April 14th, 2014, 2:05 pm

Hi!

Is there a way to make movement trails of masked pieces visible to the other side?
Currently, the other side in my module will see movement trails of its own and unmasked opposing side pieces only.

I have experimented with the order of the Mask and the Movement Trail properties, but cannot get them to display.

Thanks!

Martin
User avatar
blackice
 
Posts: 40
Joined: August 13th, 2010, 7:21 pm
Location: Vancouver, BC, Canada

Re: Showing movement trails for masked unit

Postby blackice » May 4th, 2014, 3:58 am

Okay, I finally figured this out - at least to a degree.

My issue appears to be linked to trait order or some odd prototype nesting behaviour. While I was experiencing the issue, I had a structure principally like this:

Before

Prototype Block
...[other stuff]
Movement trail
...

Prototype Allied Block
...
Mask
Mark when moved
...
Prototype = Block


I noticed that the Allied Blocks would be marked as moved, even when masked, but not showing the movement trail.

When I moved the Movement trail attribute into the Allied Block prototype, it works:


After

Prototype Block
...[other stuff]
...

Prototype Allied Block
...
Mask
Mark when moved
Movement trail
...
Prototype = Block

Cheers,

Martin
User avatar
blackice
 
Posts: 40
Joined: August 13th, 2010, 7:21 pm
Location: Vancouver, BC, Canada


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest