lets-godot-roguelike icon indicating copy to clipboard operation
lets-godot-roguelike copied to clipboard

2.4:Re-factor Player

Open YeOldeDM opened this issue 7 years ago • 0 comments

Re-save Player.tscn as res://game/things/Player.tscn. Clear its script and add a new one (auto-bitch!). Delete the old Player.tscn/.gd...re-save and delete is easier than move and rename in Godot.

Replace script in the new player script with:
extends "res://game/things/thing.gd"

Put in the code here to catch arrow key input and call step( direction )

YeOldeDM avatar May 19 '17 07:05 YeOldeDM