Terraria Styled Game?
SolarPepperStudios
Member Posts: 754
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!
Comments
- 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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Having trouble with your game? Sounds like a personal problem.
- Thomas
P.S. There already have been quite a few things along these line with customized random generation, jsyk.
- Thomas
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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*
QS =
D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Appselly Marketplace - Buy & Sell App Source Codes
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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.