Troubles with tiling landscape

This forum is currently in read-only mode.
From the Asset Store
Piano tiles
$9.99 USD
Template for a piano tiles game, fully documented in comments and video
  • Hello!

    I�m newbie in game development and in Construct so please don�t laugh at me if my problem is trivial

    I�m creating a simple arcade game with isometric view and there�s number of surface types in my level: water, sand, grass and so on.

    And my trouble is in creating logic of placing tiles of different surfaces

    I applied an image so you could better understand what I mean. I need to create closed areas of different surface types. They must have fine, smooth edges.

    I decided to create a number of tiles that represent sectors of the final area, but I can�t understand how to make the program to recognize them automatically and place the right tile to the right position

    Maybe it would be very useful to use tiled backgrounds but sometimes during the game tiles of landscape must change at a runtime. This is very important for me.

    I will be very grateful for any help!

  • You'll need to code this with events.

    Perhaps you could put all of your tiles into one sprite animation with an animation speed of 0 so it doesn't play. Then you could create a series of events that uses a "For each" loop to check the sides of each tile to see if it's overlapping another tile. Then, based on which sides it has other tiles on, you set the tile to whatever animation frame it needs to be.

    You could do this once at the beginning of the layout, then just run the loop once again each time the tiles need to change.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have done something like this in Play Ur Own Pac.

    Maybe you want to have a look at it: PUOP

    And deadeye is right, it basically works like he described. Tell me if you want to check out the source.

  • to deadeye

    Thank you very much! I'll try it immediately!

    to PixelRebirth

    This is exactly what I need! I really would like to see the code! Thank you!

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