Hey guys,
i want hear some ideas, how can i add Objects, like Buildings, which are bigger than my tiles.
My Idea was to cut the Object in Peaces so i can setup every peace as Base or Non-Base part.
Base Parts are under my Character and Non-Base over my char. The Char cannot go over Base Parts. Base parts are the parts of the Objects which are on the ground.
My Map iam saving as php file. its just a file with a huge array. it looks like this.
areaY0X0.php
<?php
$map[0][0]=>array('gras.png',true); //$map[0][0] means Y = 0 , X = 0. gras.png is the image and true or false displays if the tiles is enterable.
$map[1][0] => array('water1.png',false);
//and so on..
after this i add array with objects
$mapObjects[2][2] => array('tree1.png','-10px -50px',true); // the image, background position , base or non-base
$mapObjects[2][1] => array('tree1.png','-10px -0px',false);
the Problem is, that is hard to calculate the background positions of the objects, but it works. maybe you have another idea how can i add the objects?
greetz BlackScorp