Hello, I have been following the course with everything working correctly up until we implemented apply_force(). For some reason I am not able to get the spaceship to move. I thought maybe there was just something off with that particular code so I kept moving forward and after setting up my input mapping for both the right arrow key and the D key I am still not able to make the spaceship fly to the right. Below are both of my scripts.
level.gd:
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
print("Hello, world!")
player.gd:
extends RigidBody2D
func _physics_process(delta):
if Input.is_action_pressed("move_right"):
apply_force(Vector2(25, 0))
I am not sure if the issue is with my scripts or if it might have been with how I created the scenes and tied them together. I am going to be trying to duplicate the issue on a different computer as I am traveling so I will update this post if I resolve the issue before an answer is found.