Why isn't this deleting?


#1

I have this current setup:

The pacman on the right is a gif, which I’m moving to the right by 5 units in update(). However, once the pacman hits the apple, the apple doesn’t delete itself. Is there something I’m doing wrong?


#2

Hey @cluelessfrog! Your code on line 3 is almost right, but it should actually be “this.delete()” :slight_smile:

this.delete() is a function so you need to add the parenthesis to call it!