Added a new character and modified the way :setup and :ready events are run.
This commit is contained in:
@@ -94,9 +94,9 @@ animations = [ {
|
||||
"speed": 8.0
|
||||
} ]
|
||||
|
||||
[node name="character" type="Area2D"]
|
||||
[node name="android" type="Area2D"]
|
||||
script = ExtResource( 1 )
|
||||
global_id = "character"
|
||||
global_id = "android"
|
||||
interaction_direction = 3
|
||||
tooltip_name = "Character"
|
||||
default_action = "talk"
|
||||
BIN
game/characters/character2/8_way_walk.png
Normal file
BIN
game/characters/character2/8_way_walk.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
34
game/characters/character2/8_way_walk.png.import
Normal file
34
game/characters/character2/8_way_walk.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/8_way_walk.png-ecdd71f288ccb9d3bbd77c0a124c4d5c.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/character2/8_way_walk.png"
|
||||
dest_files=[ "res://.import/8_way_walk.png-ecdd71f288ccb9d3bbd77c0a124c4d5c.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=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
|
||||
404
game/characters/character2/character.tscn
Normal file
404
game/characters/character2/character.tscn
Normal file
@@ -0,0 +1,404 @@
|
||||
[gd_scene load_steps=78 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escplayer.gd" type="Script" id=1]
|
||||
[ext_resource path="res://game/characters/character2/character_anims.gd" type="Script" id=2]
|
||||
[ext_resource path="res://game/characters/character2/8_way_walk.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 220, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=15]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=16]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=17]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=18]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 660, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=19]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=20]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=21]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=22]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=23]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=24]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=25]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=26]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=27]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 110, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=28]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=29]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=30]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=31]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=32]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=33]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=34]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=35]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=36]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 440, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=37]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=38]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=39]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=40]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=41]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=42]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=43]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=44]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=45]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 880, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=46]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=47]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=48]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=49]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=50]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=51]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=52]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=53]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 550, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=54]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=55]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=56]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=57]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=58]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=59]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=60]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=61]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=62]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 770, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=63]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=64]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 0, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=65]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=66]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 60, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=67]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=68]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 180, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=69]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=70]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 300, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=71]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=72]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 420, 330, 60, 110 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=73]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 9 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 10 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_up_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_up_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 19 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_down_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_down_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 28 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_left",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ SubResource( 37 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_down_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 38 ), SubResource( 39 ), SubResource( 40 ), SubResource( 41 ), SubResource( 42 ), SubResource( 43 ), SubResource( 44 ), SubResource( 45 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_up_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 46 ), SubResource( 47 ), SubResource( 48 ), SubResource( 49 ), SubResource( 50 ), SubResource( 51 ), SubResource( 52 ), SubResource( 53 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 54 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 55 ), SubResource( 56 ), SubResource( 57 ), SubResource( 58 ), SubResource( 59 ), SubResource( 60 ), SubResource( 61 ), SubResource( 62 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_up",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 63 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_up",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 64 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_up_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 65 ), SubResource( 66 ), SubResource( 67 ), SubResource( 68 ), SubResource( 69 ), SubResource( 70 ), SubResource( 71 ), SubResource( 72 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_down_right",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=74]
|
||||
height = 0.0
|
||||
|
||||
[node name="character" type="KinematicBody2D"]
|
||||
script = ExtResource( 1 )
|
||||
global_id = "player"
|
||||
animations = ExtResource( 2 )
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="sprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 0, -78.4786 )
|
||||
scale = Vector2( 2, 2 )
|
||||
frames = SubResource( 73 )
|
||||
animation = "idle_down_right"
|
||||
|
||||
[node name="collision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 74 )
|
||||
|
||||
[node name="debug" type="Label" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 14.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="dialog_position" type="Position2D" parent="."]
|
||||
position = Vector2( 0, -195.195 )
|
||||
90
game/characters/character2/character_anims.gd
Normal file
90
game/characters/character2/character_anims.gd
Normal file
@@ -0,0 +1,90 @@
|
||||
#const dir_angles = [
|
||||
# 0, # 0 NORTH FACE CAMERA
|
||||
# 45, # 1 NORTHEAST
|
||||
# 90, # 2 EAST
|
||||
# 135, # 3 SOUTHEAST
|
||||
# 180, # 4 SOUTH BACK TO CAMERA
|
||||
# 225, # 5 SOUTHWEST
|
||||
# 270, # 6 WEST
|
||||
# 315, # 7 NORTHWEST
|
||||
#]
|
||||
|
||||
# Angle is [from_angle, area_angle]
|
||||
# example : on a clock, [180, 45] starts exactly from 6 o'clock (180°)
|
||||
# and stops between 7 o'clock and 8 o'clock (45° from 6 o'clock)
|
||||
const dir_angles = [
|
||||
[340, 40], # 0 UP
|
||||
[20, 50], # 1 RIGHT UP
|
||||
[70, 40], # 2 RIGHT
|
||||
[110, 50], # 3 RIGHT DOWN
|
||||
[160, 40], # 4 DOWN
|
||||
[200, 50], # 5 LEFT DOWN
|
||||
[250, 40], # 6 LEFT
|
||||
[290, 50] # 7 LEFT UP
|
||||
]
|
||||
|
||||
# Array of animations for each direction, from UP to RIGHT_UP clockwise
|
||||
# [animation_name, scale] : scale parameter can be set to -1 to mirror the animation
|
||||
const directions = [
|
||||
["walk_up", 1], # 0 UP
|
||||
["walk_up_right", 1], # 1 RIGHT UP
|
||||
["walk_right", 1], # 2 RIGHT
|
||||
["walk_down_right", 1], # 3 RIGHT DOWN
|
||||
["walk_down", 1], # 4 DOWN
|
||||
["walk_down_left", 1], # 5 LEFT DOWN
|
||||
["walk_left", 1], # 6 LEFT
|
||||
["walk_up_left", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
const idles = [
|
||||
["idle_up", 1], # 0 UP
|
||||
["idle_up_right", 1], # 1 RIGHT UP
|
||||
["idle_right", 1], # 2 RIGHT
|
||||
["idle_down_right", 1], # 3 RIGHT DOWN
|
||||
["idle_down", 1], # 4 DOWN
|
||||
["idle_down_left", 1], # 5 LEFT DOWN
|
||||
["idle_left", 1], # 6 LEFT
|
||||
["idle_up_left", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
const speaks = [
|
||||
["idle_up", 1], # 0 UP
|
||||
["idle_up_right", 1], # 1 RIGHT UP
|
||||
["idle_right", 1], # 2 RIGHT
|
||||
["idle_down_right", 1], # 3 RIGHT DOWN
|
||||
["idle_down", 1], # 4 DOWN
|
||||
["idle_down_left", 1], # 5 LEFT DOWN
|
||||
["idle_left", 1], # 6 LEFT
|
||||
["idle_up_left", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
|
||||
#const directions = ["walk_left", -1, # 0
|
||||
# "walk_left", -1, # 1
|
||||
# "walk_back", 1, # 2
|
||||
# "walk_back", 1, # 3
|
||||
# "walk_left", 1, # 4
|
||||
# "walk_left", 1, # 5
|
||||
# "walk_front", 1, # 6
|
||||
# "walk_front", 1 # 7
|
||||
# ]
|
||||
#
|
||||
#const idles = [ "idle_front_right", 1, # 0
|
||||
# "idle_front_right", 1, # 1
|
||||
# "idle_back", 1, # 2
|
||||
# "idle_back", 1, # 3
|
||||
# "idle_front_left", 1, # 4
|
||||
# "idle_front_left", 1, # 5
|
||||
# "idle_front", 1, # 6
|
||||
# "idle_front", 1 # 7
|
||||
# ]
|
||||
#
|
||||
#const speaks = ["idle_front_left", 1, # 0
|
||||
# "idle_front_left", 1, # 1
|
||||
# "idle_back", 1, # 2
|
||||
# "idle_back", 1, # 3
|
||||
# "idle_front_right", 1, # 4
|
||||
# "idle_front_right", 1, # 5
|
||||
# "idle_front", 1, # 6
|
||||
# "idle_front", 1 # 7
|
||||
# ]
|
||||
@@ -96,16 +96,26 @@ shader_param/col = Color( 0.611765, 0.215686, 0.0431373, 1 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=4]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 8 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_back",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_front",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 6 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_front_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 9 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_back_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_back",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 57 ), ExtResource( 58 ), ExtResource( 59 ), ExtResource( 60 ), ExtResource( 61 ), ExtResource( 62 ), ExtResource( 63 ), ExtResource( 64 ), ExtResource( 65 ), ExtResource( 66 ), ExtResource( 67 ), ExtResource( 68 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_back_left",
|
||||
@@ -116,40 +126,30 @@ animations = [ {
|
||||
"name": "idle_front_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 8 ) ],
|
||||
"frames": [ ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_back",
|
||||
"speed": 5.0
|
||||
"name": "walk_left",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_back",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 7 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_back_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 5 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_front",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_front",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 21 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_front_left",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 6 ) ],
|
||||
"frames": [ ExtResource( 5 ) ],
|
||||
"loop": true,
|
||||
"name": "idle_front_right",
|
||||
"name": "idle_front",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ) ],
|
||||
"loop": true,
|
||||
"name": "walk_left",
|
||||
"speed": 8.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="Animation" id=5]
|
||||
|
||||
Reference in New Issue
Block a user