I’m making a DooM remake but the enemies don’t get bigger when you get closer. I need to make an algorithm that makes enemies get bigger when you’re closer and vice versa. It doesn’t matter if it’s in a 2D game as long as it makes it bigger it’ll probably work.
I’m not sure completely how it works, but this is what I’m thinking:
Several, different length raycasts on the front side of the player. When the enemy hits the furthest raycast, it is the smallest size of the enemy (using the size behavior, of course). The next closest, using the ease behavior along with it, goes to a larger size. This would repeat depending on how many raycasts you put on.
Again, not 100% sure how it works, but this is me just trying XD
oh crap i forgot about the ease behavior
Hey can i test play your game
…the clue is in rotation…
well that was vague as h*ck