Page 1 of 1

Directions/ Orientations

Posted: Fri Mar 15, 2013 10:17 am
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 4287 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.

Re: Directions/ Orientations

Posted: Fri Mar 15, 2013 3:38 pm
by ficolas
I told this to kovarex some time ago, and for the garage, maybe another usefull and cool thing can be multibyilding buildings

Re: Directions/ Orientations

Posted: Fri Mar 15, 2013 6:01 pm
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.