init
This commit is contained in:
20
speen.gd
Normal file
20
speen.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
extends Spatial
|
||||
|
||||
signal scene_finished
|
||||
|
||||
var t = 0
|
||||
var oy = rotation.y
|
||||
var run = false
|
||||
|
||||
func play():
|
||||
t = 0
|
||||
rotation.y = oy
|
||||
run = true
|
||||
get_node("Camera").make_current()
|
||||
|
||||
func _process(delta):
|
||||
rotate_y(0.25*delta)
|
||||
t += delta
|
||||
if t > 30 and run:
|
||||
emit_signal("scene_finished")
|
||||
run = false
|
||||
Reference in New Issue
Block a user