Project RBH Devlog 0080 (Patreon)
Content
A devlog or two ago, I mentioned a minor experiment I was curious about. I was talking about the possibility of creating a player decoy that would draw enemy aggro. I was hoping that it would be as simple as creating a child object of the player, but alas, when calling a specific asset, GameMaker does distinguish a parent object from its children, so that did not work. Or, more specifically, the enemies ignored it because it wasn’t specifically the player themselves.
Luckily, I’m a genius, and I’ve already figured out a way around this. All I have to do is put a simple conditional statement in the enemy AI, assigning either the player or the decoy—if the latter exists—to a temporary variable, and that temporary variable is what the enemy will target. This will guarantee they ignore the player in favor of the decoy.
But having a bullet that turns into a decoy would be kind of weird, wouldn’t it? I think I’ve mentioned before that I had the idea of possibly having ‘on-dodge’ effects that activate when the player uses their dash move. Leaving behind a decoy could be one such effect. This might be too powerful, but I think enough enemies attack indiscriminately or with wide-area attacks that drawing the aggression of the ones who aim at you isn’t that big of a deal.
Until next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!