10-08-2010, 09:46 PM
I would like to help, as this is one of my expertises here on the Alice forums, however I cannot spend a lot of time explaining because I have to leave very soon, so I have to be a hypocrite and say: look at my maze world.
Lol, I always get mad at people when they say to just look at their example worlds, but in this case I am hoping it might help a little more. Look for the "collision detection" method. All of the walls (squares) where you want the collisions to take place have to be facing outwards towards the person (so the front of the wall always has to be facing out). The link to my maze program is in my signature below.
Setting the arrow keys to move the camera really would be a lot easier. Just set the camera's vehicle to the world, and the gun's vehicle to the camera, and you will be all set, but if you feel that you want a little more freedom in your collision, you can try my way. I have to warn you though it will be confusing and may take a few hours to complete.
Check out my best projects so far and please comment:
Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
|