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

#1 2011-01-16 09:17:48

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Level Repeat- NEED URGENT HELP

Basically, I've been making a version of Pac-man. Most things work fine except the third level. Basically, to move to the next level, you have to collect 28 dot things. This works for the first level. Then to move to the third level, you need to get 29 targets. However, the script is set so that when Targets Eaten is 28, level two starts. This means that when the player tries to get 29 targets to move to level 3, level 2 just repeats itself. Is there a way to fix this? I need to know as soon as possible, the project has to be finished by 7:30am tommorow...

Offline

 

#2 2011-01-16 09:42:40

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: Level Repeat- NEED URGENT HELP

Does "targets eaten" reset to 0 after a level is beaten?

http://i54.tinypic.com/eu2duh.png


http://i.imgur.com/8LX1NrV.png

Offline

 

#3 2011-01-16 09:52:40

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Re: Level Repeat- NEED URGENT HELP

Yes, it does.

Offline

 

#4 2011-01-16 10:17:10

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Re: Level Repeat- NEED URGENT HELP

Basically, what I need is a script that broadcasts level 3 when targets eaten= 29 AND level 2 has already been broadcast. Is there a way to do this?

Offline

 

#5 2011-01-16 11:16:37

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Re: Level Repeat- NEED URGENT HELP

Thank you, that script did the trick! ....But now the ghosts have stopped working. Help anyone?

Ghost 1 Script-http://i52.tinypic.com/23rqqm8.gif
Ghost 2 script-http://i51.tinypic.com/anhj00.gif

Offline

 

#6 2011-01-17 01:39:21

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

Re: Level Repeat- NEED URGENT HELP

First, try condensing the [blocks]<when green flag clicked>[/blocks] scripts into a single script. It's easier to understand what's going on when you don't have everything happening at the same time.


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

Offline

 

#7 2011-01-17 07:26:36

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Level Repeat- NEED URGENT HELP

I don't see anything particularly wrong with those scripts.  hmm  What happens to the ghosts when you advance to the next level?


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer