mapping questions

Game Editor comments and discussion.

mapping questions

Postby relaxis » Tue Sep 19, 2006 3:24 pm

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?
User avatar
relaxis
 
Posts: 82
Joined: Mon Jul 17, 2006 2:06 pm
Location: Luxembourg
Score: 1 Give a positive score

Postby makslane » Wed Sep 20, 2006 5:17 am

I think the best is use different actors with different z depths
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby DilloDude » Wed Sep 20, 2006 6:23 am

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.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest