- Home /
Create a trigger area for the player?
Hi all, i'm doing a 2d test and basically i created an area where a sprite square has to throw a bullet / s to the player but only if the player passes in the trigger area i created. So when he leaves the area, the "square enemy" no longer throws the projectile. I tried to create the enemy script but unfortunately I couldn't. Could you give me some help to create it? Thanks.
Answer by Gius1212 · Apr 02, 2021 at 11:48 AM
Ok guys after a few tries I got it, for those who need the code here it is, I hope I have been useful to you
Your answer
Follow this Question
Related Questions
OnTriggerEnter2D is using the wrong trigger 0 Answers
Can't click gameobject when over another trigger? 1 Answer
How fast are 2D trigger colliders, assigning them to many objects 0 Answers
Simple 2D animation trigger 1 Answer
How to keep the last good position when interacting with triggers? 1 Answer