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

#1 2012-05-20 02:09:09

alfiaw
Scratcher
Registered: 2011-01-11
Posts: 51

Level 3 of my maze - unresponsive sprites :(

Hi there, Scratchers,

I'm having trouble with my maze project here.  The sprites won't work in the 3rd level of the maze.  The key, cheese puffs and level up house just don't work on level 3 even though the same code works for them on levels 1 and 2.  Any advice appreciated.  Thanks.

Alfia


Annie the Dog says, Check out my The EVOLUTION OF THE TAPIR! (Tapirs are almost as cute as me.)
http://www.plumsite.com/images/annie1.jpg

Offline

 

#2 2012-05-20 08:13:01

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Level 3 of my maze - unresponsive sprites :(

After ages of being really confused, I've finally found the glitch. In the octobaby's scripts, you've included a script:

when I receive [level 3 v]
hide
stop all
This disables the scripts of every sprite in the project, having the same effect as if you press the red stop sign.
To fix this, all you have to do is take out the "Stop All" block.

I'm assuming that this is still a game in the process of being made, as I've found several other glitches such as the ball being able to go through walls, a delayed reaction with the key and the cheese puffs and nothing happening when you run out of health. If you have any other problems, post them here and I'll fix them for you  wink

I will give you one piece of advice. Delete all the "when up arrow pressed" "when down arrow pressed" scripts and add this instead.
when gf clicked
forever
if <key [up arrow v] pressed?>
change y by [10]
end
if <key [down arrow v] pressed?>
change y by [-10]
end
if <key [left arrow v] pressed?>
change x by [-10]
end
if <key [right arrow v] pressed?>
change x by [10]
end
this gives MUCH smoother controls.

Last edited by PhirripSyrrip (2012-05-20 08:13:36)


http://i46.tinypic.com/ao03lk.png

Offline

 

#3 2012-05-31 23:42:45

alfiaw
Scratcher
Registered: 2011-01-11
Posts: 51

Re: Level 3 of my maze - unresponsive sprites :(

Hi Phirrip,

Thanks so much!  Your advice was really helpful.  I amended the movement code as per your suggestion above, and made it so that "something happens" when you run out of health - and when you win.  I still need to get the walls to repel the ball (haven't even started working on that yet), and fix the delay on the key and cheese puffs.  I'd also like to add more of an obstacle/boss at the last level, but that would be last.  The latest version is here.  Thanks again for your help.

Alfia


Annie the Dog says, Check out my The EVOLUTION OF THE TAPIR! (Tapirs are almost as cute as me.)
http://www.plumsite.com/images/annie1.jpg

Offline

 

#4 2012-05-31 23:58:14

alfiaw
Scratcher
Registered: 2011-01-11
Posts: 51

Re: Level 3 of my maze - unresponsive sprites :(

Here's a question: My health and key counters were showing up where I placed them originally and then after I uploaded it they were both showing up in one location and the Health counter was obscured by the Key counter! Yikes! Also - I tried to stop the lose screen from coming up at the end by setting the health to 50000 but it doesn't seem to have worked.  :-(


Annie the Dog says, Check out my The EVOLUTION OF THE TAPIR! (Tapirs are almost as cute as me.)
http://www.plumsite.com/images/annie1.jpg

Offline

 

#5 2012-06-01 01:59:19

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Level 3 of my maze - unresponsive sprites :(

To make sure variable upload the way you want them, large readout, slider, or even regular, but in a different location, or possibly with the color changed, they have to be showing the exact way you want them when you upload the project. Otherwise, they will go to the default top left corner of the screen. If you don't want the variable showing all the time, use the,

when gf clicked
hide variable [variable v]
and to show them,
when I receive [something to show variable v]
show variable [variable v]
That will fix that issue.  smile


Why are the secret organizations getting all the attention?  mad

Offline

 

#6 2012-06-01 09:09:05

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Level 3 of my maze - unresponsive sprites :(


http://i46.tinypic.com/ao03lk.png

Offline

 

#7 2012-06-01 12:34:44

alfiaw
Scratcher
Registered: 2011-01-11
Posts: 51

Re: Level 3 of my maze - unresponsive sprites :(

Dear Mr. Syrrip,

Thank you for your awesomeness.  I have studied your wall-defying code (move in opposite direction of arrow that caused the bump - makes sense) including the diabolical Scream variable. It all serves to bring greater sense to the mad, mad world of Transylvanian mazes. I will work to fix some of the other glitches. Glad you like the music! It's "Numa Numa" by Romanian pop sensation O-Zone, in case you didn't know. :-)

Your projects are really imaginative and wonderful by the way.

Mrs. W. (Alfia)


Annie the Dog says, Check out my The EVOLUTION OF THE TAPIR! (Tapirs are almost as cute as me.)
http://www.plumsite.com/images/annie1.jpg

Offline

 

Board footer