Custom Level Creator
Luke20w
Member, PRO Posts: 50
Hi,
I am working on a game with different levels and obstacles in them and I am trying to make a scene where you can build your own level. So far I have a side-bar with the different obstacles that you can drag onto the screen but I can't figure out how to save those obstacles in another scene where you can play the level. Any help is appreciated.
Thanks
Comments
Save the locations and object types to a table, then spawn them on the scene used to play the level.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Exactly what @Armelline said. Create a global attribute called game.save and in every actor you are placing have a rule that says when save is true, save position to table. Add a button to toggle the save on an off. You'll probably also want to use self attributes to control which row they get saved to.
You could be a bit clever and height width etc. Or if you're just using standard actors then position should suffice.