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:
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.
Directions/ Orientations
Re: Directions/ Orientations
I told this to kovarex some time ago, and for the garage, maybe another usefull and cool thing can be multibyilding buildings
-
- Filter Inserter
- Posts: 559
- Joined: Mon Mar 04, 2013 9:23 am
- Contact:
Re: Directions/ Orientations
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.