I cant get the laser to shoot!!!!!!!!!
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.................... :confused: :eek: :( :mad: :o
Hey Thanks sooo Much! It worked
ok..... now I have another question..... Sorry if im annoying but I could not find any of this stuff in any vb book...... but I have looked at intersectRect before and I just dont get what Im supposed to do...... I need to make it so if the laser goes up and hits my image called imglord then I want imglord to explode (all I need is the collision part..... I know how to make the images visible and not visible)
Thanks:D :p :rolleyes: :confused:
Hey what about collision.............???
I need to make it so if the laser goes up and hits my image called imglord then I want imglord to explode (all I need is the collision part..... I know how to make the images visible and not visible)
Im sorry but I do not get intersectrect..... so if someone could please explain everything that I need and everything about it (Explain in detail) then Im sure it would do this message board as well as me a lot of good...... I have looked at other other collision forums and posts adn I just can figure it out.... I have looked at all the totorials(CANT SPELL) in the world and Im stumped
Thanks much.........:) :D ;) :p :cool: :rolleyes: :confused:
Thanks..... Finally one that works... :)
Thank you so much...... and its an if statement..... I knew you could do that but I heard it was time consuming and made your program run really slow..... But Im happy :D Ok but there is one problem..... :eek: Everytime I shoot within 3 positions over (Whenever the laser passer by imgtarget by ------------ or within that(only to the right not to the left)) then it does the msgbox "collision" thing that I wanted it to do, but it does it to the right of the object as well, not just on the object
Thanks Much.....:rolleyes: