Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tgw3ff
2021-SP-CS4096-97-TDG
Commits
00a73582
Commit
00a73582
authored
May 02, 2021
by
tgw3ff
Browse files
Merge map-generator and ActorManager branches into master
parent
9152e61f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CS 4096-97 Top Down Game/.mono/metadata/ide_messaging_meta.txt
0 → 100644
View file @
00a73582
58046
C:\Users\Username\Desktop\Godot_v3.2.3-stable_mono_win64\Godot_v3.2.3-stable_mono_win64.exe
CS 4096-97 Top Down Game/actors/Player.gd
View file @
00a73582
...
...
@@ -21,7 +21,7 @@ func _ready():
# use this if you want to only move on keypress
func
_unhandled_input
(
event
):
for
dir
in
inputs
.
keys
():
if
event
.
is_action_pressed
(
dir
)
and
(
get_node
(
"../TurnManager/ActionManager"
)
.
currActor
==
"Player"
):
if
event
.
is_action_pressed
(
dir
)
and
(
get_node
(
"../
../
TurnManager/ActionManager"
)
.
currActor
==
"Player"
):
if
dir
!=
direction
:
if
dir
==
"right"
:
get_node
(
texture_node
)
.
set_flip_h
(
false
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment