Computer Science Canada Moving an object in Turing |
Author: | Don [ Sat Jan 17, 2009 12:03 pm ] |
Post subject: | Moving an object in Turing |
Ok I need help animating how to move an object from left to right and keep going. Can someone tell me please how to move? Ok here is my program I want to animate across the screen and keep moving until the user closes it. |
Author: | saltpro15 [ Sat Jan 17, 2009 12:29 pm ] |
Post subject: | Re: Moving an object in Turing |
It would be a lot easier to just find a JPEG image of an F22 and animate that using Input.KeyDown and Sprite.Animate, unless the plane has to be drawn with drawlines?[/syntax] |
Author: | saltpro15 [ Sat Jan 17, 2009 12:30 pm ] |
Post subject: | Re: Moving an object in Turing |
It would be a lot easier to just find a JPEG image of an F22 and animate that using Input.KeyDown and Sprite.Animate, unless the plane has to be drawn with drawlines? |
Author: | saltpro15 [ Sat Jan 17, 2009 12:30 pm ] |
Post subject: | RE:Moving an object in Turing |
sorry about the triple post, something went wrong |
Author: | Don [ Sat Jan 17, 2009 12:31 pm ] |
Post subject: | RE:Moving an object in Turing |
No the plane has to be drawn tho. |
Author: | copthesaint [ Sat Jan 17, 2009 12:40 pm ] | ||
Post subject: | Re: Moving an object in Turing | ||
Ok to do this you need two variables. 1 will move you drawing 1 will switch the position it's going eg
|
Author: | Euphoracle [ Sat Jan 17, 2009 12:45 pm ] | ||
Post subject: | RE:Moving an object in Turing | ||
If you include a variable to 'add' to the draw coordinates, you can wrap it in a procedure and draw it wherever you want. I used a macro to add them in, and the other code is just garble to move it around in silly ways.
|
Author: | copthesaint [ Sat Jan 17, 2009 12:47 pm ] |
Post subject: | RE:Moving an object in Turing |
wow someone went over kill lol were you bored? |
Author: | Euphoracle [ Sat Jan 17, 2009 12:49 pm ] |
Post subject: | RE:Moving an object in Turing |
I ripped it from an example collection I'm working on for my peer tutor position at my highschool. Originally... it was a target that you had to throw darts at. |
Author: | copthesaint [ Sat Jan 17, 2009 12:49 pm ] |
Post subject: | RE:Moving an object in Turing |
lol thats funny I think that's a bit more then he needed.... :p |
Author: | Don [ Sat Jan 17, 2009 12:57 pm ] | ||||
Post subject: | RE:Moving an object in Turing | ||||
Yo this thing doesnt work I even set up new varibles to see if it works but it doesnt give any warning. It doesnt run. Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | copthesaint [ Sat Jan 17, 2009 1:01 pm ] |
Post subject: | RE:Moving an object in Turing |
you need to loop this drawing use my example and it will move your drawing |
Author: | Don [ Sat Jan 17, 2009 1:09 pm ] |
Post subject: | RE:Moving an object in Turing |
Ok I got it to move then I put in a picture and now its blinks so much that you cant even see. Plus it moves left to right and then right to left. I want it to move from left and keep going on screen. |
Author: | copthesaint [ Sat Jan 17, 2009 1:13 pm ] |
Post subject: | RE:Moving an object in Turing |
just set it so when the x variable get to like - 1000 then x will = +1000 but this doesn't require 2 variable to move the plan |
Author: | Don [ Sat Jan 17, 2009 1:21 pm ] |
Post subject: | RE:Moving an object in Turing |
Ok thanks. |