Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Maze
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
upthescale




PostPosted: 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
Sponsor
sponsor
Mr. T




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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 Razz
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: