
-----------------------------------
drewst18
Mon Apr 19, 2004 10:17 pm

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.

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

-----------------------------------
Tony
Mon Apr 19, 2004 10:24 pm


-----------------------------------
i don't understand why you would keep on creating new pictures :? I mean you already loaded the image from a file :roll: 

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 :P 

Each time though the loop, if there're any active bullets on the screen, they move tawards their path 1 unit.
