June 2018
Beginner to intermediate
298 pages
7h 38m
English
The player's script also needs to extend the character's. Remove the attached script (Character.gd) by selecting the Player node and clicking the Clear script button:

Now, click the button again to attach a new script. In the Attach Node Script dialog, click the folder icon next to the Inherits option and select Character.gd:

Here is the player script (note that it extends the character script):
extends "res://character/Character.gd"signal movedfunc _process(delta): if can_move: for dir in moves.keys(): if Input.is_action_pressed(dir): ...
Read now
Unlock full access