What Does Shift= Do?

Place to get help with not working mods / modding interface.
Post Reply
Foxy_Boxes
Inserter
Inserter
Posts: 47
Joined: Mon Apr 27, 2015 3:39 pm
Contact:

What Does Shift= Do?

Post by Foxy_Boxes »

For instance, Belt Splitters have Shift = {0.25, 0.05} at points, which I'm guessing is to do with moving items on it. But the wiki is blank on the subject.
So... What does it do?

Hoping it might help remake a Belt Separator.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: What Does Shift= Do?

Post by Klonan »

Shift moves the sprite relative to its selection/collision box, it is a purely aesthetic lua definition and has no gameplay affects

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: What Does Shift= Do?

Post by daniel34 »

More info:
How do sprite shifts work [Modding help]
GFX-Shift-Tool [Development-Tools]
quick links: log file | graphical issues | wiki

Foxy_Boxes
Inserter
Inserter
Posts: 47
Joined: Mon Apr 27, 2015 3:39 pm
Contact:

Re: What Does Shift= Do?

Post by Foxy_Boxes »

My only other question then is, how does a splitter move items?

SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: What Does Shift= Do?

Post by SirRichie »

Foxy_Boxes wrote:My only other question then is, how does a splitter move items?
The c++ code does. There is not behavior description for a splitter. Because the entity is type="splitter", it behaves like a splitter.

You might as well ask, what makes an inserter take items from a belt and insert them into a machine. The answer is the same: the behavior defined in the c++ code.

Post Reply

Return to “Modding help”