Wall implemented
This commit is contained in:
@ -12,6 +12,17 @@ script = ExtResource("1_wft0c")
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="CharacterBody2D"]
|
||||
position = Vector2(0, 10)
|
||||
lifetime = 0.5
|
||||
speed_scale = 5.0
|
||||
emission_shape = 2
|
||||
emission_sphere_radius = 4.0
|
||||
spread = 0.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_min = 2.0
|
||||
scale_amount_max = 4.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("RectangleShape2D_wft0c")
|
||||
|
||||
|
@ -36,7 +36,6 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func target_reached() -> void:
|
||||
var chance = 0
|
||||
if name.contains("Arrow"): #special effects here!
|
||||
if randf() < 0.1:
|
||||
target.get_parent().set_speed(target.get_parent().get_speed() / 2)
|
||||
|
Reference in New Issue
Block a user