Shatterstar
Member
|
Creating out of bounds
how would i create something to let the person know that they can not go there...and that area is not part of the playing field. Like for example, you travel so far, and then on the screen it says, "you can't go there," or "Out of bounds." I'm guessing it has to do with a physics box...and when you run upon it, coding kicks in. thing of it is...i have no idea on how to code that. My problem is, I have forest areas that i don't want anyone to be able to enter. Also is there a way to draw your physics box exact in code. based on your x, y, z axis....like maybe plugging in some numbers to draw your physics boxes. I know this question my sound stupid...but I've never made a video game before. I would be grateful for any help.
(This post was last modified: 02-16-2013 01:31 AM by Shatterstar.)
|
|
02-16-2013 01:30 AM |
|
Zervox
Member
|
RE: Creating out of bounds
box.draw
if(Inside(player[i].pos(),boundingbox))
if you want to block it completely, eg they will just be running into an invisible wall you just place Physics boxes and place them accordingly.
|
|
02-16-2013 01:47 AM |
|