summaryrefslogtreecommitdiff
path: root/Scripts/Level Specific/1Mud.gd
blob: eaa64d55a58c3239dd821997d9d747195063d580 (plain)
1
2
3
4
5
6
7
8
9
10
11
extends Area2D

func _on_body_exited(body:Node2D) -> void:
	if body is Entity:
		if body.is_player:
			body.get_node("PlayerMovement").speed *= 4

func _on_body_entered(body:Node2D) -> void:
	if body is Entity:
		if body.is_player:
			body.get_node("PlayerMovement").speed /= 4