Ok.... I am kinda new to vb (8 months just started programming games) and i have downloaded exampled of things like ships shooting lasers but I just cant seem to get it to work.... Ok this is what I want my game to do (I can do everything but the laser part)
I want it so that I can move my guy topgod to be able to fire a laser line1 down........... but I can seem to make the laser follow the Topgod image...... I can get it to fly through the screen with this code
private sub form_Keydown (keycode bla bla bla)
if keycode = 32 then
line1.visible = true
timer1.enabled = true
End sub
private sub timer1_timer
line1.top = line1.top - 100
End sub
now the - 100....... I dont really remember what I put but it made the laser go down....... I just need to make it so if the ImgGod is at the left part of the screen the laser will shoot from there, and not from just the middle of the screen..... i want the laser to be able to be shot from wherever my imggod is... (my imggod can only move left or right)
Thank you soooooo much....................![]()
![]()
![]()
![]()
![]()




Reply With Quote