GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Custom Level Creator

Luke20wLuke20w Posts: 50Member, PRO

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

  • ArmellineArmelline Posts: 4,764Member, PRO

    Save the locations and object types to a table, then spawn them on the scene used to play the level.

  • imjustmikeimjustmike Posts: 450Member

    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.

Sign In or Register to comment.