Mr.Snail's Recent Forum Activity

  • That's a great idea! After messing around more with the tilemap though, how would you determine how many tiles changed in the last tick or action? My mind goes to something like:

    (Beneath the actual flood fill)

    On Left Button Clicked: Set Global Variable NewTiles to Tilemap.TilesChanged

    But obviously Tilemap.TilesChanged isn't a real expression.

  • Try Construct 3

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

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

    I'm making a game where you drag walls at 90 and 45 degree angles to design rooms much like in The Sims or any architecture game, but I'm having a lot of trouble making the game recognize rooms.

    My first idea was to have the player tell the game, "This is the bedroom, this is the bathroom, and this is the kitchen," with player placed zones. I want the room to have a green overlay when it's given a zone so that the player can clearly see and deactivate zone view.

    To make a room fill with a zone upon being clicked, (paint bucket style) I went with a tilemap. I made areas fill with a new "room zone" tile when clicked, but after much research I don't believe it's possible to then have the game recognize how many there are of a tile on a tilemap. I also tried building the floor out of sprites which, when clicked, will activate adjacent floor sprites as "IsRoom = True" until they meet a wall, but I can't figure out a way to make each tile only spawn a single transparent "room zone" sprite on top of it. That's because each sprite is being touched by many other active "IsRoom" tiles for even a single tick.

    I appreciate any alternative ideas or solutions!

Mr.Snail's avatar

Mr.Snail

Member since 31 Aug, 2020

None one is following Mr.Snail yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies