Computer Science Canada Moving with "sprites" |
Author: | Diablo117 [ Sun May 31, 2009 6:28 pm ] | ||
Post subject: | Moving with "sprites" | ||
What is it you are trying to achieve? Moving my picture with a "walking sequence" of 1 to 4 What is the problem you are having? Can't seem to make it scroll through without super lag Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using 4.0.5 I think |
Author: | tjmoore1993 [ Sun May 31, 2009 7:01 pm ] | ||
Post subject: | RE:Moving with "sprites" | ||
|
Author: | Diablo117 [ Sun May 31, 2009 8:15 pm ] |
Post subject: | Re: Moving with "sprites" |
Exactly what I want, unfortunately this "pauses" the program as the loop runs and an exit cant be used outside of a for or loop statement. I tried adding it in a few different ways but all of them paused my program while that ran. Any other suggestions? |
Author: | tjmoore1993 [ Sun May 31, 2009 8:27 pm ] |
Post subject: | Re: Moving with "sprites" |
Diablo117 @ Sun May 31, 2009 8:15 pm wrote: Exactly what I want, unfortunately this "pauses" the program as the loop runs and an exit cant be used outside of a for or loop statement. I tried adding it in a few different ways but all of them paused my program while that ran. Any other suggestions?
What exactly are you trying to accomplish? Character moves while other things move? |
Author: | Dusk Eagle [ Sun May 31, 2009 8:38 pm ] | ||||
Post subject: | Re: Moving with "sprites" | ||||
You should be storing all your pictures of the one player in an array, as this makes it easier to expand your array to more pictures and to work with your pictures. Load each picture into memory by doing something like this:
Then draw the player to the screen using the following code:
|
Author: | Diablo117 [ Sun May 31, 2009 8:59 pm ] |
Post subject: | Re: Moving with "sprites" |
Mmm, thanks ill try that now. I stopped using an array when my pictures wouldnt seem to load but it mightve been me being stupid elsewhere in the code. |