forked from team-sg/hero-mark-2
enemies now get squashed by rocks
This commit is contained in:
parent
416982d88e
commit
2cb646ce32
14 changed files with 110 additions and 28 deletions
|
@ -74,8 +74,6 @@ func _physics_process(delta):
|
|||
velocity.y = 0
|
||||
#Apply velocity
|
||||
move_and_slide(velocity,Vector2.UP)
|
||||
|
||||
Debug.print(get_owner().filename)
|
||||
|
||||
func _process_idle():
|
||||
if anims.get_current_animation() != "idle": anims.play("idle")
|
||||
|
@ -94,7 +92,6 @@ func _process_walk():
|
|||
for i in get_slide_count():
|
||||
var collision = get_slide_collision(i)
|
||||
if collision.get_collider().is_in_group("pushable"):
|
||||
print(collision.get_collider())
|
||||
collision.get_collider().push(collision.normal)
|
||||
|
||||
func _process_idle_walk():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue