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

#1 2008-08-01 16:58:03

Cassorole
Scratcher
Registered: 2008-08-01
Posts: 7

Why is this not working

ok i tried to use the blocks and failed so ill rite it out

When flag is clicked
show
go to x:222 y:-131
if touching sprite1
hide
change treasure by 1

so when sprite 1 touches sprite 5 it does not hide and the treasure didn't go up.

Offline

 

#2 2008-08-01 17:04:21

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Why is this not working

Simple. Beginner Mistake. And now you won't make it again:

<when green flag clicked>
<go to x sad  222  )y sad  131
<show>
<forever>
<if><touching[ sprite1
<hide>
<change{ treasure  }by( 1
<end>
<end>

Now it will constantly check, not just that one instance when flag is clicked

Last edited by Bluestribute (2008-08-01 17:04:51)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-08-01 17:04:35

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Why is this not working

You need to put a forever block

<when green flag clicked>
<show>
<go to x sad  222 )y sad  -132
<forever>
<if><touching[ sprite1
  <hide>
  <change{ treasure }by( 1
<end>
<end>

Last edited by keroro645 (2008-08-01 17:06:40)

Offline

 

#4 2008-08-01 17:10:47

Cassorole
Scratcher
Registered: 2008-08-01
Posts: 7

Re: Why is this not working

thank you all for your help

Offline

 

Board footer