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

#1 2013-04-22 15:54:44

PPJB
New Scratcher
Registered: 2012-04-09
Posts: 24

∞ ingredients?

Hi.

I'm making a game based in one that I watched in a cell phone of a girl at the subway  tongue
My game it's about salad making. I have in a "table" many ingredients, and you have to drag them on a bowl.

How can I do for, when you grab an ingredient from the table, the object on the table don't dissappear? (Infinite vegetables, as in the cartoons  tongue  )

Offline

 

#2 2013-04-22 16:21:45

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

Re: ∞ ingredients?

PPJB wrote:

Hi.

I'm making a game based in one that I watched in a cell phone of a girl at the subway  tongue
My game it's about salad making. I have in a "table" many ingredients, and you have to drag them on a bowl.

How can I do for, when you grab an ingredient from the table, the object on the table don't dissappear? (Infinite vegetables, as in the cartoons  tongue  )

Well, to do that, all you need to do is stamp you sprite before it starts moving.

I'm guessing that at some time, you'll want to drag that object as well, correct? Then just stamp your object once you're done using it in the bowl, and have it move back to where it was. Then you can use it again, as many times as you want.

Well I hope that this helps! Also, hello PPJB and welcome to Scratch! I wish you a great time here!

With regards,

ErnieParke

Last edited by ErnieParke (2013-04-22 16:22:26)


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

Offline

 

#3 2013-04-22 22:16:05

PPJB
New Scratcher
Registered: 2012-04-09
Posts: 24

Re: ∞ ingredients?

Hi.

Thanks. But I want to duplicate the ingredient when I took it of the table, or at least than the ingredient appear again when I let it on the bowl.

Offline

 

#4 2013-04-22 22:29:28

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: ∞ ingredients?

PPJB wrote:

Hi.

Thanks. But I want to duplicate the ingredient when I took it of the table, or at least than the ingredient appear again when I let it on the bowl.

I think he means this:

forever
 if <mouse down?>
  stamp
   repeat until <not <mouse down?>>
    go to [mouse pointer v]
   end
  stamp
  set x to (70)//put the number you want here
  set y to (50)//put the number you want here
 end
Hope that helped!
~7734f

Last edited by 7734f (2013-04-22 22:29:42)


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#5 2013-05-02 16:42:48

PPJB
New Scratcher
Registered: 2012-04-09
Posts: 24

Re: ∞ ingredients?

7734f wrote:

forever
 if <mouse down?>
  stamp
   repeat until <not <mouse down?>>
    go to [mouse pointer v]
   end
  stamp
  set x to (70)//put the number you want here
  set y to (50)//put the number you want here
 end
Hope that helped!
~7734f

7734f, thanks. I tried your code, but I want that, when the ingredient reach the bowl, the stamps disappear. How I do it?

Offline

 

#6 2013-05-02 16:56:13

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

Re: ∞ ingredients?

PPJB wrote:

7734f wrote:

forever
 if <mouse down?>
  stamp
   repeat until <not <mouse down?>>
    go to [mouse pointer v]
   end
  stamp
  set x to (70)//put the number you want here
  set y to (50)//put the number you want here
 end
Hope that helped!
~7734f

7734f, thanks. I tried your code, but I want that, when the ingredient reach the bowl, the stamps disappear. How I do it?

Well, I'm not entirely sure why you'd want that, though it'll involve this block:

clear

With regards,

ErnieParke


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

Offline

 

Board footer