This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-12-09 19:50:56

codylevi27
Scratcher
Registered: 2007-12-09
Posts: 1

Having Trouble Making a Game

I need to know, how do I shoot a bullet from the gun...I can get it to move to the target, but it won't fire from the gun, instead it'll just start in the center of the stage.

Offline

 

#2 2007-12-10 00:19:18

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Having Trouble Making a Game

Put
  go to gun_sprite
at the beginning of the shooting script for the bullet.

Offline

 

#3 2007-12-13 16:16:35

jhnbytwoo
Scratcher
Registered: 2007-11-29
Posts: 40

Re: Having Trouble Making a Game

Here's a script for you:

When [flag] clicked
Forever [start]
   Go to [Gun]
   Hide
   Point Towards [mouse-pointer]
   If <mouse down> [start]
    Repeat Until <<touching [target]> or <edge>> [start]
    Move (10) steps
    Repeat Until [end]
    Hide
   If [end]
   Forever [end]
_________________________________________________________________________________
                            "You don't have to support it, just don't stop it"


"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones."
--Albert Einstein

Offline

 

Board footer