Maze
| Author |
Message |
upthescale
|
Posted: Sun Jun 04, 2006 4:50 pm Post subject: Maze |
|
|
Hey guys, I am creating a new Maze Game, where you have to direct the ball through the maze to the end, WITHOUT touching any of the either nonmoving or moving obstacles...My problem is this, when I pass level one, and go onto level 2, at level 2, the hit detection is off by much. I am using whatdotcolor, and since the maze is different in level 2, I guess level one is still running, so the ball is touching in level one, how can i make it so that I can create a new detection?
Thanks |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Mr. T

|
Posted: Sun Jun 04, 2006 4:53 pm Post subject: Alex's Opinion |
|
|
| If your using whatdotcolour collision then you shouldn't have a problem if you completely cls the first level and draw the second. |
|
|
|
|
 |
TheOneTrueGod

|
Posted: Sun Jun 04, 2006 4:56 pm Post subject: (No subject) |
|
|
Well, code would help, but I can try.
Level one is only drawing if you are telling it to draw... You should probably have them being drawn in procedures, so only call level one if it is level one... Whats probably going wrong is that you aren't checking the co-ordinates properly. Please post some code and we can try and help further. |
|
|
|
|
 |
upthescale
|
Posted: Sun Jun 04, 2006 5:00 pm Post subject: (No subject) |
|
|
| i dont wanna post it cuz ull hate me fer the coding lol, and i am using proceduers, Level1 and then if levelone =1 then Level2, and it goes to elvel 2 fine, just my hit detectkion is messed, becasue level one it still there, u cant see it, but my ball is messed! |
|
|
|
|
 |
Dan

|
Posted: Sun Jun 04, 2006 5:06 pm Post subject: (No subject) |
|
|
1st of all i do not recomened using whatdotcolor for colesion dection. But as the above posts state, if you are redrawing the level right, placing the ball right, and doing the colesion dection right it should work and we can not realy help more with out the code.
So it is up to you post more code and get help or not  |
| Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
|
|