Skip to content

Commit

Permalink
fdsa
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatNateDev committed Aug 2, 2024
1 parent 44fb0fa commit da4b2f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/item_animations.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ func Item_anim(item):
var tweene = get_tree().create_tween()
tweene.tween_property(res,"rotation",360,1)
await get_tree().create_timer(1).timeout
var x = enemy.get_rect().size.x
x = x / 2
var y = enemy.get_rect().size.y
y = y / 2
print("x: "+str(x)+" "+"y: "+str(y))
res.hide()
await get_tree().create_timer(.2).timeout
res.position = Vector2(x,y)
res.position = res.position - Vector2(x,y)
res.show()
var tweenw = get_tree().create_tween()
tweenw.tween_property(res,"position",res.position.y + 20,1)
Expand Down

0 comments on commit da4b2f2

Please sign in to comment.