Home Creators Posts Import Register Favorites Logout

Content

Get frozen, idiot.

I’ve talked before about how useful state machines are, and how they let you get away with having enemy AI that’s technically only, like, two lines. (Thanks, function calls!) But did you know that you can create a status effect that changes the enemy state to a specially created one with no code in it, and they’ll just stop doing anything? If you also change their color and tell them to stop animating, you too can easily freeze enemies in place. And, since I keep my damage handling outside of the state machine, frozen enemies still take damage while unable to fight back! All that’s left for this little effect is some glittering particle effects and I’ll have a perfect frozen effect.

I did have to clean up my state machine a bit for this to work, and that might come back to haunt me with the boss enemy—who specifically does need to have their damage handling in the state machine—but I don’t think that will be too hard to fix so long as I think it through.

In other news, I’ve finally reached my limit with the way my camera has been bugged for I think literally years now and I’m going to smack it around until it stops tearing images. Shouldn’t I instead be doing the ice particles and the magnetic visuals? Yes. However.

See you next DevLog!

-DeusVerve

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

Files

Comments

No comments found for this post.