BOOO TOMATO TOMATO yes the enemy will now throw tomatoes at you upon entering its range! :3
em .. ... had some struggling on 1) making the tomatoes despawn appropriately (turns out the Destroy() function takes an optional time delay which is cool), 2) actually detecting the player (i should've just put the sphere collider on the Enemy parent gameobject), 3) hitting the player (i just increased the force and decreased the angle of the projectile so that it'd hit you roughly at every point within the detection area)
I still have an issue where the amount damaged will be twice the amount I want it to be (yikes) but whatever it's fine
No comments:
Post a Comment