Hi Cormac,
I have found a small error in your Player. It is mostly the indentation. Your code reads like this:
for i in get_slide_collision_count():
var c = get_slide_collision(i)
if c.get_collider() is RigidBody2D
#deliver the impact
c.get_collider().apply-central-impulse(-c.get_normal() * 100)
You can make a small change, and it will work:
for i in get_slide_collision_count():
var c = get_slide_collision(i)
if c.get_collider() is RigidBody2D:
#deliver the impact
c.get_collider().apply-central-impulse(-c.get_normal() * 100)
Hi Cormac,
I have found a small error in your Player. It is mostly the indentation. Your code reads like this:
```
for i in get_slide_collision_count():
var c = get_slide_collision(i)
if c.get_collider() is RigidBody2D
#deliver the impact
c.get_collider().apply-central-impulse(-c.get_normal() * 100)
```
You can make a small change, and it will work:
```
for i in get_slide_collision_count():
var c = get_slide_collision(i)
if c.get_collider() is RigidBody2D:
#deliver the impact
c.get_collider().apply-central-impulse(-c.get_normal() * 100)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi Cormac,
I have found a small error in your Player. It is mostly the indentation. Your code reads like this:
You can make a small change, and it will work: