Page 1 of 1
What Does Shift= Do?
Posted: Sun Dec 20, 2015 6:12 pm
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.
Re: What Does Shift= Do?
Posted: Sun Dec 20, 2015 6:19 pm
by Klonan
Shift moves the sprite relative to its selection/collision box, it is a purely aesthetic lua definition and has no gameplay affects
Re: What Does Shift= Do?
Posted: Sun Dec 20, 2015 6:23 pm
by daniel34
More info:
How do sprite shifts work [Modding help]
GFX-Shift-Tool [Development-Tools]
Re: What Does Shift= Do?
Posted: Sun Dec 20, 2015 7:49 pm
by Foxy_Boxes
My only other question then is, how does a splitter move items?
Re: What Does Shift= Do?
Posted: Mon Dec 28, 2015 12:43 am
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.