Block a user
Player State Machine
Add a force-push for Rigidbodies
Create a SceneManager
Create a SceneManager
Add Grenades
Grenade code:
class_name Grenade extends RigidBody2D
var timer = Timer.new()
# Called when the node enters the scene tree for the first time.
func _ready():
add_child(timer)
time…
Add a force-push for Rigidbodies
Also map the shove control to deliver the impulse:
if Input.is_action_just_pressed("shove") && pushEnabled:
print("I want to shove")
var shoveDirection:int
match facing:
FaceDire…
Add a force-push for Rigidbodies
Small error in CharacterBody in collision with crates