Edge Border Area Generator

2

Attached Files

The following files have been attached to this tutorial:

.capx

pad-border.capx

Download now 187.01 KB

Stats

2,353 visits, 3,444 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 13 Jan, 2015. Last updated 16 Feb, 2023

Save the world!! err.. I mean say the word.

Often strategy or puzzle game incorporate edge border to visually indicate areas. An area usually formed by group of blocks or tiles.

What the title says is really simple matter to produce. I'm straighly to the provided source just to save some words.

On this unassisted sample, I show how to create edges border around areas which consist of blocks of sprite.

See it for yourself.

.CAPX

pad-border.capx

Download now 187.01 KB
  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Turn out the new method to generate border proven to be much much simpler and you can use full collision shape for the tile. Thanks to "just enough" collision shape of the border sprite, previous censor isn't required but rather using the border itself as a detector. Now it's variable free: dropbox.com/s/0c08ihjdzy3an3q/efficient_pad%20border_area.capx

  • thank you!! But I was fighting with it for 3 days, because its working only when colysion polygons, are not covering whole tile. What to do when they need cover it all?

    • Actually we can just use distance comparison instead of collision checking. I'll be back to give an alternative example or an update.