Computer Science Canada

Need help moving imported pics

Author:  maybe [ Sun Jan 18, 2004 1:20 pm ]
Post subject:  Need help moving imported pics

how do i move imported pics??
can some one offer a code moving it by buttons or keys

Author:  Tony [ Sun Jan 18, 2004 2:23 pm ]
Post subject: 

dont make double posts Rolling Eyes

you move imported pictures same way you move any other graphic... just draw it in a different place.

Author:  maybe [ Sun Jan 18, 2004 2:32 pm ]
Post subject: 

thats not the point, i need to now how to move it while its on the output screen using buttons

wat code or procedure do i put for the buttons to move the certain pic

Author:  Tony [ Sun Jan 18, 2004 2:38 pm ]
Post subject: 

code:

procedure moveRight()
x:= x+5
end moveRight


procedure changes X variable to 5 pixels to the right Confused If you're using GUI.

else you can just have Input.KeyDown and some if statements. There's a tutorail called [moving characters on screen] or something like that... go read it, its useful


: