Guest User

Untitled

a guest
Jun 15th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. func _process(_delta):
  2. var lived = Time.get_ticks_msec()-batch.spawntime
  3. position = (starting_position+transform_function.call(lived))*Vector2(batch.get_parent().horidir,1) #FIXME AI/PLAYER ABSTRACTION
  4. #NOTE assigning the shape each frame breaks collisions because of in-engine delays
  5. var newkey = Fighter.sort_keyframe_array(hitboxes,lived)
  6. if currkey != newkey:
  7. shape = newkey.meta.call()
  8. return
  9.  
  10. i was assigning to shape every frame instead of every time i need to, godon't has some r33333t4rd4d (lol @ pasteshit.cum) in-engine delays for accepting a shape2d as the shape of a collisionobject2d, there are skipped frames but who cares tbqh, if it ever comes up as a problem i will design around it.
  11.  
Add Comment
Please, Sign In to add comment