Ok, so I got all the sprites sorted out and I want the gun to shoot when I click, but the only options I've got are when (flag) is pressed, when I press space etc. and when sprite ... is pressed, but there's no, when mouse is clicked help would be greatly appreciated. [blocks]<when green flag clicked>[/blocks] [blocks]<when[ ]key pressed>[/blocks] [blocks]<when[ ]clicked>[/blocks]
Offline
Yep thanks =] but, now when i press it down i've got it to subtract 1 bullet but it takes away about tree or four. What should i do ?
[blocks]<when green flag clicked>[/blocks][blocks]<set{ bullets }to( 50 )[/blocks][blocks]<forever if>[/blocks][blocks]<mouse down?>[/blocks][blocks]<change{ bullets }by ( -1 ) [/blocks]<point towards( mouse Pointer) [blocks]<glide( 0.3 )secs to x mouse X )y
Mouse Y ) [/blocks]
Offline
Thank yoouuuuu =]]
Offline
ok, last thing i have to do. I have a moving target trying to get over to the other side, and when i shoot it, it has to restart in its position. But when i shoot it, it messes up and keeps spazzing out and flickering but not getting reset just flickering closer to where its trying to go help ?
<when green flag clicked>
<go to x 264 )y
-28 )
<show>
<switch to costume[ 1 ]
<glide( 5 )secs to x -236 )y
120)
<forever if><touching[ Sprite 4 ]
<change{ health }by( -10 )
<go to x 264 )y
-28 )
<wait( 1 )secsc>
<glide( 5 )secs to x 236 )y
-120 )
<when green flag clicked>
<forever if><touching[ sprite 2 ]
<change{ kills }by( 1 )
<switch to costume[ <pick random( 2 )to( 4 )
<wait( 1 )secsc>
<hide>
<go to x 264 )y
-28 )
<switch to costume[ 1 ]
<show>
<wait( 1 )secsc>
<glide( 5 )secs to x -236 )y
120 )
Offline