Computer Science Canada Need help with Flawless background w/ animated bmp's over |
Author: | Protosstic [ Wed Jun 04, 2003 3:49 pm ] | ||
Post subject: | Need help with Flawless background w/ animated bmp's over | ||
Hello All. I am using Turing 4.0.1 [p], which is used commonly around our school for the course I am taking. Now for mine and my partner's end of the year project, we are making Frogger: Reloaded ![]()
I really appreciate any help, we really are hoping to do good on this game! |
Author: | Tony [ Wed Jun 04, 2003 4:01 pm ] |
Post subject: | |
well turing is naturally slow, and the only way to speed up the exectuion is ether a) calculating less values or b) move graphics over a larger distance per turn (if applicable) If you're using a picture as your background, you can cut it up in pieces and redraw only those that are need to be restored. |
Author: | Protosstic [ Wed Jun 04, 2003 4:24 pm ] |
Post subject: | |
Alright, well Should I then be having each background piece being assigned to a section, and if the frog is in that section ,it redraws it? |
Author: | Tony [ Wed Jun 04, 2003 4:30 pm ] |
Post subject: | |
yeah, basically... such as you mentioned before that there was a grid... so have each grid cell as a separate picture... this way as the frog moves from 1 cell to the next, you just have to redraw that single cell instead of the whole background, speeding up the process. |
Author: | Protosstic [ Wed Jun 04, 2003 4:40 pm ] |
Post subject: | |
Alright, Yeah the grid will be gone soon, it's just there for testing purposes. Now One other thing is, in the code i posted earlier, it seems to be using all my CPU when i run it and the frog is not moving (idle). Got any idea why it's doing that? Btw, Thanks alot for all of this! |
Author: | Tony [ Wed Jun 04, 2003 4:59 pm ] |
Post subject: | |
turing is naturally slow and very bad at using resourses properly... processes might affect this as well (in a bad way)... though I dont really know |
Author: | Protosstic [ Wed Jun 04, 2003 5:38 pm ] |
Post subject: | |
Well thanks alot for all your Help Tony, Very much appreciated, hope to get this game done soon. I am right now working to assign each box a number in an array, so thanks to you my project is not on pause!!! |
Author: | Protosstic [ Wed Jun 04, 2003 6:02 pm ] | ||
Post subject: | |||
Hopefully this is okay to ask in the same thread as my other post, because it is for the same game. I am trying to make an array variable equal to something, in my 2d array. This is going to be used to give each grid spot a specific id, so i can update each one after a move. However i am having some problem with getting it going. Not sure how to make the second dimension of the variable equal to something. Here is my code.
I tried to follow the tutorial, but was having some problems understanding with 2d arrays. Thanks! |
Author: | Tony [ Wed Jun 04, 2003 8:00 pm ] | ||
Post subject: | |||
hmmm... you're doing this all wrong...
This creates an array of 10x10 grid and saves 100x100 squares, where first number is the row and second is the column of there the box is located. |