Project RBH DevLog 0162 (Patreon)
Content
Continuing on from previously, I finally got around to implementing something that I talked about ages ago: specific interactions with a successful parry. Since my code already has to detect whether or not your parry succeeded in order to reflect bullets back at enemies without any weird interactions with your own bullets, adding in the extra code to do more if possible wasn’t too hard, though I did have a bit of trouble with the order of operations. Logic, the bane of all programmers.
Since I already have a function that make the spike attacks work, I did a bit of clever smoke-and-mirrors here. The code I’m running on parrying is meant to spawn in something rather than run any code I want it to, for the sake of simplicity. As such, I simply made a spriteless object that runs the ‘create spikes’ function and then deletes itself, achieving the same effect but without reworking the system. And this is of course expandable so I can do whatever I want with it now.
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!