forked from Dariasteam/TowerJumper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8f5aa0
commit f4adacf
Showing
11 changed files
with
102 additions
and
101 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
extends Quad | ||
|
||
# class member variables go here, for example: | ||
# var a = 2 | ||
# var b = "textvar" | ||
onready var color = Color (get_tree().get_nodes_in_group("player")[0].color) | ||
|
||
func _ready(): | ||
var color = get_tree().get_nodes_in_group("player")[0].color | ||
func _ready(): | ||
var mat = get_material_override().duplicate() | ||
set_material_override(mat) | ||
get_material_override().set_parameter(FixedMaterial.PARAM_DIFFUSE, color) | ||
pass | ||
|
||
|
||
func _on_Timer_timeout(): | ||
queue_free() | ||
func _on_OpacityTimer_timeout(): | ||
if (color.a <= 0): | ||
queue_free() | ||
color.a -= 0.001 | ||
get_material_override().set_parameter(FixedMaterial.PARAM_DIFFUSE, color) |
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 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