Moving .bmp files in a game
Author |
Message |
drewst18
|
Posted: Mon Apr 19, 2004 10:17 pm Post subject: Moving .bmp files in a game |
|
|
I am making an asteroids game(I am somewhat new to turing)...
my bullets are not Draw.Oval , but Pic.New how can I get them to move through the y axis when i hit the key
eg.
code: | loop
if Key_HOME(chars) then
var bullet : int := Pic.FileNew('bullets.bmp")
% Bullets from gun # 1
Pic.New (bullet,x,y,picMerge)
% Bullets from gun #2
Pic.New (buller,x1,y1,picMerge)
end if
end loop |
So using that can someone help me move my bullets towards the incoming aliens |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Mon Apr 19, 2004 10:24 pm Post subject: (No subject) |
|
|
i don't understand why you would keep on creating new pictures I mean you already loaded the image from a file
but you'd move them the same way you would move if you were drawing it using Draw.Oval, since x/y values are the same
Each time though the loop, if there're any active bullets on the screen, they move tawards their path 1 unit. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|
|