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

#1 2013-02-02 02:22:04

Jellysnake
New Scratcher
Registered: 2013-02-01
Posts: 1

How to get one sprite to create another

Hi,
I want to make one sprite to create another.
The reason that i want this is so that i can have a series of bombs creating.
E.g.
Game starts
Ten secs later one bomb appears
Ten secs later another bomb appears
Ten secs later another bomb appears
This would repeat its self infinitely
If this is possible then can someone please to me how.

Offline

 

#2 2013-02-02 15:12:52

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: How to get one sprite to create another

It is impossible in Scratch 1.4. However, in Scratch 2.0, you will be able to clone sprites.


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2013-02-02 18:58:07

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: How to get one sprite to create another

sonicfan12p wrote:

It is impossible in Scratch 1.4. However, in Scratch 2.0, you will be able to clone sprites.

You mean IS possible in 1.4, but it would cause a lot of programming, with a list storing it then the program reading it and stamping where it tells to go etc.


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

#4 2013-02-03 16:44:00

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: How to get one sprite to create another

Jellysnake wrote:

Hi,
I want to make one sprite to create another.
The reason that i want this is so that i can have a series of bombs creating.
E.g.
Game starts
Ten secs later one bomb appears
Ten secs later another bomb appears
Ten secs later another bomb appears
This would repeat its self infinitely
If this is possible then can someone please to me how.

As sonicfan12p pointed out, a cloning feature is being added in Scratch 2.0, and as SFollis showed, an alternative could be a lot of stamping, though if you're going to have one bomb appear every 10 seconds, and not more, then you could do something like this:

when gf clicked
forever
 show
 go to x: (0) y: (180)//Or whatever you want.
 repeat until (touching [ground v]?)//Replace with a conditional that does the same thing.
  change y by (-1)
 end
 hide
 wait (10) secs//Somewhere around here...

I hope that this helps!

Last edited by ErnieParke (2013-02-03 16:44:24)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer