Computer Science Canada

(animation) MOVING DIAGONAL !!!

Author:  capella [ Mon Jun 01, 2009 9:06 am ]
Post subject:  (animation) MOVING DIAGONAL !!!

What is it you are trying to achieve?
<make the picture move diagonally (from top left to bottom right)>


What is the problem you are having?
<the picture moves diagonally from top right to bottom left but it doesn't move from top left to bottom right>


Describe what you have tried to solve this problem
<for decreasing and for increasing>


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<for s: 30..280
Pic.Draw (mypic4, s+30, s, picMerge)
end for
>

Turing:


<Add your code here>



Please specify what version of Turing you are using
<Turing 4.0.5>

Author:  Kharybdis [ Mon Jun 01, 2009 3:04 pm ]
Post subject:  RE:(animation) MOVING DIAGONAL !!!

look into the command Input.KeyDown

Author:  Insectoid [ Mon Jun 01, 2009 3:36 pm ]
Post subject:  RE:(animation) MOVING DIAGONAL !!!

Er...Input.KeyDown has nothing at all to do with this project.

You need to change which loops control x/y.

Author:  Dusk Eagle [ Mon Jun 01, 2009 3:42 pm ]
Post subject:  Re: (animation) MOVING DIAGONAL !!!

Your code works, but if you don't it being "smudged" against the background, you'll need to look into cls. [/url] and [url=http://compsci.ca/holtsoft/doc/view_set.html]offscreenonly.

Author:  Kharybdis [ Mon Jun 01, 2009 8:06 pm ]
Post subject:  Re: RE:(animation) MOVING DIAGONAL !!!

insectoid @ Mon Jun 01, 2009 3:36 pm wrote:
Er...Input.KeyDown has nothing at all to do with this project.

You need to change which loops control x/y.


i thought he meant move it with a keyboard (movement of picture), not actually move it with code ..

My bad.


: