two woodenboxes

Talk about making games.

two woodenboxes

Postby saabian » Fri Dec 29, 2006 10:54 pm

I have search the forum and the tuturial but still dont find anything god of help.
I have created a woodenbox actior, and i want two types of "woodenbox actors".
The first woodenbox actor is supposed to be a "plattfomcube" just like the tiles in the tuturial, the characters can't get thru this box the only way to pass it is to jump over the box. the box is like a short wall.

The other woodenbox actor has a lower z-dept so it looks like the box itself bellongs to the backgrund (a big picture in my case), but by pressing a button, say "Q" for example, the maincharacter sneeks behind the box, like taking cover if you get what i mean.
I was thinking about if i could make the maincharacter and the box disapear and change to another animation ("change animation") were the maincharacter is already hidding behind the woodenbox when the player press "Q". But i don't really know how to make it work beacuse the maincharacter has to stand beside the box when the player press "Q". maybe i has to do some kind of collision script aswell.....any ideas?? :? :?:
User avatar
saabian
 
Posts: 25
Joined: Sat Dec 09, 2006 1:27 pm
Location: Gothenburg => Sweden
Score: 0 Give a positive score

Postby Fuzzy » Fri Dec 29, 2006 11:59 pm

check for collision with the box. if it happens, use a scripted keypress for Q, and move the players Z-depth to behind the box.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest