Page 1 of 1

Can scenarios add graphics?

Posted: Fri May 10, 2019 7:15 am
by adamius
Hi

I'm wanting to build a campaign like setup to intro some people to Factorio. I'd like to have animation and still graphics to assist.

From the wiki I interpret that scenarios can't do this.
https://wiki.factorio.com/Scenario_syst ... C_and_mods

I appear to need a mod. Am I reading this page correctly?

thanks

Re: Can scenarios add graphics?

Posted: Fri May 10, 2019 1:43 pm
by eradicator
ApiDoc about SpritePath wrote:"file" - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
Which you can use with LuaRendering.draw_sprite. But. This is only static sprites, not animations as far as i can tell. (This is a brand new 0.17.x feature btw).