01 August 2013

Signs on Top of Signs

In another post, K'vynn commented:
Suddenly i'm envisioning a signpost forest springing up... signs on top of signs on top of...
I gave that some thought.  Well, at least from a technical standpoint.

In the first draft of the new signpost script, it was possible to have signs on top of signs.  Because the new signposts have no mask – one may not bump into them, nor could one sign collide into another – it was easy to dogpile signposts on top of each other.  In solving one problem, I had created another.  A player could move freely through a sea of signpost spam.

I have wedged a little bit of ugly code in to curtail this from happening (ugly in that it is not elegant scripting).  Now should the signpost detect another signpost nearby, then the player is prohibited from planting the signpost at that location.

A little more testing and this updated tool should be ready for prime time!

No comments:

Post a Comment