Backwards animation?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Stragemque
Inserter
Inserter
Posts: 23
Joined: Wed Sep 10, 2014 11:20 am
Contact:

Backwards animation?

Post by Stragemque »

I don't know how to describe it so here's a diagram:

Code: Select all

vanilla animation:   > > > > > ... 
what I want:         > < > < > ...
Here is the sprite sheet I made, it would seem like a good way to save on file size to not have to include the return trip for the dish as it's the same thing repeated.
zinovic

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Backwards animation?

Post by DaveMcW »

You can put each frame in its own file and use "stripes" instead of "filename". See the car entity for an example.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Backwards animation?

Post by darkfrei »

Here is some flag like "forward-then-revert", see code of mining drill.

User avatar
Stragemque
Inserter
Inserter
Posts: 23
Joined: Wed Sep 10, 2014 11:20 am
Contact:

Re: Backwards animation?

Post by Stragemque »

Ah yeah that did it! Thanks.

Code: Select all

run_mode = "forward-then-backward",
zinovic

Post Reply

Return to “Modding help”