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
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: 

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
Did you click the flag every time you open it? If you don't it might glitch.
<think[ about it.
Offline
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
180 )y
-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
180 )y
-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)
Offline
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 x180 )y
-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 x180 )y
-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