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

Username:   Password: 
 RegisterRegister   
 Maze escape game... needs help with continuous animation
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xdanielx98




PostPosted: Thu Dec 20, 2007 9:31 am   Post subject: Maze escape game... needs help with continuous animation

Hey,

I created this little maze program but for some reason every time I run the program it has a tendancy of just locking up at random points, could anyone tell me what I need to change so that all balls will remain in motion, thnx.



the great escape (no movement).bmp
 Description:
title page for program
 Filesize:  750.05 KB
 Viewed:  77 Time(s)

the great escape (no movement).bmp



the great escape (almost finished).t
 Description:
main program

Download
 Filename:  the great escape (almost finished).t
 Filesize:  39.89 KB
 Downloaded:  125 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Ultrahex




PostPosted: Thu Dec 20, 2007 10:53 am   Post subject: Re: Maze escape game... needs help with continuous animation

*me gets ready to shoot himself*, this code is brutal....

Have You Learned Arrays, or Records?, I think this 1051 lines of code can be written in < 100 easily.

In Programming, you should never have the same code (as in a set of lines that are just copy and pasted and modified slightly) twice... (unless it is exactly twice for quick debugging, but other then that not more then twice).

Sorry that i am not willing to debug this code... its just that there is so many things going on at once in ... well a ton of code that is so simple.

(and btw the solution is because you are missing and end if after bot 4 .... and have an extra end if somewhere else).

One of the many reasons why people dont code excessive like this!
Gackt




PostPosted: Thu Dec 20, 2007 10:57 am   Post subject: RE:Maze escape game... needs help with continuous animation

Me and xdanielx98 are only in a grade 10 class right now, we haven't leared any of that stuff, In our school you don't learn that until our grade 11 course... >.>
Ultrahex




PostPosted: Thu Dec 20, 2007 11:07 am   Post subject: Re: Maze escape game... needs help with continuous animation

Just cause you don't learn them in Grade 10, doesn't mean you cant learn them in your spare time... they are not hard concepts at all and can easily be picked up and make your coding A LOT LESS TIME!, in fact it would probably take you less time to learn records and arrays and rewrite your code then fixing up this mess when things go wrong.

There is even tutorials on them on our forums in the Turing Tutorials Section.
xdanielx98




PostPosted: Thu Dec 20, 2007 11:24 am   Post subject: Re: Maze escape game... needs help with continuous animation

well thank you for the comment and yes I am aware that the program is very basic in its nature... I have learned what you stated and much more sense I made this program I was just going back and trying to wrap up old programs that I had... this has been the only one that i havent managed to fix by myself so far
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: