rendering.draw_sprite{surface = self.surface, sprite = self.sprite, target = self.pos, orientation = ***no matter what number I tried, it doesn't make any difference***, time_to_live = 2, x_scale =0.25, y_scale = 0.25}
The sprite does show. But this field doesn't seem to have done anything. What is wrong?
Thanks.
How to correctly use orientation field in function rendering.draw_sprite()?
-
- Fast Inserter
- Posts: 152
- Joined: Sun Jun 16, 2019 4:04 pm
- Contact:
Re: How to correctly use orientation field in function rendering.draw_sprite()?
Code: Select all
/c rendering.draw_sprite{
surface = game.player.surface,
sprite = "item/electronic-circuit",
target = game.player.character,
orientation = 0.1,
time_to_live = 2 * 60,
x_scale = 0.25,
y_scale = 0.25
}
-
- Fast Inserter
- Posts: 152
- Joined: Sun Jun 16, 2019 4:04 pm
- Contact: