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

#1 2012-06-11 21:25:50

peacechick1999
New Scratcher
Registered: 2012-06-11
Posts: 4

Help with sprites

hey, im working on a pac-man type game, and im trying to make the little dots dissapear when the pac man touches them. Does anyone know how to do this? Please help.

Offline

 

#2 2012-06-11 21:30:45

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Help with sprites

when gf clicked
show
forever if <touching [pacman v]>
hide
end

Last edited by jvvg (2012-06-11 21:31:19)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2012-06-11 21:41:17

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: Help with sprites

jvvg wrote:

when gf clicked
show
wait until <touching [pacman v] ?>
hide
end

scipts fixed and improved

Last edited by ftf841 (2012-06-11 21:41:42)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#4 2012-06-11 22:25:32

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Help with sprites

That will work only if every single dot is an individual sprite.  Also, you might want to add a "change [score] by" block to that script.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#5 2012-06-12 12:29:52

peacechick1999
New Scratcher
Registered: 2012-06-11
Posts: 4

Re: Help with sprites

also need to know how to make collision on the walls

Offline

 

#6 2012-06-12 12:55:09

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Help with sprites

peacechick1999 wrote:

also need to know how to make collision on the walls

forever
 if on edge, bounce

Offline

 

#7 2012-06-12 14:41:29

peacechick1999
New Scratcher
Registered: 2012-06-11
Posts: 4

Re: Help with sprites

Thanks for all the help everyone!

Offline

 

Board footer