Page 1 of 1

mapping questions

PostPosted: Tue Sep 19, 2006 3:24 pm
by relaxis
Hi, I've decided that the way I want to create the maps for my game is to map out the map in mappy and save as a bmp file, then block the areas where the character cannot walk with filled regions.

However, this presents another problem - actors in this game should be able to walk behind objets and under bridges etc... and instead they walk on top of them.

In order to get them to walk under objects, what is best?

1. create a filled region that sets the z depth to 0, then select the entire map as a region fill that sets the z depth to 1 again?

2. For each object on the map, create a seperate actor with image and move the map z depth to 0 , the actor to 0.5 and the object to 1?

PostPosted: Wed Sep 20, 2006 5:17 am
by makslane
I think the best is use different actors with different z depths

PostPosted: Wed Sep 20, 2006 6:23 am
by DilloDude
Just make two actors- background and foreground. To do the collisions it might be better to use tiles rather than create filled regions, as you only need to make one actor, and you can adjust it's shape and size.
The down size is that don't draw but allow events visibility state doesn't seem to work with tiles, so you need to set transparency to .99, set a low z-depth to make it below the background, or both.