[Help] Randomly Generated Dungeon

0 favourites
  • 6 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • So I'm trying to make some events that will basically randomly generate more tiles from the four image points if a random variable is equal to two, the problem is that it isn't happening. This is my event sheet below

    <img src="http://s30.postimg.org/yey2k4tw1/random_generation.png" border="0" />

    After I get to the point of figuring out how to do this, my plan was to also have the tile ask if it is overlapping the bounds object, if so it would delete itself, would this be a problem in any way?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think what is wrong is case sensitivity. Your putting "Above" instead of "above" etc Try that for each action.

  • Thanks for noticing that, I corrected it but it didn't seem to do anything.

  • Thanks for noticing that, I corrected it but it didn't seem to do anything.

    Oh, make sure when you use random, that you round as well because your getting decimal values too. Like bellow, you round it to have just whole numbers.


  • This worked! Now I'm running into the problem of overlapping tiles, as well as the maps being pretty tiny. Destroying on overlap destroys both tiles, resulting in the map being destroyed as a whole, so I'm guessing I need to check whether or not the image point is overlapping or something. I've set the variables up to 4, and now it creates a tile if the variable is greater than 1, but the maps are still coming out very small. Any tips as to how I can solve these issues?

  • You can also check if it's overlapping on an offset, instead of using image points, I think it's easier.

    Also check this code by R0J0hound for generating random "rooms", maybe it'll help you:


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