forked from team-sg/hero-mark-2
rounded jumping spider sprite global position
This commit is contained in:
parent
e79f0fff40
commit
6ec28bfae1
3 changed files with 34 additions and 20 deletions
|
@ -24,6 +24,8 @@ func _physics_process(delta):
|
|||
if position.x <= startpos.x + (-left_boundary * 8):
|
||||
direction = 1
|
||||
if flip_sprite == true: sprite.scale.x = 1
|
||||
#Round sprite position
|
||||
sprite.global_position.x = round(sprite.global_position.x)
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue