-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Defined chasing speed for blue enemy * Removed .gdignore file that was not doing anything * Made adjustments to Goweti * Made platforms faster * Stop chasing player when squashed * Hide exclamation mark when enemy is squashed Co-authored-by: Telmo Valverde <[email protected]>
- Loading branch information
1 parent
4063aba
commit 91adbcf
Showing
9 changed files
with
50 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends Node | ||
|
||
# If re-importing from Blender, remember to "Clear inheritance" and make the | ||
# floating platforms of type "KinematicBody". Also, adjust the "move_platforms" | ||
# animation and make "RESET" go to meeting position. | ||
|
||
enum { MOVING_CLOSER, MOVING_AWAY } | ||
|
||
var direction := MOVING_AWAY | ||
|
||
func move_platforms(): | ||
_on_FloatingPlatformTimer_timeout() | ||
|
||
func _on_AnimationPlayer_animation_finished(anim_name: String): | ||
if anim_name == "move_platforms": | ||
$FloatingPlatformTimer.start() | ||
|
||
func _on_FloatingPlatformTimer_timeout(): | ||
if direction == MOVING_CLOSER: | ||
$AnimationPlayer.play("move_platforms") | ||
else: # MOVING_AWAY | ||
$AnimationPlayer.play_backwards("move_platforms") | ||
direction = !direction |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters