Home Creators Posts Import Register Favorites Logout

Content

To be honest, I wasn’t convinced I could do the black hole. I was afraid it would overwrite the enemy movement, instead of what I wanted, which was them struggling against the pull. The code I used for the enemy knockback does do this, using the state machine, and I wasn’t totally certain I could make it work. And then I remembered the magnet code, which applies a simple effect to all bullets within range. Using that same framework, and some repurposed code copied from the knockback, I successfully made a black hole that… made the enemy orbit halfway around it and stop.

Turns out I used the wrong function at one point to do some math. Easy fix.

Why yes I did reuse the magnet placeholder sprite. Work smarter nor harder.

I did also try to make the pull stronger as the enemy got closer to center, but that led to some loony toons nonsense that somehow flung it out of the black hole. Hilarious, but unusable in play.

It’d also make sense for these black holes to attract bullets, since they’re pulling in enemies.

However, do to some real life events occurring this week, I don’t know how much work I’ll get done before the next DevLog comes out.

Until Next Devlog!

-DeusVerve

DevLogs like these are brought to you by Patron(s) like Haelerin!

Files

Comments

No comments found for this post.