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

#1 2010-04-12 19:51:44

simplegames
Scratcher
Registered: 2010-04-11
Posts: 6

The the timer reaches to 100, I want to create an object/sprite?

So when the timer reaches 100, I wan't to create an object at the same x and y coordinates as another object/sprite. But I cannot find any "create object" functions. Help?

Offline

 

#2 2010-04-12 20:18:35

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: The the timer reaches to 100, I want to create an object/sprite?

You will have to make another sprite designed however you want it. Then use this script.

Appearing Object
<when green flag clicked>
<hide>
<wait until><( <timer> <=> 100 )>
<go to[ other object


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#3 2010-04-12 20:30:40

simplegames
Scratcher
Registered: 2010-04-11
Posts: 6

Re: The the timer reaches to 100, I want to create an object/sprite?

Is there a real legit way of doing this though? Because I'm gonna need an unlimited amount of objects that can spawn. I'm making a spore-type game and this is how the cells give birth.

Offline

 

#4 2010-04-12 23:17:37

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: The the timer reaches to 100, I want to create an object/sprite?

I'm afraid not  sad  . If you want to pester the Scratch team about features like this, pester them via the link in my sig.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5 2010-04-13 01:43:39

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

Re: The the timer reaches to 100, I want to create an object/sprite?

Do you mean cloning? This feature is not yet implemented in scratch. Though various copies have made a block like that though.  hmm


Hai.

Offline

 

#6 2010-04-13 07:48:19

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The the timer reaches to 100, I want to create an object/sprite?

fg123 wrote:

Do you mean cloning? This feature is not yet implemented in scratch. Though various copies have made a block like that though.  hmm

True, it is possible, but not in presentation mode, yet.
@Simple games
To do this you have to create all the needed sprites at the begining, then you have them show and hide, move around the screen and whatever you want, when you want them to.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#7 2010-04-13 08:18:47

Phi_Lho
Scratcher
Registered: 2010-03-22
Posts: 75

Re: The the timer reaches to 100, I want to create an object/sprite?

Note: if your clones are static (eg. in a Game of Life, where items appear or disappear, but don't move), you can use stamp to copy an image of a sprite, and another blank stamp to erase it.
If they must move (eg. lot of bullets), it seems to be harder, indeed.


http://i241.photobucket.com/albums/ff159/PhiLho/KM150.pnghttp://i241.photobucket.com/albums/ff159/PhiLho/PhiLhoLogo.png

Offline

 

#8 2010-04-13 10:04:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The the timer reaches to 100, I want to create an object/sprite?

Phi_Lho wrote:

Note: if your clones are static (eg. in a Game of Life, where items appear or disappear, but don't move), you can use stamp to copy an image of a sprite, and another blank stamp to erase it.
If they must move (eg. lot of bullets), it seems to be harder, indeed.

Bullets are easy, just make a set ammount of bullets, depending on the gun, 10s a good amount, you have a variable called Bullet_place, and you have it cycle through it, 1 → 10 and then reset at 1, and it broadcasts 'fire bullet' so you then have on each bullet, when it recives that broad cast it checks to see if its number is up, then if it is, it executes the firing stuff etc. and it loops round again.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer