2018-06-03 11:11:27 -04:00
|
|
|
extends Node2D
|
|
|
|
var fly_speed = 5
|
|
|
|
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
pass
|
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
$bg1.position.x -= delta*fly_speed
|
|
|
|
$bg2.position.x -= delta*fly_speed
|
|
|
|
if $bg1.position.x < -550:
|
|
|
|
$bg1.position.x = 1600
|
|
|
|
if $bg2.position.x < -550:
|
2018-11-12 23:17:53 -05:00
|
|
|
$bg2.position.x = 1600
|
|
|
|
|
|
|
|
if $Sun.visible == true:
|
|
|
|
if $Sun.position.x < -2500:
|
|
|
|
$Sun.visible = false
|
|
|
|
$Sun.position.x = 1250
|
2018-11-14 20:36:02 -05:00
|
|
|
$Sun.position.x -= delta*2.5
|