Student Game Help

Hello,

The student I am working with is trying to get the alien to disappear when the lazer touches it. Any help would be much appreciated. Thank you.

I’m not 100% on this, but I think it may have something to do with the fact that the lazer is being created in the draw loop instead of outside of the draw loop then called when needed. I’m sure someone else has a quicker work around, but I would start there.

1 Like

Yes. As @edavis pointed out, the lazer is created inside the draw loop, but the alien is also. Every time the draw loop runs, a new alien is being created (in the same spot). In general, best practice is to create sprites outside the draw loop and update them inside.

Mike