Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Control
- var count = 0
- var msgs = [
- "My Game",
- "FBK Game Studios",
- "This file is part of the My Game Projecy.
- Copyright (c) 2024 Kris Occhpinti.
- https://filmsbykris.com
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, version 3.",
- "This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>."
- ]
- # Called when the node enters the scene tree for the first time.
- func _ready():
- $Label.text = msgs[count]
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- func _process(delta):
- if Input.is_action_just_pressed("ui_accept"):
- $AnimationPlayer.seek(0)
- next_msg()
- pass
- func next_msg():
- count += 1
- if count >= msgs.size():
- next_scene()
- else:
- $Label.text = msgs[count]
- func next_scene():
- get_tree().change_scene_to_file("res://titles screen.tscn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement