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

#1 2011-03-01 12:10:34

Blaziken_99
New Scratcher
Registered: 2011-03-01
Posts: 1

Please help

I am doing a diving maze game, And Im stuck on a few things:

I want my diver to go to the start if he hits the shark or a colour (The colour of the maze), but neither of the codes I've entered worked.

I want the chest to be behind the diver when he reaches it.

I want the chest to change costume when the diver reaches it.

Can you tell me the correct codes?

And the co-ordinates for the start is x: -213 y: 158
Thanks!

Offline

 

#2 2011-03-01 15:34:31

boonwagon
Scratcher
Registered: 2010-11-07
Posts: 14

Re: Please help

You need to be a little more specific in what you know how to do, cause i have some advanced techniques but i don't know if you know them, but i think i get it. Try this:
<when green flag clicked>
<forever if touching color ....>
<go to x:(wherever you want  )y:(wherever you want
<end>

That should do it.

Offline

 

#3 2011-03-02 22:51:58

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Please help

Blaziken_99 wrote:

I want my diver to go to the start if he hits the shark or a colour (The colour of the maze), but neither of the codes I've entered worked.

[blocks]
<if><< <touching color[ mazecolor <or> <touching[ shark >>
<go to x sad  -213 )y sad  158
<end>[/blocks]

I want the chest to be behind the diver when he reaches it.

select the diver, and double click the
[blocks]
<go to front>[/blocks]
block.

I want the chest to change costume when the diver reaches it.

[blocks]
<if><touching[ diver
<next costume>
<end>[/blocks]

Last edited by floppy_gunk (2011-03-02 22:53:28)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

Board footer