ThunderHorn
ThunderHorn

Reputation: 2035

Unity: Detect if player is in an area

Hello I'm making a 2d game on unity and I m having areas in my game where the action is different like if player enters the zone only then he's supposed to shoot

Sorry for the bad quality of the image in on my phone and tried to draw something as an example the red circle is the player and the blue rectangles is the area I'm supposed to detect

example

Upvotes: 0

Views: 3123

Answers (1)

Deniz
Deniz

Reputation: 456

Well that's actually pretty easy. You just have to use invisible panels with a trigger event if the player walks through

Upvotes: 1

Related Questions