Grid-based tile system - LividProductions.

1

Index

Attached Files

The following files have been attached to this tutorial:

.capx

gridbasedtilesystem.capx

Download now 222.81 KB

Stats

6,069 visits, 11,615 views

Tools

Translations

This tutorial hasn't been translated.

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 18 Dec, 2016. Last updated 19 Feb, 2019

Stage 3 - The Code

For our event sheet, there are only a few events needed. Ones indicated with (*) are optional bits of code (addons if you like).

The select sprite

Handling the placing of the placed sprite

Making sure we dont spawn 1 sprite over another (*)

We then need to change the collision with the placed tile to be -1 away from each side, for example my image is 128x128 so my collisions would be Left - 127, Right - 127, Top - 127, Bottom - 127. Hopefully the screenshot helps explain this.

  • 0 Comments

Want to leave a comment? Login or Register an account!