- Fixing Commit

This commit is contained in:
megamichi 2024-10-22 19:52:35 +02:00
parent d92086f600
commit 78b4a3bba2
14 changed files with 133 additions and 66 deletions

View file

@ -15,8 +15,7 @@ func _spawn() -> void:
var v2 = 2.0 - (speed / 260)
#print(str(v1)," ",str(v2))
$"../SpawnTimer".wait_time = randf_range(v1,v2)
#print("speed: ",speed)
$"../SpawnTimer".wait_time = randf_range(v1,v2)
add_child(hindernis)
func del_all():

View file

@ -4,12 +4,13 @@ extends CharacterBody2D
func _ready() -> void:
$"Sprite".frame_coords.x = randi_range(0,4)
if $"/root/Global".active_biom == "w":
$"Sprite".frame = randi_range(5,9)
if $"/root/Global".active_biom == "s":
$"Sprite".frame = randi_range(10,12)
$"Sprite".frame_coords.y = 1
elif $"/root/Global".active_biom == "s":
$"Sprite".frame_coords.y = 2
else:
$"Sprite".frame = randi_range(0,4)
$"Sprite".frame_coords.y = 0
func _process(delta: float) -> void:
speed = $"/root/Global".speed

View file

@ -21,7 +21,7 @@ texture = ExtResource("2_thg8w")
offset = Vector2(0, 0.5)
hframes = 5
vframes = 3
frame = 9
frame = 14
region_enabled = true
region_rect = Rect2(0, 0, 80, 48)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Before After
Before After