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

#1 2011-10-12 11:36:41

lees20h
New Scratcher
Registered: 2011-10-12
Posts: 2

i got a problem

I'm working on a school project, the pac-man.
i have make a +100 score when it eats the food. It's works, but everytime i save it, it doesn't work! After i redo it, it works. When i save it, it doesn't work again. Wt is my problem?
here are 2 screenshot
http://imageshack.us/photo/my-images/835/85650432.png/
http://imageshack.us/photo/my-images/534/20921486.png/

Offline

 

#2 2011-10-12 18:35:20

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: i got a problem

lees20h wrote:

I'm working on a school project, the pac-man.
i have make a +100 score when it eats the food. It's works, but everytime i save it, it doesn't work! After i redo it, it works. When i save it, it doesn't work again. Wt is my problem?
here are 2 screenshot
http://imageshack.us/photo/my-images/835/85650432.png/
http://imageshack.us/photo/my-images/534/20921486.png/

Let me think.  In the meanwhile, here are those URLs as pictures so everyone can see them more easily: 

http://img835.imageshack.us/img835/5268/85650432.png
http://img534.imageshack.us/img534/4397/20921486.png

Also, this belongs in All About Scratch, not Advanced Topics.


Is Sprite5 hidden?  Can we see its scripts?  Or, even better, can you upload the project and give us a link?

Last edited by Greenatic (2011-10-12 18:39:27)

Offline

 

#3 2011-10-12 18:46:19

integrated
Scratcher
Registered: 2009-08-13
Posts: 5

Re: i got a problem

Did you click the flag every time you open it? If you don't it might glitch.
<think[ about it.


You have just wasted time reading this  big_smile

Offline

 

#4 2011-10-12 19:30:13

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

Re: i got a problem

lees20h wrote:

I'm working on a school project, the pac-man.
i have make a +100 score when it eats the food. It's works, but everytime i save it, it doesn't work! After i redo it, it works. When i save it, it doesn't work again. Wt is my problem?
here are 2 screenshot
http://imageshack.us/photo/my-images/835/85650432.png/
http://imageshack.us/photo/my-images/534/20921486.png/

The problem here seems to be a bit weird, so listen to what i say carefully, first, you need to take out all of those scripts on Sprite20 of and replace them with:

<when green flag clicked>
<go to x sad  180 )y sad  -111
<show>
<forever if> <touching[ Sprite4
<hide>
<change{ score }by( 100
<broadcast[ +100
<wait until> <not> <touching[ Sprite4  >>
<end>
[/blocks]


Another thing it may be is, do you mean to make so when the Octopus touches the shrimp it runs this? The octopus is sprite5 the shark is Sprite4
if you want it to have the shark then use this:
<when green flag clicked>
<go to x sad  180 )y sad  -111
<show>
<forever if> <touching[ Sprite5
<hide>
<change{ score }by( 100
<broadcast[ +100
<wait until> <not> <touching[ Sprite5  >>
<end>

Last edited by Pecola1 (2011-10-12 19:31:04)


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

 

#5 2011-10-13 14:50:42

lees20h
New Scratcher
Registered: 2011-10-12
Posts: 2

Re: i got a problem

Pecola1 wrote:

lees20h wrote:

I'm working on a school project, the pac-man.
i have make a +100 score when it eats the food. It's works, but everytime i save it, it doesn't work! After i redo it, it works. When i save it, it doesn't work again. Wt is my problem?
here are 2 screenshot
http://imageshack.us/photo/my-images/835/85650432.png/
http://imageshack.us/photo/my-images/534/20921486.png/

The problem here seems to be a bit weird, so listen to what i say carefully, first, you need to take out all of those scripts on Sprite20 of and replace them with:

<when green flag clicked>
<go to x sad  180 )y sad  -111
<show>
<forever if> <touching[ Sprite4
<hide>
<change{ score }by( 100
<broadcast[ +100
<wait until> <not> <touching[ Sprite4  >>
<end>
[/blocks]


Another thing it may be is, do you mean to make so when the Octopus touches the shrimp it runs this? The octopus is sprite5 the shark is Sprite4
if you want it to have the shark then use this:
<when green flag clicked>
<go to x sad  180 )y sad  -111
<show>
<forever if> <touching[ Sprite5
<hide>
<change{ score }by( 100
<broadcast[ +100
<wait until> <not> <touching[ Sprite5  >>
<end>

That's really help me a lot. Thanks!!

Offline

 

Board footer