forked from team-sg/hero-mark-2
fixed super slime again
This commit is contained in:
parent
b73ed13df3
commit
33b41c267b
3 changed files with 105 additions and 40 deletions
129
maps/lab.tscn
129
maps/lab.tscn
File diff suppressed because one or more lines are too long
|
@ -122,13 +122,13 @@ position = Vector2( 48, 120 )
|
||||||
|
|
||||||
[node name="AnimatedSprite" parent="RollingFiend" index="0"]
|
[node name="AnimatedSprite" parent="RollingFiend" index="0"]
|
||||||
visible = false
|
visible = false
|
||||||
frame = 1
|
|
||||||
|
|
||||||
[node name="SawTest2" type="AnimatedSprite" parent="RollingFiend"]
|
[node name="SawTest2" type="AnimatedSprite" parent="RollingFiend"]
|
||||||
material = SubResource( 4 )
|
material = SubResource( 4 )
|
||||||
position = Vector2( 4, 4 )
|
position = Vector2( 4, 4 )
|
||||||
z_index = -3
|
z_index = -3
|
||||||
frames = SubResource( 5 )
|
frames = SubResource( 5 )
|
||||||
|
frame = 1
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
[node name="Steam" parent="." instance=ExtResource( 23 )]
|
[node name="Steam" parent="." instance=ExtResource( 23 )]
|
||||||
|
@ -176,7 +176,15 @@ position = Vector2( 144, 128 )
|
||||||
[node name="CollapseBlock3" parent="." instance=ExtResource( 8 )]
|
[node name="CollapseBlock3" parent="." instance=ExtResource( 8 )]
|
||||||
position = Vector2( 152, 128 )
|
position = Vector2( 152, 128 )
|
||||||
|
|
||||||
[node name="Roboturret" parent="." instance=ExtResource( 5 )]
|
[node name="MovingPlatform2" parent="." instance=ExtResource( 6 )]
|
||||||
position = Vector2( 112, 168 )
|
position = Vector2( 208, 64 )
|
||||||
|
scale = Vector2( 2, 1 )
|
||||||
|
left_up_boundary = 6.0
|
||||||
|
right_down_boundary = 6.0
|
||||||
|
move_direction = 1
|
||||||
|
|
||||||
|
[node name="Roboturret" parent="MovingPlatform2" instance=ExtResource( 5 )]
|
||||||
|
position = Vector2( -1.5, 12 )
|
||||||
|
scale = Vector2( 0.5, -1 )
|
||||||
|
|
||||||
[editable path="RollingFiend"]
|
[editable path="RollingFiend"]
|
||||||
|
|
|
@ -41,7 +41,7 @@ func _physics_process(delta: float) -> void:
|
||||||
# check for jump point
|
# check for jump point
|
||||||
var jump_points = bottom_jumps if sign(_jump_direction) == -1.0 else top_jumps
|
var jump_points = bottom_jumps if sign(_jump_direction) == -1.0 else top_jumps
|
||||||
for x in jump_points:
|
for x in jump_points:
|
||||||
if abs(hitbox.position.x - x) <= 2.0:
|
if abs(hitbox.position.x - x) <= 4.0:
|
||||||
_jumping = true
|
_jumping = true
|
||||||
break
|
break
|
||||||
# check for player
|
# check for player
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue