Directions/ Orientations

Things that already exist in the current mod API
Post Reply
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Directions/ Orientations

Post by drs9999 »

In reference to some ongoing discussions. A getdirection() method for entities would be nice.

Also if you use "assembling-machine"-type buildings that dont have a square-sized collision-/ selection-box, the bulding can rotate (what is very cool) but the textures wont. So it would be cool to be able to add a direction-count- attribute to the animation (like the belts have). If direction == 1 then display animation from row 1 in the specific *.png if direction == 2 then display animation from row 2.

Also be able to define multiple collision boxes for one entity can be useful. So something like this can be made then:
multi.png
multi.png (1.19 KiB) Viewed 4245 times
For example this can be useful to create a "garage", but there are multiple other situations where this can be handy.

EDIT: Only the collision box is affected by rotating the building. The selction box is allways the same.

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Directions/ Orientations

Post by ficolas »

I told this to kovarex some time ago, and for the garage, maybe another usefull and cool thing can be multibyilding buildings

SilverWarior
Filter Inserter
Filter Inserter
Posts: 559
Joined: Mon Mar 04, 2013 9:23 am
Contact:

Re: Directions/ Orientations

Post by SilverWarior »

In short you would like to have building which spans thwough multiple map cels and have colision limited to only come map cels. I belive this could only be posible if the buidling is being treated by game as several seperate segments.

Post Reply

Return to “Already exists”