Terraria Styled Game?

Is it possible to create random generation in GameSalad so that the player has a completely unique world of his/her own? Also I do know it is possible to place actors onto the scene with a touch but is there a way to also make all of the actors snap to a grid? I was wondering about this a while back and thinking if anyone did this with GameSalad they would be a genius! :D

Comments

  • ericzingelerericzingeler Member Posts: 334
    - It's definitely possible I'd say. I created a very simple procedural level generator with GameSalad.

    - Yes, you can spawn without touch. You can make many rules that don't require touch, so shouldn't be a problem there.

    - Lay the coordinates of your grid in a table, then link a newly spawned actor's position to it.

    Although GS creator has a simple interface, you can do quite a bit if you put your mind to it.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Those topics have been covered before. If you can't find them via searching (https://forums.gamesalad.com/discussion/54689/forum-faqs#latest), post the search terms you used and I can see if I can find a few of the threads for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ADSentertainmentADSentertainment Member Posts: 397
    I would love to see someone make something like that in Gamesalad, it would really show off it's potential and what you can do with it.

    Having trouble with your game? Sounds like a personal problem.

  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    edited March 2013
    Yep, tables and spawning can work wonders ;)
    - Thomas

    P.S. There already have been quite a few things along these line with customized random generation, jsyk.
  • DepressedPandaDepressedPanda Member Posts: 215
    We're actually working on a Terraria-style template that'll be released very soon. Stay tuned!
  • DanielDoeDanielDoe Member Posts: 307
    I was ony able to spawn about 300 blocks that can be used for example as a terrain, but it's defenetly not enaugh... With more than 300 the GS engine started to have problems. How did you managed to make more?
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    @DanielDoe - How many rules did those actors have in them?
    - Thomas
  • DanielDoeDanielDoe Member Posts: 307
    actors were empty... today I've made one more test and achieved 1000. I don't think it's an amount problem. It's more spawning problem. Maybe I shoud spawn them for a few seconds not at once. Even Minecraft generates it's world for many seconds,also after the game is loaded.
  • hamsterguyhamsterguy Member Posts: 2
    Im stuck:to many table colums
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Im stuck:to many table colums
    What does this even mean?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    @tatiang Haha I was thinking the same thing. :)) Does it mean he has maxed out his table column amount or something else? And if so, then how is that relevant to this thread? :/
  • joshiwujoshiwu Member Posts: 207
    a game like terraria would require more timers than an iPhone 4 will handle.
  • JGary321JGary321 Member Posts: 1,246
    Yes it's possible. I actually was working on a tile based RPG-game and came up with a working version for something like this. Since, the concept is the same it would work for a Terraria style game. Here is the basics.

    You do not spawn any tiles whatsoever. You pre-place all the tiles on the screen. For me I did 32x32 tiles. You need at least 2 tiles of overlap on the side and 2 on the top.

    Then as you move your character the tiles move also. The tiles change to a different image based on their X/Y in the table grid. Since a table can have 1000 rows and 1000 columns, that would be the number of blocks you can have on one table. Anything more would require additional tables.

    Believe it or not the code side was VERY light. It did not take very many rules at all to make this work.

    This is the basics for the "blocks". I had a generator to create trees/rocks also. All the generator does is change the tablecellvalue that corresponds to an image. It was a lot of work, but yes it can definitely be done.

    If I had a real graphic artist I would be inspired to make something like this... & actually complete it, haha.*hint* *hint*

  • quantumsheepquantumsheep Member Posts: 8,188
    @JGary321You tell 'em, babe!

    QS =D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • ycanycan Member, PRO Posts: 207
    Hmmm, tables should be used for doing this.
  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    Haha wow, didn't expect this thread to be revived. Man, I've missed out on a ton! Kind of miss being on here as a regular attendee. ;) Anyways, onto the topic: I have a prototype game I'm working on now as a Terraria style game. The one and only wall I've hit (so far) is infinite and random terrain. Or at least random and not so infinite. :) Tables are a good way to handle things but I hate that you can't use them on the left side of a rule!
  • JGary321JGary321 Member Posts: 1,246
    @Utveckla_Games This will be in the next stable build. When I did mine I did it without that, but I can tell you it cut down on the rules/made it work better once we were able to use it on the left side.
  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    @JGary321 Yup. @Code_Wizard has been working hard on that hasn't he? I haven't been working with GameSalad for a bit because I've been waiting for this update. While I've been waiting I've been coding an app in Xcode though. :) I like GameSalad better. :P
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited August 2013
    Table values on the left side of the rule is fantastic. I'm using it like crazy in my current game.
  • raze_struckraze_struck Member, PRO Posts: 141

    @JGary321 said:
    Yes it's possible. I actually was working on a tile based RPG-game and came up with a working version for something like this. Since, the concept is the same it would work for a Terraria style game. Here is the basics.

    You do not spawn any tiles whatsoever. You pre-place all the tiles on the screen. For me I did 32x32 tiles. You need at least 2 tiles of overlap on the side and 2 on the top.

    Then as you move your character the tiles move also. The tiles change to a different image based on their X/Y in the table grid. Since a table can have 1000 rows and 1000 columns, that would be the number of blocks you can have on one table. Anything more would require additional tables.

    Believe it or not the code side was VERY light. It did not take very many rules at all to make this work.

    This is the basics for the "blocks". I had a generator to create trees/rocks also. All the generator does is change the tablecellvalue that corresponds to an image. It was a lot of work, but yes it can definitely be done.

    If I had a real graphic artist I would be inspired to make something like this... & actually complete it, haha.hint hint

    I know this is an old post, but I'm pretty much looking for a way to do something similiar to the above. Can you post the code for this !! please! I need to make a metroidvania style map.

Sign In or Register to comment.