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

#1 2010-07-22 20:37:47

chriswallen
Scratcher
Registered: 2010-02-19
Posts: 4

how to make multiple shots with one sprite

does anyone know how to make multiple shots (gun shots) happen on the screen at the same time with one sprite??? im trying to make a shooter and don't want to make multiple sprites for gun shots.

Offline

 

#2 2010-07-22 20:39:50

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: how to make multiple shots with one sprite

Well, you'd have to have it go from one spot to another with a sort of list to keep track of where each of the bullets are, and have it stamp from one place to another. I'm giving you a bit of a concept... I can write up a script for you tomorrow if you don't understand  smile

However, this belongs in All About Scratch. I'll move it for you.

Offline

 

#3 2010-07-22 23:43:10

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: how to make multiple shots with one sprite

Write the bullet's location, stamp, go to next bullet's location, stamp, go to previous bullet's location, stamp.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#4 2010-07-23 16:06:18

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: how to make multiple shots with one sprite

Its allot easier and normally less laggy just to have multiple sprites, although the list method is good if you need tons of them and don't care about lagg too much,.

Offline

 

#5 2010-07-25 21:06:07

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how to make multiple shots with one sprite

colorfusion wrote:

Its allot easier and normally less laggy just to have multiple sprites, although the list method is good if you need tons of them and don't care about lagg too much,.

Wouldn't having multiple sprites bog the project down more than stamping?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2010-07-25 21:09:02

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: how to make multiple shots with one sprite

Harakou wrote:

colorfusion wrote:

Its allot easier and normally less laggy just to have multiple sprites, although the list method is good if you need tons of them and don't care about lagg too much,.

Wouldn't having multiple sprites bog the project down more than stamping?

Unless you plan on having millions of bullet sprites, I don't think so...

Offline

 

Board footer