Autotile Example needed.

0 favourites
  • 8 posts
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • Hi!

    Does anyone have a autotile example for me using the behaviour on This Topic.

    It would be much appreciated <img src="smileys/smiley32.gif" border="0" align="middle">

    Kind Regards.

    Savvy001

  • I would imagine a simple set of commands that state :

    Right Mouse Button Clicked >>> Spawn Block at Mouse.X, Mouse.Y

    I'm on a mac ATM, so sadly can't make you a .capx, but will when I get home, if no-one else has <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Ah, Maybe i was not clear enough.

    emoaeden

    "I need this example, for understanding which tile animation setup i need and how the autotile behaviour itself works"

    Creating a level editor is no problem.

    Thanx!

    Kind Regards.

    Savvy001

  • I've been meaning to mess around with auto-tiling in Construct 2, and this gave me an excuse to actually do it. Check it out:

    Demo

    Annotated Capx

    Just like the article you linked to, I'm only setting a tile's frame based on the tiles above, below, and on either side, so some of the corners don't look quite right. The fix is to base the tile's frame on the 8 surrounding tiles, but it would require 256 individual frames (which I didn't feel like making).

    Just for fun, I have the TileMap save/load from webstorage.

    I hope this helps.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • zatyka

    Thank u very much!

    I'l check your example when i get home.

    Its great to see the scirra community in action.

    Kind Regards.

    Savvy001

  • Awesome example zatyka ! Thanks for sharing!!

  • zatyka I'm going to jump in here and also say thanks for sharing that. Really appreciate it.

    I've been thinking about how to do this for a while, and a massive array across the layout makes a lot of sense in terms of figuring out neighbouring blocks.

  • I'm glad you guys are finding the example useful.    <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)