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

#1 2009-11-29 21:48:07

PepperFaic
Scratcher
Registered: 2009-11-28
Posts: 18

I don't suppose someone has a shooting script I could use?

I really want to make  a defence game (You know, where you're in a  fixed position,
shooting off zombies and such.)

The only problem is,I don't know how to make projectiles come from an object.
If you could make one for me, it'd be appreciated.
I'll give you credit.

It is open-source after all.

I make all my graphics (Or edit them when it's things like a picture or so.)
So if you do help, you don't need to make a gun model I can use.

For all I care, it can be a simple line.

But here's the requirements if I am not to pushy;

-Has to follow the mouse.
-Shoots on clicks.
-Make (So&So) Hide when (So&So) are hit, (To represent a kill.
-Made in 3rd Person, NOT 1st

Optional;
-Ammo
-On hit damage.
-Only shoots one enemy at a time.

Thank you for reading.

P.S. It's my 1st ORIGINAL game. So don't be surprised if it doesn't get many views.

Last edited by PepperFaic (2009-11-29 21:51:00)

Offline

 

#2 2009-11-29 23:05:15

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

Is this the sort of shooting you're looking for? Click on the picture in my sig for the game pocket tanks... That is a shootng game, but I'm not sure if it's what you're looking for.


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#3 2009-11-29 23:13:36

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

If you want, I'll make a simple shooting script for you.......


Hai.

Offline

 

#4 2009-11-29 23:16:58

keikij
Scratcher
Registered: 2009-02-22
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

Is this top-down style or are sidescrolling? Or something else? I can probably help.


Back from the Dead (And Stuff)

Offline

 

#5 2009-11-30 00:26:54

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

Will the arm and the person be seprate sprites? If they are, put these scripts into the person's arm:

<when green flag clicked>
<forever>
<point towards( mouse pointer
<end>

<when green flag clicked>
<forever if> <mouse down?>
<broadcast[ shoot  ]and wait c>
<end>

<when green flag clicked>
<forever>
<go to[ person sprite
<end>


And put these scripts into the bullet sprite:

<when green flag clicked>
<hide>

<when I receive[ shoot
<point in direction( ( [direction] of [arm sprite] )
<go to[ arm sprite
<show>
<repeat until> <touching[ edge
<move( 10 or so )steps>
<end>
<hide>

If the arm isn't going to be a separate sprite, just put the arm scripts into the person sprite (except for the last script). Also, make sure that the rotation centers of where the arm and person are supposed to connect are in the right spot.

Last edited by martianshark (2009-11-30 00:33:52)


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#6 2009-11-30 17:07:17

PepperFaic
Scratcher
Registered: 2009-11-28
Posts: 18

Re: I don't suppose someone has a shooting script I could use?

Thank you for your help.
Sorry I couldn't reply sooner.
I can't view my post.

The kind of shooting I am talk about is.

Basically this:

[]____{}____[]

{}:Player
_=The ground
[]=enemies.

It's where you're surrounded.

Offline

 

#7 2009-11-30 17:23:29

fireball123
Scratcher
Registered: 2008-05-08
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

I have a planet defense game, it's the same thing as you described, but not with zombies
http://scratch.mit.edu/projects/Firebal … sts/745840 it's a topdown game by the way. I have a platform game too with enemies and scrolling.
http://scratch.mit.edu/projects/Firebal … sts/745840
Hoped that helped!

Last edited by fireball123 (2009-11-30 17:27:48)


I did it for the Lolz

Offline

 

#8 2009-11-30 17:25:32

PepperFaic
Scratcher
Registered: 2009-11-28
Posts: 18

Re: I don't suppose someone has a shooting script I could use?

I was using the zombie thing as an example, but thankyou.  big_smile

Offline

 

#9 2009-11-30 18:05:43

carsy
Scratcher
Registered: 2009-11-30
Posts: 2

Re: I don't suppose someone has a shooting script I could use?

Check out news-guys stuff, he has a whole thing that shows you how to do it.
http://scratch.mit.edu/projects/News-guy/782243 that is one of his games.

Offline

 

#10 2009-11-30 18:24:18

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: I don't suppose someone has a shooting script I could use?

PepperFaic wrote:

Thank you for your help.
Sorry I couldn't reply sooner.
I can't view my post.

The kind of shooting I am talk about is.

Basically this:

[]____{}____[]

{}:Player
_=The ground
[]=enemies.

It's where you're surrounded.

yeah, that's pretty similar to my game, if you want to take a look at the scripting and stuff (the link is in my sig  tongue )


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#11 2009-11-30 19:48:45

PepperFaic
Scratcher
Registered: 2009-11-28
Posts: 18

Re: I don't suppose someone has a shooting script I could use?

Considering my limitation to understand scripts, I may have to switch to
melee combat or a shooting gallery, but it'll be great.

Offline

 

Board footer