Home Creators Posts Import Register Favorites Logout

Content

Way back in October I mentioned that I had long toyed with the idea of being able to parry bullets back at enemies. I have two ideas for this. First, right now, when you hit the dodge button while standing still, you simply dodge in the direction that you’re aiming as opposed to the direction that you’re moving. If, instead, while standing still hitting the dodge button let you parry bullets with the right timing, this would be a little more consistent, as right now you could dodge backwards, stop, then dodge back to where you were without realizing that’s what would happen.

The other idea I had ties back into upgrade chains. Since the drones orbit the player, what if one of the drones is a shield that can block bullets from hitting you? And has an upgrade that causes it to reflect bullets?

Well, none of that matters unless I get parrying working anyway. Oh wait.

Ta da!

It’s really quite simple. Since all the bullets in the game are the same, modular object, I made it so that if a bullet gets close to the test object, it checks whether it’s a player or enemy bullet. If it’s an enemy bullet, then I change it to a player bullet, give it a range bonus, and invert its direction. I’ll need to make that range bonus a little more dynamic than it currently is, but it works well enough.

Also I figured out why the magnet status effect can crash the game. The math that pulls in bullets divides by a variable, and I didn’t have any inbuilt protection to stop that from dividing by zero. The more bullets magnetized at once, the greater the odds that one of them would move in what the engine declares is direction 0° and break the math. All I needed to do then was check if a bullet was moving that way and then slightly increase it.

Until next Devlog!

-DeusVerve

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

Files

Comments

No comments found for this post.