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

#1 2007-07-25 22:38:11

apwhitelaw
Scratcher
Registered: 2007-07-24
Posts: 4

Changing levels does not work?

Well, I am using the friction ball, in the Things folder, and I am trying to make it so if you get to the right spot you go to the next level. If you touch walls you lose. So, there is a pinkish square that you have to get to. So, your the red ball getting to the pink....so here is what I put:(THIS IS FOR THE BACKGROUND/STAGE)

When [Green Flag] clicked
Switch to Background: background 1
wait 15 secs
switch to background: background 2
forever if: color [red] is over [pink]
  switch to background: background 3

Just so you know, the wait 15 secs is for something that will be shown later. Then it goes to background 2 because that is the first level, that is when the ball and finish pieces appear(they have wait 15 secs too). So I get the ball to the finish and nothing happens. When i go to background, that script that it up there is outlined in red not white....and so it doesn't go to the next level(background 3).

How do I fix this? Is there a different way to make it go to the next level?(I looked at the PacMan that is already on there, and it does the if [color] is over [color], also...

Thanks in advance!

Offline

 

#2 2007-07-25 22:55:03

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Changing levels does not work?

I think it doesn't work because since the blocks are on the stage the forever if: color [red] is over [pink] block will only activate if a red colour touches a pink colour that is part of the stage so the ball has to touch a pink that is part of the background. If thats not the problem just upload it and ill take a look.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-07-26 02:32:29

apwhitelaw
Scratcher
Registered: 2007-07-24
Posts: 4

Re: Changing levels does not work?

Well I made the pink ending spot part of the background, and it just moves the ball to the bottom right part of the pink square(which is kinda what happened when it was a sprite an not part of the background) When the ball touches the end, the ball is supposed to go to certain X, Y coordinates, and the background should change, but it doesn't...

So here it is, tell me if you can find out what is wrong..

http://scratch.mit.edu/projects/apwhitelaw/24711

Offline

 

#4 2007-08-11 08:14:13

Spazo9
Scratcher
Registered: 2007-07-13
Posts: 14

Re: Changing levels does not work?

i hope this helps i changed half the game no need to thank me and if there is a glitch tell me because i am half aslleep this is it http://scratch.mit.edu/projects/Spazo9/28405

Offline

 

Board footer