Jump to content

Removing sprite still triggers hitTest?


Recommended Posts


Ah well then you probably need to remove the enemy from the array.

There is helper function in Array called "erase" which you can use to erase one item from array, for example:

var enemy = new game.Enemy();
var enemies = [];
enemies.push(enemy); // Push to array
enemies.erase(enemy); // Remove from array


Link to comment
Share on other sites

Hi @enpu

That did the trick, thank you for the tips!

I'm thinking I might have to finish this project in Construct, as I have it half done already.

Panda is the BEST engine I've used, but I'm finding it really hard to find the time to learn the ins and outs of 'coding', and its really taking me away from getting stuff done.

I have a few projects lined up where I'd like to use Panda, but I don't know if I have the time right now to work through all my 'problems'.

Again, Panda is the most flexible / best engine I've used - I just don't know if I have the time right now to invest into doing stuff 'properly'.

I'd love to slap the game together somehow, but I feel like I'm constantly asking questions and holding you up from developing the engine.

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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...