cooking
This commit is contained in:
parent
c9286e8c12
commit
ecd9ebd486
22 changed files with 308 additions and 32 deletions
19
games/platformer/existWhenGaming.gd
Normal file
19
games/platformer/existWhenGaming.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
var become_real : bool = false
|
||||
var realness : float = 0
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
GameManager.gaming.connect(appear)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if(become_real):
|
||||
realness += delta/2
|
||||
modulate = Color(1,1,1,clampf(realness, 0,0.5))
|
||||
if(realness > 0.5):
|
||||
become_real = false
|
||||
|
||||
func appear():
|
||||
become_real = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue