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