Maze escape game... needs help with continuous animation
Author |
Message |
xdanielx98
![](http://compsci.ca/v3/uploads/user_avatars/1350565375476aaac21b7f4.jpg)
|
Posted: 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.
Description: |
|
Filesize: |
750.05 KB |
Viewed: |
77 Time(s) |
![the great escape (no movement).bmp](uploads/attachments/thumbs/t_the_great_escape_no_movement_199.bmp)
|
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
the great escape (almost finished).t |
Filesize: |
39.89 KB |
Downloaded: |
125 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Ultrahex
|
Posted: 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!
|
|
|
|
|
![](images/spacer.gif) |
Gackt
![](http://compsci.ca/v3/uploads/user_avatars/692715419476846d0b1db8.gif)
|
Posted: 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... >.>
|
|
|
|
|
![](images/spacer.gif) |
Ultrahex
|
Posted: 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.
|
|
|
|
|
![](images/spacer.gif) |
xdanielx98
![](http://compsci.ca/v3/uploads/user_avatars/1350565375476aaac21b7f4.jpg)
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
|
|