Help With Turing Moving Images
Author |
Message |
Swagickarp
|
Posted: Wed May 27, 2015 12:28 pm Post subject: Help With Turing Moving Images |
|
|
uh, I MADE A BUS ON TURING, BUT i NEED HELP MOVING IT FROM ONE POINT TO ANOTHER.
Here is the bus:
%Schoolbus%
drawfillbox(40,50,250,150,blue)
drawfillbox(10,50,50,100,blue)
drawfilloval(60,50,20,20,black)
drawfilloval(200,50,20,20,black)
Please help me, and thank you.
Mod Edit: Moved post to Turing Help. Please post in the correct subforum. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Wed May 27, 2015 5:52 pm Post subject: RE:Help With Turing Moving Images |
|
|
If you change the coordinates in your draw commands, your bus will be drawn in a different spot. |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Thu May 28, 2015 8:52 pm Post subject: RE:Help With Turing Moving Images |
|
|
If you add 1 to all of the X coordinates your bus will move over by 1 pixel. If you keep doing this it will have the appearance of moving.
What programming construct do you know of that will let you do something over and over again? How can you keep using it to add 1 to your X coordinates over a period of time? |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
|
|