Commit b331f2bc authored by Julia Santos's avatar Julia Santos

Implemented intro cutscene

parent 67b7a759
source_md5="083ba9b68e4ea2d2c2772ff73d4aea5a"
dest_md5="af77e7ac2c8351cd832b1f9094598e65"
source_md5="74f934bd6bad68b4467cf795fbc729e3"
dest_md5="821f0c7172c16fbaf2376992e364cbb5"
source_md5="a99b94afab1ea6261ecc926360f89f7a"
dest_md5="10a2f6af0878f0d309abcc02fc88e73e"
source_md5="e3ce8e5266f197f8310c2d46f652232d"
dest_md5="7490714e7b47e6e3a5835782c9fb53e1"
source_md5="cd5f465f190dc000b1ced8ac6a5295f1"
dest_md5="1bae787647b59325f36825efcaff4d3e"
source_md5="999739e3aa86438ff6765e40e9f9593e"
dest_md5="824c1c4f5c1f31534fbfbc0255e390ec"
source_md5="ece5c1fcc6eaf9000cf22261bc386f84"
dest_md5="02fa9bfd0d8b9f30546722b86d85d0da"
source_md5="12dfc5ab0c0c2a7e0a8189b4672317a1"
dest_md5="6e1ece4889c589915a9768f27dbf9f5e"
source_md5="b110479fa3b0eacfcb2370efc004797e"
dest_md5="b296c041fe5b00ef26c412bcec83c692"
extends StaticBody2D
onready var sceneProgress = 0
onready var dialogueBox = get_parent().get_node("Dialogue")
export(bool) var tracking = false
onready var anim = get_parent().get_node("Animator")
# Called when the node enters the scene tree for the first time.
func _ready():
start()
print(get_parent().get_children()[0].get_name())
pass # Replace with function body.
func _input(event): # executes when clicked on
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.pressed:
if tracking:
getShot()
func getShot():
match sceneProgress:
0:
sceneProgress += 1
anim.play("Shot 1")
1:
sceneProgress += 1
anim.play("Shot 2")
2:
sceneProgress += 1
anim.play("Shot 3")
3:
sceneProgress += 1
anim.play("Shot 4")
4:
sceneProgress += 1
anim.play("Shot 5")
5:
sceneProgress += 1
anim.play("Shot 5.5")
6:
sceneProgress += 1
anim.play("Shot 6")
7:
sceneProgress = 0
anim.play("Fade out")
get_parent().queue_free() # dont need that scene anymore
tracking = false
print("Deleting scene 0")
func start():
tracking = true
This diff is collapsed.
[gd_scene load_steps=55 format=2] [gd_scene load_steps=56 format=2]
[ext_resource path="res://Main rooms/Test room 1.tscn" type="PackedScene" id=1] [ext_resource path="res://Main rooms/Test room 1.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/Thesis Clickables/moxie1.png" type="Texture" id=2] [ext_resource path="res://assets/Thesis Clickables/moxie1.png" type="Texture" id=2]
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
[ext_resource path="res://assets/Thesis Clickables/Deselect button.tres" type="StyleBox" id=39] [ext_resource path="res://assets/Thesis Clickables/Deselect button.tres" type="StyleBox" id=39]
[ext_resource path="res://assets/Thesis Clickables/inventory disabled.tres" type="StyleBox" id=40] [ext_resource path="res://assets/Thesis Clickables/inventory disabled.tres" type="StyleBox" id=40]
[ext_resource path="res://Scripts/Inventory UI.gd" type="Script" id=41] [ext_resource path="res://Scripts/Inventory UI.gd" type="Script" id=41]
[ext_resource path="res://Cutscenes/Cutscene 0.tscn" type="PackedScene" id=42]
[sub_resource type="Animation" id=1] [sub_resource type="Animation" id=1]
resource_name = "Notepad open" resource_name = "Notepad open"
...@@ -596,6 +597,8 @@ __meta__ = { ...@@ -596,6 +597,8 @@ __meta__ = {
[node name="Cutscenes" type="Node2D" parent="."] [node name="Cutscenes" type="Node2D" parent="."]
z_index = 2 z_index = 2
[node name="0" parent="Cutscenes" instance=ExtResource( 42 )]
[node name="1" parent="Cutscenes" instance=ExtResource( 15 )] [node name="1" parent="Cutscenes" instance=ExtResource( 15 )]
visible = false visible = false
......
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/01.PNG-732d7677f8838b03145bca612674cf0e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/00 - Intro/01.PNG"
dest_files=[ "res://.import/01.PNG-732d7677f8838b03145bca612674cf0e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/02.PNG-da1a6b8d5e5f23015c4a8757c92851b5.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/00 - Intro/02.PNG"
dest_files=[ "res://.import/02.PNG-da1a6b8d5e5f23015c4a8757c92851b5.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/03.PNG-258873be4a0405d4be6b342e7182bc53.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/00 - Intro/03.PNG"
dest_files=[ "res://.import/03.PNG-258873be4a0405d4be6b342e7182bc53.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/04.PNG-7c5d878760a39883df7bc9b05b2c459b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/00 - Intro/04.PNG"
dest_files=[ "res://.import/04.PNG-7c5d878760a39883df7bc9b05b2c459b.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/05.PNG-c98028b5af11d6bdb94b0213adfcf75c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/00 - Intro/05.PNG"
dest_files=[ "res://.import/05.PNG-c98028b5af11d6bdb94b0213adfcf75c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/1.png-83ae74276841a2b0a2f04f7707d752dc.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/1 - Notepad intro/1.png"
dest_files=[ "res://.import/1.png-83ae74276841a2b0a2f04f7707d752dc.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2.png-93f3ad11a46c51b776d833dc2a3aea23.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/1 - Notepad intro/2.png"
dest_files=[ "res://.import/2.png-93f3ad11a46c51b776d833dc2a3aea23.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/3.png-77111276e154c5c695f2fbbd4cffa880.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/1 - Notepad intro/3.png"
dest_files=[ "res://.import/3.png-77111276e154c5c695f2fbbd4cffa880.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/4.png-04c811e71960a3a847300d62f9209d78.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Cutscenes/1 - Notepad intro/4.png"
dest_files=[ "res://.import/4.png-04c811e71960a3a847300d62f9209d78.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[gd_resource type="DynamicFont" load_steps=2 format=2] [gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://assets/Fonts/BeVietnamPro-Bold.ttf" type="DynamicFontData" id=1] [sub_resource type="DynamicFontData" id=1]
font_path = "res://assets/Fonts/BeVietnamPro-Bold.ttf"
[resource] [resource]
font_data = ExtResource( 1 ) font_data = SubResource( 1 )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment