Random Exits To Multiple Layouts

0 favourites
  • 3 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • Hi

    I'm trying out a random dungeon with multiple layouts ie 1 layout 1 room,

    each room has exits to another layout. I'm think of making each exit random to a different room.

    Probably using an array to store each room number and exits to a different room number,

    whats the best way to deal with rooms with on the outside of the grid so you dont get any exits that dont have a adjacent room.

    Hope this make sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont really understand your problem. If you have 10 rooms each on its own layout with 1 exit then simply choosing a random number between 1 and 10 ( filtering out the one you are in of course ) will always take you to another room/layout.

    Or am i missing the point

  • Thanks Spongehammer, you could be right, some rooms may have several exits I thought of storing room numbers in an array so you could go back and forwards and have a different map each time

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