feat,fix: better particle anims, jump point particles

This commit is contained in:
Jakob Feldmann 2023-04-24 12:04:38 +02:00
parent 6a5bd5f830
commit fcd22e44f7
42 changed files with 666 additions and 28 deletions

View File

@ -0,0 +1,15 @@
[gd_resource type="AnimatedTexture" load_steps=4 format=2]
[ext_resource path="res://assets/effects/jump-point2.png" type="Texture" id=1]
[ext_resource path="res://assets/effects/jump-point3.png" type="Texture" id=2]
[ext_resource path="res://assets/effects/jump-point1.png" type="Texture" id=3]
[resource]
frames = 3
fps = 3.0
frame_0/texture = ExtResource( 3 )
frame_0/delay_sec = 0.1
frame_1/texture = ExtResource( 1 )
frame_1/delay_sec = 0.1
frame_2/texture = ExtResource( 2 )
frame_2/delay_sec = 0.1

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jump-point.png-70b0f0ec994d7c67ae8022e9f48a20a2.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/jump-point.png"
dest_files=[ "res://.import/jump-point.png-70b0f0ec994d7c67ae8022e9f48a20a2.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jump-point1.png-9bec0c8f51279bc4e9ffef7153622c8a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/jump-point1.png"
dest_files=[ "res://.import/jump-point1.png-9bec0c8f51279bc4e9ffef7153622c8a.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jump-point2.png-1640d9e8b835a3661bb96eb0afe3c26f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/jump-point2.png"
dest_files=[ "res://.import/jump-point2.png-1640d9e8b835a3661bb96eb0afe3c26f.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jump-point3.png-0fb85d10b05debd26ae8726c9ead9d09.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/jump-point3.png"
dest_files=[ "res://.import/jump-point3.png-0fb85d10b05debd26ae8726c9ead9d09.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -0,0 +1,18 @@
[gd_resource type="AnimatedTexture" load_steps=5 format=2]
[ext_resource path="res://assets/effects/run-dusting-left2.png" type="Texture" id=1]
[ext_resource path="res://assets/effects/run-dusting-left4.png" type="Texture" id=2]
[ext_resource path="res://assets/effects/run-dusting-left3.png" type="Texture" id=3]
[ext_resource path="res://assets/effects/run-dusting-left1.png" type="Texture" id=4]
[resource]
frames = 4
fps = 3.0
frame_0/texture = ExtResource( 4 )
frame_0/delay_sec = 0.1
frame_1/texture = ExtResource( 1 )
frame_1/delay_sec = 0.1
frame_2/texture = ExtResource( 3 )
frame_2/delay_sec = 0.1
frame_3/texture = ExtResource( 2 )
frame_3/delay_sec = 0.1

View File

@ -1,18 +1,18 @@
[gd_resource type="AnimatedTexture" load_steps=5 format=2]
[ext_resource path="res://assets/effects/run-dusting2.png" type="Texture" id=1]
[ext_resource path="res://assets/effects/run-dusting3.png" type="Texture" id=2]
[ext_resource path="res://assets/effects/run-dusting1.png" type="Texture" id=3]
[ext_resource path="res://assets/effects/run-dusting1.png" type="Texture" id=1]
[ext_resource path="res://assets/effects/run-dusting2.png" type="Texture" id=2]
[ext_resource path="res://assets/effects/run-dusting3.png" type="Texture" id=3]
[ext_resource path="res://assets/effects/run-dusting4.png" type="Texture" id=4]
[resource]
frames = 4
fps = 3.0
frame_0/texture = ExtResource( 3 )
frame_0/texture = ExtResource( 1 )
frame_0/delay_sec = 0.1
frame_1/texture = ExtResource( 1 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.1
frame_2/texture = ExtResource( 2 )
frame_2/texture = ExtResource( 3 )
frame_2/delay_sec = 0.1
frame_3/texture = ExtResource( 4 )
frame_3/delay_sec = 0.1

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left.png-a905cad7d4e950342a8b268518719b7e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left.png"
dest_files=[ "res://.import/run-dusting-left.png-a905cad7d4e950342a8b268518719b7e.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left1.png-51fa6b460e88eab172ebc2acfcc766eb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left1.png"
dest_files=[ "res://.import/run-dusting-left1.png-51fa6b460e88eab172ebc2acfcc766eb.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left2.png-73a079c1363117147954fb2049303bc0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left2.png"
dest_files=[ "res://.import/run-dusting-left2.png-73a079c1363117147954fb2049303bc0.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left3.png-539cfbf8e6582e2ad4e1caef8c368cd7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left3.png"
dest_files=[ "res://.import/run-dusting-left3.png-539cfbf8e6582e2ad4e1caef8c368cd7.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left4.png-91dc1424d8bea3252aa55346170d537e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left4.png"
dest_files=[ "res://.import/run-dusting-left4.png-91dc1424d8bea3252aa55346170d537e.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left5.png-dced86e33cea65b44d60f5344f3dfd6b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left5.png"
dest_files=[ "res://.import/run-dusting-left5.png-dced86e33cea65b44d60f5344f3dfd6b.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left6.png-f0e5125a5fe82e80486b59120e3a376c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left6.png"
dest_files=[ "res://.import/run-dusting-left6.png-f0e5125a5fe82e80486b59120e3a376c.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting-left7.png-563a31de5482c742e2229e9cc0190b94.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting-left7.png"
dest_files=[ "res://.import/run-dusting-left7.png-563a31de5482c742e2229e9cc0190b94.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting.png-1103d7473c0b3557bd0311dcff0af621.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting.png"
dest_files=[ "res://.import/run-dusting.png-1103d7473c0b3557bd0311dcff0af621.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 B

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting5.png-cece5827bc5f23685cee98aead3155fd.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting5.png"
dest_files=[ "res://.import/run-dusting5.png-cece5827bc5f23685cee98aead3155fd.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting6.png-e402d98b5dad5fd65c029b3903d76590.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting6.png"
dest_files=[ "res://.import/run-dusting6.png-e402d98b5dad5fd65c029b3903d76590.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run-dusting7.png-78a80827fd928320a644a5af1e4cdbf3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/effects/run-dusting7.png"
dest_files=[ "res://.import/run-dusting7.png-78a80827fd928320a644a5af1e4cdbf3.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=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=124 format=2]
[gd_scene load_steps=128 format=2]
[ext_resource path="res://assets/effects/blobby-effects-spritesheet.png" type="Texture" id=1]
[ext_resource path="res://src/Actors/Blobby/DeathShader.tres" type="Material" id=2]
@ -6,10 +6,11 @@
[ext_resource path="res://src/Actors/Blobby/Blobby.gd" type="Script" id=4]
[ext_resource path="res://assets/meta/new_dynamicfont.tres" type="DynamicFont" id=5]
[ext_resource path="res://src/ThirdParty/Demo/IridescenceBall.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/effects/running smoke.tres" type="Texture" id=7]
[ext_resource path="res://assets/effects/run-dusting-left.png" type="Texture" id=7]
[ext_resource path="res://assets/effects/jump-point.png" type="Texture" id=8]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 14.9127, 5.98593 )
extents = Vector2( 12.9698, 8.9748 )
[sub_resource type="StreamTexture" id=62]
load_path = "res://.import/blobby-spritesheet.png-205c8efc79bec685345a637ed2dcfc9b.stex"
@ -304,12 +305,12 @@ states/wallsliding/node = SubResource( 96 )
states/wallsliding/position = Vector2( 1795.54, 493.009 )
transitions = [ "falling", "wallsliding", SubResource( 138 ), "wallsliding", "idling", SubResource( 139 ), "wallsliding", "wallslideToJump", SubResource( 140 ), "wallslideToJump", "jumping", SubResource( 141 ), "idling", "jumping", SubResource( 147 ), "runToJump", "jumping", SubResource( 148 ), "ducking", "jumping", SubResource( 149 ), "jumping", "jumpToFall", SubResource( 150 ), "jumpToFall", "falling", SubResource( 151 ), "ducking", "duckTurn", SubResource( 152 ), "duckTurn", "ducking", SubResource( 153 ), "falling", "ducking", SubResource( 154 ), "ducking", "falling", SubResource( 155 ), "ducking", "walking", SubResource( 156 ), "walking", "ducking", SubResource( 157 ), "idling", "ducking", SubResource( 158 ), "ducking", "idling", SubResource( 159 ), "ducking", "running", SubResource( 160 ), "running", "ducking", SubResource( 161 ), "running", "falling", SubResource( 162 ), "falling", "running", SubResource( 163 ), "walking", "falling", SubResource( 164 ), "falling", "walking", SubResource( 165 ), "falling", "idling", SubResource( 166 ), "idling", "walking", SubResource( 167 ), "walking", "idling", SubResource( 168 ), "walking", "turnToRun", SubResource( 169 ), "turnToRun", "walking", SubResource( 170 ), "running", "turnToRun", SubResource( 171 ), "turnToRun", "running", SubResource( 172 ), "idling", "idleTurn", SubResource( 173 ), "walking", "idleTurn", SubResource( 174 ), "idleTurn", "walking", SubResource( 175 ), "idling", "turnToRun", SubResource( 176 ), "turnToRun", "idling", SubResource( 177 ), "running", "runToJump", SubResource( 178 ), "wallsliding", "falling", SubResource( 137 ), "jumping", "wallsliding", SubResource( 189 ), "jumping", "idling", SubResource( 193 ), "jumping", "walking", SubResource( 194 ), "runToJump", "wallsliding", SubResource( 195 ), "jumpToFall", "idling", SubResource( 196 ) ]
start_node = "idling"
graph_offset = Vector2( 1082.54, -290.431 )
graph_offset = Vector2( 1057.54, -162.431 )
[sub_resource type="AnimationNodeStateMachinePlayback" id=48]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 12.971, 8.99662 )
extents = Vector2( 12, 8.99662 )
[sub_resource type="Animation" id=17]
length = 0.001
@ -4016,15 +4017,37 @@ tracks/10/keys = {
"values": [ Vector2( -1, 1 ) ]
}
[sub_resource type="ParticlesMaterial" id=197]
[sub_resource type="CanvasItemMaterial" id=202]
particles_animation = true
particles_anim_h_frames = 7
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="ParticlesMaterial" id=199]
flag_disable_z = true
direction = Vector3( -10, -1, 0 )
spread = 1.0
initial_velocity = 40.0
direction = Vector3( 10, 2, 0 )
spread = 3.0
initial_velocity = -40.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
linear_accel = 20.0
damping = 30.0
anim_speed = 1.0
[sub_resource type="CanvasItemMaterial" id=201]
particles_animation = true
particles_anim_h_frames = 3
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="ParticlesMaterial" id=200]
flag_disable_z = true
direction = Vector3( 10, 2, 0 )
spread = 1.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
linear_accel = -20.0
damping = 20.0
anim_speed = 1.0
[sub_resource type="Animation" id=181]
length = 0.001
@ -4174,7 +4197,7 @@ process_priority = -1
collision_mask = 254
[node name="CollisionPolygon2D" type="CollisionShape2D" parent="BlobbySkin"]
position = Vector2( 0.0286326, -10.0053 )
position = Vector2( 1, -8.975 )
scale = Vector2( 1.03, 1.04 )
shape = SubResource( 2 )
@ -4189,7 +4212,6 @@ visible = false
[node name="BlobbySprite" type="Sprite" parent="."]
material = ExtResource( 2 )
position = Vector2( 0, -16 )
scale = Vector2( -1, 1 )
texture = SubResource( 62 )
offset = Vector2( 1, 0 )
hframes = 6
@ -4207,7 +4229,7 @@ root_motion_track = NodePath(".")
parameters/playback = SubResource( 48 )
parameters/ducking/blend_position = 1.0
parameters/falling/blend_position = 1.0
parameters/idling/blend_position = 1.35307
parameters/idling/blend_position = 1.0
parameters/jumpToFall/blend_position = 1.0
parameters/jumping/blend_position = 1.0
parameters/runToJump/blend_position = 1.0
@ -4251,16 +4273,31 @@ anims/wallsliding = SubResource( 74 )
anims/wallslidingRight = SubResource( 97 )
[node name="RunningParticles" type="Particles2D" parent="."]
position = Vector2( 0, -17 )
material = SubResource( 202 )
position = Vector2( 0, -16 )
z_index = 1
z_as_relative = false
emitting = false
amount = 2
lifetime = 0.6
local_coords = false
draw_order = 1
process_material = SubResource( 199 )
texture = ExtResource( 7 )
[node name="JumpPointParticles" type="Particles2D" parent="."]
material = SubResource( 201 )
position = Vector2( 1, 6 )
z_index = 1
z_as_relative = false
emitting = false
amount = 1
lifetime = 0.3
one_shot = true
local_coords = false
draw_order = 1
process_material = SubResource( 197 )
texture = ExtResource( 7 )
process_material = SubResource( 200 )
texture = ExtResource( 8 )
[node name="BlobbyActionEffects" type="Sprite" parent="."]
visible = false
@ -4282,7 +4319,7 @@ position = Vector2( 0, -9 )
scale = Vector2( 0.48, 0.48 )
[node name="BlobbyBody" type="CollisionShape2D" parent="." groups=["player"]]
position = Vector2( 0.0392303, -10.002 )
position = Vector2( 1, -8.975 )
shape = SubResource( 1 )
[node name="WallRaycasts" type="Node2D" parent="."]
@ -4291,13 +4328,13 @@ position = Vector2( 0, -1 )
[node name="LeftWallRaycast" type="Node2D" parent="WallRaycasts"]
[node name="Left_Wallcast1" type="RayCast2D" parent="WallRaycasts/LeftWallRaycast"]
position = Vector2( -11.9763, -5 )
position = Vector2( -12, -10.686 )
enabled = true
cast_to = Vector2( -2, 0 )
collision_mask = 40
[node name="Left_Wallcast2" type="RayCast2D" parent="WallRaycasts/LeftWallRaycast"]
position = Vector2( -11.9763, 5 )
position = Vector2( -12, -1.942 )
enabled = true
cast_to = Vector2( -2, 0 )
collision_mask = 40
@ -4305,13 +4342,13 @@ collision_mask = 40
[node name="RightWallRaycast" type="Node2D" parent="WallRaycasts"]
[node name="Right_Wallcast1" type="RayCast2D" parent="WallRaycasts/RightWallRaycast"]
position = Vector2( 12.0551, -5 )
position = Vector2( 14, -10.686 )
enabled = true
cast_to = Vector2( 2, 0 )
collision_mask = 40
[node name="Right_Wallcast2" type="RayCast2D" parent="WallRaycasts/RightWallRaycast"]
position = Vector2( 12.0551, 5 )
position = Vector2( 14, -1.942 )
enabled = true
cast_to = Vector2( 2, 0 )
collision_mask = 40

View File

@ -8,6 +8,9 @@ onready var anim_player = parent.get_node("BlobbySprite/BlobbymationPlayer")
onready var anim_state_playback = parent.get_node("BlobbySprite/AnimationTree").get("parameters/playback")
onready var anim_tree = parent.get_node("BlobbySprite/AnimationTree")
onready var running_particles = parent.get_node("RunningParticles")
onready var jump_point_particles = parent.get_node("JumpPointParticles")
onready var run_dust_res = load("res://assets/effects/run-dusting.png")
onready var run_dust_left_res = load("res://assets/effects/run-dusting-left.png")
onready var sprite = parent.get_node("BlobbySprite")
onready var slope_raycast = get_node("%SlopeRaycast")
@ -205,7 +208,10 @@ func _enter_state(new_state, old_state):
if(new_state == "run"):
running_particles.emitting = true
running_particles.scale.x = facing
if(new_state == "jump"):
jump_point_particles.position.x = 0 if facing == 1 else 24
jump_point_particles.emitting = true
if !["run", "walk", "idle", "duck"].has(old_state) && parent.is_on_floor():
@ -244,6 +250,8 @@ func _exit_state(_old_state, _new_state):
pass
func _set_blendspaces_direction(value):
running_particles.texture = run_dust_res if facing == -1 else run_dust_left_res
running_particles.scale.x = facing
anim_tree.set("parameters/ducking/blend_position", value)
anim_tree.set("parameters/falling/blend_position", value)
anim_tree.set("parameters/idling/blend_position", value)