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

Username:   Password: 
 RegisterRegister   
 Help in animation
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
triumph




PostPosted: Sun Apr 24, 2005 6:40 pm   Post subject: (No subject)

It seems I have alot to learn. That's the only way I learned how to move objects. Our teacher (student teacher) teaches us nothing. He tells us to use the "help menu" for everything.

So basically it's all on your own.
Sponsor
Sponsor
Sponsor
sponsor
jamonathin




PostPosted: Mon Apr 25, 2005 6:03 am   Post subject: (No subject)

Also, pay attention to what you're changing in your if statements? is it the xball := xball + 10, or is it the velocityx? Whatever you're changing, is what should be moving the ball, and for right now, the only thing moving the ball.
triumph




PostPosted: Mon Apr 25, 2005 6:57 am   Post subject: (No subject)

Where do you put the ballvelocity variable within this line:

code:
drawoval (xball + 10, yball + 150, ballradius, ballradius, ballcolor1)
   


I don't see where this "direction/speed" variable is inserted so it makes a difference within the code...
jamonathin




PostPosted: Mon Apr 25, 2005 8:52 am   Post subject: (No subject)

nowhere, you add the ball velocity to the xball and yball.

Hint: The velocities should be 10 (or however speed) also.
triumph




PostPosted: Mon Apr 25, 2005 10:48 am   Post subject: (No subject)

I got help from someone in my programming class and it worked out alot better.

Thanks anyways,
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 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: