forked from team-sg/hero-mark-2
turned off camera smoothing
This commit is contained in:
parent
a2f6d92fb4
commit
3b52ec2cbf
7 changed files with 30 additions and 27 deletions
|
@ -5,6 +5,5 @@
|
|||
[node name="Camera2D" type="Camera2D"]
|
||||
offset = Vector2( 128, 96 )
|
||||
current = true
|
||||
smoothing_enabled = true
|
||||
smoothing_speed = 8.0
|
||||
script = ExtResource( 1 )
|
||||
|
|
|
@ -25,6 +25,7 @@ func _physics_process(delta):
|
|||
else: move_up_and_down(delta)
|
||||
#Speed up if in raycast
|
||||
if raycast.get_collider() != null:
|
||||
Debug.print(raycast.get_collider())
|
||||
if raycast.get_collider().is_in_group("player"):
|
||||
go_fast = true
|
||||
timer.set_wait_time(0.5)
|
||||
|
|
|
@ -30,7 +30,8 @@ extents = Vector2( 4, 4 )
|
|||
|
||||
[node name="Snail" type="Node2D"]
|
||||
script = ExtResource( 3 )
|
||||
slower_speed = 10
|
||||
slower_speed = 30
|
||||
faster_speed = 80
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 1 )
|
||||
|
@ -46,8 +47,8 @@ shape = SubResource( 5 )
|
|||
[node name="RayCast2D" type="RayCast2D" parent="Area2D"]
|
||||
enabled = true
|
||||
cast_to = Vector2( 32, 0 )
|
||||
collision_mask = 8
|
||||
collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
|
|
|
@ -617,6 +617,7 @@ region_rect = Rect2( 0, 0, 32, 32 )
|
|||
|
||||
[node name="Area2D" type="Area2D" parent="." groups=["player"]]
|
||||
position = Vector2( 0, 3 )
|
||||
collision_layer = 9
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2( 0.5, 2 )
|
||||
|
|
|
@ -7,6 +7,8 @@ func _physics_process(delta):
|
|||
#Gravity
|
||||
velocity.y = 100
|
||||
velocity.x = 0
|
||||
else:
|
||||
velocity.y = 0
|
||||
move_and_slide(velocity,Vector2.UP)
|
||||
velocity.x = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue