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

Username:   Password: 
 RegisterRegister   
 A simple problem, complicated for me- animation/looping
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
x-ecutioner




PostPosted: 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
Sponsor
sponsor
syntax_error




PostPosted: 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.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: