Computer Science Canada How do i make an uploaded picture in turing move by itself? |
Author: | Ldomi [ Wed Jan 03, 2007 5:40 pm ] |
Post subject: | How do i make an uploaded picture in turing move by itself? |
Im trying to make a racing game where a picture of a car I uploaded is supposed to move by itself, but i dont the commands that make a picture move. I already tried adding "+1" to its coordinates and using the delay command...but that doesn't seem to work. Can anyone help me? Thank you in advance =) |
Author: | neufelni [ Wed Jan 03, 2007 5:58 pm ] | ||
Post subject: | |||
You need to have variables to represent the coordinates of the picture. You then need a loop in which you will change the variables and then redraw the picture. Sort of like this:
|
Author: | Ldomi [ Wed Jan 03, 2007 10:30 pm ] |
Post subject: | |
Thank you very much, but now the other car that is controlled by the user (using the getch command) doesnt move. How do i get them to work at the same time? |
Author: | neufelni [ Wed Jan 03, 2007 11:00 pm ] |
Post subject: | |
Use Input.KeyDown |
Author: | BenLi [ Thu Jan 04, 2007 10:38 am ] |
Post subject: | |
You've asked vague questions, and Nick was nice enough to answer them with equally vague answers. Please post some source code so we can actually help you. |
Author: | Ldomi [ Thu Jan 04, 2007 1:22 pm ] | ||
Post subject: | |||
BenLi wrote: You've asked vague questions, and Nick was nice enough to answer them with equally vague answers. Please post some source code so we can actually help you.
ok, here's my code so far:
(sorry, but i don't think you'll be able to see the pictures) |
Author: | Ldomi [ Thu Jan 04, 2007 1:42 pm ] |
Post subject: | |
Nick wrote: Use Input.KeyDown
Ill try to learn that command. Thank you very much ![]() |