boundaries

Blitz3D Forums/Blitz3D Programming/boundaries

What would be the best way to set up boundaries around a level so that the user can't pass through them? My current method uses way too many If statements for me to be very happy with.

1. Create a cube
2. scale it to the size of the boundaries
3. set up collisions between the cube and the player
4. set EntityAlpha cube,0

I think that will work.

Don't forget to FlipMesh the cube so that the polygons are facing in.

okay, thanks.