Friday, April 27, 2007

Multi-Story Buildings Part 3!

Yesterday i wrote code to make a certain floor of a building show a yellow bounding box when the player moves the cursor over it. This will make it easy to to send soldiers to a specific floor.

Today i adjusted my old single-story building code to work with multi-story buildings. I had to make a lot of new waypoints for my test building and the “reload object” feature i added earlier came in very handy. Anyways, you can see the result of my work in the video :)

 

Next i have to come up with a good idea how to position the soldiers inside the buildings. I could add a few “spots” , so the player clicks the spot where his soldier should go to. I could also allow the player to move soldiers freely in buildings, but then the soldiers would be in danger of getting stuck. I’ll have to think about this a bit more…