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

#1 2011-10-31 17:05:13

katieclark1
New Scratcher
Registered: 2011-10-31
Posts: 4

I have a few questions

I am new to scratch and I started making a pacman game.  I want to make it so when my pacman hits the walls, the game ends and I don't know how to do it.  I also want to make it so my octopuses hit pacman he will say game over and I don't know how to do that.  Also, is there a way that I can make my pacman hit my bananas and fruit basket and they will disappear and reappear in a new spot?  If someone can help me out that would be great!  Thanks in advance.

Offline

 

#2 2011-10-31 17:10:56

GurkinC
Scratcher
Registered: 2009-11-30
Posts: 100+

Re: I have a few questions

For the walls, you can use a
<when green flag clicked><forever if><touching color[ colour of walls] <stop all>

For the fruit, you can use this script on the fruit:
<when green flag clicked><forever if><touching[ pacman] <hide><set x to( <pick random( -250 )to( 250) <set y to( <pick random(-250  )to( 250)<show>

Also, for the octopus:
<when green flag clicked><forever if><touching[ (pacman) <say[ game over ]for( 2 )secs>

I understand that might seem a bit complicated, but just ask and I`ll try to explain it.

Last edited by GurkinC (2011-10-31 17:12:36)


Try my latest game, Rolling 2, a 10-level platform game based around the gravity marble.

Offline

 

#3 2011-10-31 17:21:37

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: I have a few questions

GurkinC wrote:

For the walls, you can use a
<when green flag clicked>
<forever if><touching color[ colour of walls] <stop all>

For the fruit, you can use this script on the fruit:
<when green flag clicked>
<forever if><touching[ pacman]
<hide><set x to( <pick random( -250 )to( 250)
<set y to( <pick random(-250  )to( 250)<show>

Also, for the octopus:
<when green flag clicked>
<forever if><touching[ (pacman)
<say[ game over ]for( 2 )secs>

I understand that might seem a bit complicated, but just ask and I`ll try to explain it.

I just cleared up the script a bit.  smile

Last edited by Pecola1 (2011-10-31 17:21:48)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer