Jump to content

Out With the Old


fumanshoo
 Share

Recommended Posts

I'm trying to figure out how to "terminate" an object or a scene. For example, I have

 

water = LoadScene("abstract::water.sbx")

 

but how would I get rid of it with the push of a button?

 

I guessed

 

if KeyDown (KEY_DOWN)==1 then

water = 0

end

 

but that was obviously wrong. For now, i'm just moving the water entity but that kinda sucks because it's still being rendered and it screws with my frame rate...

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...