A simple problem, complicated for me- animation/looping
Author |
Message |
x-ecutioner
|
Posted: Thu Jan 01, 2009 10:43 pm Post subject: A simple problem, complicated for me- animation/looping |
|
|
hello there,
the issue im having is the basic concept of:
1. say you have a square
2. as it moves draw a second one behind it
3. as the second moves draw third one behind it and so forth (all these squares keep going to the end of the screen and this continuously goes on)
how can this be done:S
a simple example will do, even just an explanation.
any help would be greatly appreciated thanks. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
syntax_error
|
Posted: Fri Jan 02, 2009 12:28 pm Post subject: RE:A simple problem, complicated for me- animation/looping |
|
|
How about you follow through with what you outlined in the steps:
-> Draw a square
-> Draw another square in front of it, so it seems like you moved forward but have a trail behind you.
-> To do this wisely, look at the x and y coordinates see how they are changing, accordingly loop through the x and y values
-> There you go, and now you are done. |
|
|
|
|
|
|
|