Page 1 of 1

two woodenboxes

PostPosted: Fri Dec 29, 2006 10:54 pm
by saabian
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?? :? :?:

PostPosted: Fri Dec 29, 2006 11:59 pm
by Fuzzy
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.