Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Anubis-class Cruiser (12/20/24)

Author Topic: Afterimages working incorrectly after ship sprite change  (Read 710 times)

willthefunperson

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Afterimages working incorrectly after ship sprite change
« on: August 22, 2024, 03:54:19 PM »

when using ShipAPI.addAfterimage, if the ship sprite changes via ShipAPI.setSprite then the afterimages will be facing directly upward for one frame.

I am using the linux version.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24997
    • View Profile
Re: Afterimages working incorrectly after ship sprite change
« Reply #1 on: August 22, 2024, 04:24:08 PM »

Hmm - might be worked around using ShipAPI.getSpriteAPI().setAngle()?
Logged

willthefunperson

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Re: Afterimages working incorrectly after ship sprite change
« Reply #2 on: August 22, 2024, 05:37:29 PM »

Hmm - might be worked around using ShipAPI.getSpriteAPI().setAngle()?

That worked. Thank you!
Logged