Day 16: And The Enemies Shoot Back

Today was actually a decent day in what I was able to get done. Though of course, it was not without its challenges in what I am able to do (as it is very normal for me still to struggle through my coding).

For today I was able to get through most of my shooting “Extras” section without too many problems. And the ones I did I got through…

Except for this one…

I have been stuck on getting my enemy’s lasers shot at the player to not stop shooting after it has been destroyed by the player.

<iframe width=”560" height=”315" src=”" frameborder=”0" allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

I thought that destroying the object would have worked, but unfortunately, I did not take into consideration that the object is not destroyed until 2.5f (seconds) after it’s actually shot (this was for the sake of the animation and the “death” sound). So I thought that I could put a stop coroutine of the enemy fire method in, but that seems not to be working…though it may be that I put the stopcoroutine in the wrong void/method area.

I will figure this out this morning without “cheating” and then finish this segment of the space shooting game section of this 2D Project. But overall, I must say, I feel pretty confident in the work I’ve done so far. I know that I still have much more to learn after only 16 days, but this is something I never thought I would ever be able to do (especially at my age, as I had said on day 1). Looking forward to continuing doing these projects, even if the state of Hawaii chooses to cut off this program.

As I truly see this as worthwhile, and I can see myself doing this as a new career.