Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    I'm trying to create a randomized dungeon.

    Beginners
    9
    26
    1417
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • OrangePeel
      OrangePeel last edited by

      Hi, I have only had FUZE4 for a week or so now, and was wondering how one would create a randomized dungeon setting, similar to one in a roguelike game. I have my sprites and everything worked out, but am trying to figure out how to make the dungeons generate randomly. I saw nothing of it besides arrays in the tutorials, and so decided to come here. Any ideas as to how to incorporate this?

      1 Reply Last reply Reply Quote 3
      • CasualTie5
        CasualTie5 F last edited by CasualTie5

        An accessible approach might be to make your dungeon grid-based, and have every tile of that grid be a random one of various elements (e.g. items, chests, enemies etc.).
        It might be worth checking out the "Level" tutorial to see what I mean. You will have to do a bit of work, though, to have everything make sense.
        That is just one idea of course!

        1 Reply Last reply Reply Quote 0
        • OrangePeel
          OrangePeel last edited by

          Okay, thanks! I will go try that now!

          pianofire 1 Reply Last reply Reply Quote 1
          • pianofire
            pianofire Fuze Team @OrangePeel last edited by

            @OrangePeel Just some general advice. Don't try to run before you can walk. At least work through the tutorials first before diving right in (apologies if you have already done so)

            OrangePeel 1 Reply Last reply Reply Quote 3
            • SteveZX81
              SteveZX81 F last edited by

              Welcome @OrangePeel I wish you luck with your game because I like games like that. For the record Fuze has a superb and incredibly friendly discord server if you're interested. (I think the white icon at the top is the link)

              OrangePeel 1 Reply Last reply Reply Quote 3
              • OrangePeel
                OrangePeel last edited by

                @CasualTie5 recommended I use a grid like in the level tutorial, and I’ve been working on something like that on and off, however I created a single variable, rng, which I set to a random of five different tiles for the ground, but now whenever it rolls that randomly it sets it to just whatever it rolled first, so all the ground will be bare, or chests, or spawn enemies. I attempted to stick it all into a loop, however this caused it to do the same thing, but it would just random roll it multiple times and they would all still be the same. I just wanted to ask here if there was any way to do it besides making separate variables for every single space on the map. Does anyone have any solution other than that? I will be willing to do anything lower maintenance than making 100s of separate variables.

                CasualTie5 1 Reply Last reply Reply Quote 1
                • OrangePeel
                  OrangePeel @pianofire last edited by

                  @pianofire. Yeah no I did do the tutorials, but thanks anyways, I appreciate just the attempt.

                  1 Reply Last reply Reply Quote 0
                  • OrangePeel
                    OrangePeel @SteveZX81 last edited by

                    @SteveZX81 Thanks! I don’t really do discords and stuff though. :)

                    1 Reply Last reply Reply Quote 1
                    • PickleCatStars
                      PickleCatStars F last edited by

                      Share your code, you should be able to do it with an array, something must be going wrong somewhere...

                      1 Reply Last reply Reply Quote 0
                      • CasualTie5
                        CasualTie5 F @OrangePeel last edited by CasualTie5

                        @OrangePeel I would assume that is necessary - particularly, because you might want to compare the values of different tiles (for example, you might not want to have a group of four items right next to each other)
                        And if you use an array, it should be managable (using for-loops)

                        OrangePeel 1 Reply Last reply Reply Quote 0
                        • landein207
                          landein207 last edited by

                          If u want use the same random(number) just put in the loop instead of making 100 variables out of it in the loop the number will be always changing i hope this helps :)

                          OrangePeel 1 Reply Last reply Reply Quote 0
                          • OrangePeel
                            OrangePeel @CasualTie5 last edited by

                            @CasualTie5 thanks. I’ll go do that now.

                            1 Reply Last reply Reply Quote 0
                            • OrangePeel
                              OrangePeel @landein207 last edited by

                              @landein207 I tried that, but because it was all the same variable in the end of the loop it ended up being the same still.

                              1 Reply Last reply Reply Quote 0
                              • PickleCatStars
                                PickleCatStars F last edited by

                                Post a screenshot of the bit that’s giving you trouble :)

                                1 Reply Last reply Reply Quote 0
                                • DomDom
                                  DomDom F last edited by DomDom

                                  This post is deleted!
                                  xevdev 1 Reply Last reply Reply Quote 1
                                  • DomDom
                                    DomDom F last edited by

                                    This post is deleted!
                                    OrangePeel 1 Reply Last reply Reply Quote 1
                                    • OrangePeel
                                      OrangePeel @DomDom last edited by

                                      @DomDom Okay, I'll try it.

                                      1 Reply Last reply Reply Quote 0
                                      • xevdev
                                        xevdev F @DomDom last edited by

                                        @DomDom surely 6 or greater

                                        DomDom 1 Reply Last reply Reply Quote 0
                                        • DomDom
                                          DomDom F @xevdev last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • xevdev
                                            xevdev F last edited by

                                            No thanks kept clear of sprites and the map. But I believe you.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post