Jump to content

Recommended Posts

Posted

I mean I can load a map with Map:Load () which returns its success as true or false...

But is there a Map:Release () function? Or a way to easily remove the contents of that map from the game?

Posted

I don't think, you need to make it in the editor i think.

What do you want to remove ?

Perhaps you could just load the scene , and load by code the elements you could want to add than remove later ?

Is it to make some personnal level editor ?

Stop toying and make games

Posted

What SpiderPig means is that the memory containing the loaded level is still there, even if you would load a new level. The release method is normally invoked to remove objects from the memory. However, what we don;t know is whether this also works for loaded maps.

Posted

Aggror's correct. I want to load different levels as the game progresses. Currently if I load level 1 then load level 2, both levels are merged....I may have to figure out a different method.....

Posted

So the proper way to do it is a call to World:Clear(), unfortunately we forgot to tag it for lua (and document it). I'm posting a bug report for this right now and hopefully the lua tag (and documentation) will be available with the next build.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...