Rotation/Direction Indicator

Place to get help with not working mods / modding interface.
Jan5366x
Burner Inserter
Burner Inserter
Posts: 18
Joined: Tue Mar 07, 2017 9:12 pm
Contact:

Rotation/Direction Indicator

Post by Jan5366x »

Hello,

I'm a factorio mod beginner and I search for a way to display a roation (direction) indicator over a (simple-) entity.

(like pipe connectors for assambler. ( fluid_boxes ))

Why? The entity rotation is important for my mod logic and since the entity is 5x5 large it would be prefered to indicate the direction without replacing the entity or entire texture.

Any idea/tips how to achive this?

Thank you!
mrvn
Smart Inserter
Smart Inserter
Posts: 5848
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Rotation/Direction Indicator

Post by mrvn »

You can construct the entity graphics from multiple images. Make 2 layers, one your existing graphics and the other the rotation indicator. Then you define 4 images for the rotations where only the rotation indicator changes. The direction indicator should be simple to draw for each rotation.
Jan5366x
Burner Inserter
Burner Inserter
Posts: 18
Joined: Tue Mar 07, 2017 9:12 pm
Contact:

Re: Rotation/Direction Indicator

Post by Jan5366x »

Hi mrvn,

thank you for the input! I will look this up since I havn't worked with layers yet. :D

Best regards
Post Reply

Return to “Modding help”