Make RotatedSprite bi-directional

Post Reply
randomizer52
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Apr 29, 2018 8:16 pm
Contact:

Make RotatedSprite bi-directional

Post by randomizer52 »

Add a boolean "direction" to the RotatedSprite type, allowing for clockwise or counterclockwise rotation as desired (step forward or step backward through the sprite file).

Alternately (as my true goal is to enable clockwise rotation on the radar entity), change the radar entity to use Animation instead of RotatedSprite, as the Animation type already include the "run_mode" property (forward, back, forward-then-back).

See: /viewtopic.php?f=28&t=76686 and https://mods.factorio.com/mod/ScanningR ... 00090b9aca

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Make RotatedSprite bi-directional

Post by posila »

For 0.18.33 I added "counterclockwise" bool parameter to RotatedSprite, since RotatedAnimation already had it.
I don't want to standardise Radar animation definition at the moment because I don't know yet, what the standard should be.

randomizer52
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Apr 29, 2018 8:16 pm
Contact:

Re: Make RotatedSprite bi-directional

Post by randomizer52 »

posila wrote:
Sat Jun 20, 2020 11:33 am
For 0.18.33 I added "counterclockwise" bool parameter to RotatedSprite
Thank you very much! I actually discovered that I can do what I want by setting the radar's optional rotation_speed property to -0.01. But a direct counterclockwise setting may be better in any case, like if the default radar speed changes in the future.

Post Reply

Return to “Implemented mod requests”