Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a working Laser for my game
- practicegames
- Scratcher
1 post
How do I make a working Laser for my game
So my game is basically one of those retro space invader games called space ship vs ghost the space ship is supposed to fire a laser and it will hit the ghosts atleast until i can get my code for the ghosts moving and respawining Done but Still I need help making the laser ive never made a game before
- GoldenSlime666
- Scratcher
7 posts
How do I make a working Laser for my game
when [ space] key pressedthis is what button you press for it to activate but make sure this line of code is in the laser sprite
next you want to put
showon it then add
glide (however fast you want it) secs to x: (the edge of the screen) y: (player y)
hide
and then in a sperate line of code
when green flag clickedand then
hide
when [ space] key pressed
go to [ what fires it]
- Discussion Forums
- » Help with Scripts
- » How do I make a working Laser for my game