Jump to content

Recommended Posts

Posted

Hi All,

 

 

I'm trying to do projectiles in LE3 C++. All is fine however I can't work out how to delete the entity when it collides.

 

I have tried two ways.

 

In the collision hook tried to delete the entity there. Though I can see why this won't work.

 

I've wrapped the projectile in a class and mark it for deletion a little later in the game loop. I'm getting a crash there too.

 

So I ask the question.... Where and when can I Release() an entity that has just collided?

 

Cheers!!!!!!

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0

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...