Lesson 53 – Attack Collision with OnCollisionEnter2D

In this lesson we’ll create an attack script, starting with a punching attack, as well as determining what happens when the punch collides with the Enemy. For this we’ll use a built-in method/event called OnCollisionEnter2D() and touch upon how events differ from the rest of the code we have been writing thus far.

Members Only Content (Source Code, Quiz, Q&A)

This content is for Extended Support Package members only.
Log In Register