Compare commits
No commits in common. "ece77430a7bd7a2e7a5a374bbe7cdff6167b61ad" and "160a860fef05018b69e0651d67d32e0d824c7b9f" have entirely different histories.
ece77430a7
...
160a860fef
|
@ -25,6 +25,7 @@ flip_h = true
|
||||||
use_parent_material = true
|
use_parent_material = true
|
||||||
frames = ExtResource( 1 )
|
frames = ExtResource( 1 )
|
||||||
animation = "idle"
|
animation = "idle"
|
||||||
|
frame = 2
|
||||||
playing = true
|
playing = true
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ extends EnemyClass
|
||||||
|
|
||||||
onready var player = $"../../Player"
|
onready var player = $"../../Player"
|
||||||
var dash_target = Vector2.ZERO
|
var dash_target = Vector2.ZERO
|
||||||
var afterdash_timer = .0
|
|
||||||
var afterdash = false
|
|
||||||
var dash_timer = .0
|
var dash_timer = .0
|
||||||
var dashing = false
|
var dashing = false
|
||||||
|
|
||||||
|
@ -35,11 +33,4 @@ func _physics_process(delta):
|
||||||
global_position = global_position.move_toward(dash_target, 10)
|
global_position = global_position.move_toward(dash_target, 10)
|
||||||
if global_position == dash_target:
|
if global_position == dash_target:
|
||||||
dashing = false
|
dashing = false
|
||||||
afterdash = true
|
|
||||||
|
|
||||||
if afterdash:
|
|
||||||
afterdash_timer += delta
|
|
||||||
if afterdash_timer >= 1:
|
|
||||||
afterdash = false
|
|
||||||
afterdash_timer = .0
|
|
||||||
dash_target = Vector2.ZERO
|
dash_target = Vector2.ZERO
|
||||||
|
|
Loading…
Reference in New Issue