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

#1 2008-12-24 05:18:40

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Mario Game - Need Help

I need help on my Mario Game: http://scratch.mit.edu/projects/Dan_Test/337419

I have two problems:
-First when you press the green flag, sometimes the Goomba automatically starts under Mario.
-Second, sometimes the ? boxes don't change when you hit them.

Any help would be great.


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#2 2008-12-24 10:59:29

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Mario Game - Need Help

Dan01 wrote:

I need help on my Mario Game: http://scratch.mit.edu/projects/Dan_Test/337419

I have two problems:
-First when you press the green flag, sometimes the Goomba automatically starts under Mario.
-Second, sometimes the ? boxes don't change when you hit them.

Any help would be great.

The thing that I did for the sensing of the coin block was changing the top test y position to:
<set y to( (( <{ gravity of Mario }> <+> 3 ))
I think this gave it the little extra height it needed. I could not figure out the Goomba problem however.

Offline

 

#3 2008-12-24 11:27:19

thegamemaker5000
Scratcher
Registered: 2008-09-06
Posts: 25

Re: Mario Game - Need Help

It works fine to me...

Offline

 

#4 2008-12-24 11:31:22

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Mario Game - Need Help

shadow_7283 wrote:

Dan01 wrote:

I need help on my Mario Game: http://scratch.mit.edu/projects/Dan_Test/337419

I have two problems:
-First when you press the green flag, sometimes the Goomba automatically starts under Mario.
-Second, sometimes the ? boxes don't change when you hit them.

Any help would be great.

The thing that I did for the sensing of the coin block was changing the top test y position to:
<set y to( (( <{ gravity of Mario }> <+> 3 ))
I think this gave it the little extra height it needed. I could not figure out the Goomba problem however.

Work's better, but it still isn't perfect - sometimes it works, sometimes it doens't =\ Anyway, thanks for the help.


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#5 2008-12-24 15:41:14

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Mario Game - Need Help

Still need help to make this perfect..


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#6 2008-12-24 16:43:48

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Mario Game - Need Help

Dan01 wrote:

Still need help to make this perfect..

I'm uploading a perfect version now!  big_smile  You just needed to move the death variable, location delete, and location add (in the goomba) under the script that set the position of the goomba. That fixed the goomba's problems and there were random waits lying around in the box's scripts which I removed. Hope that helps.


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#7 2008-12-24 19:34:36

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Mario Game - Need Help

demosthenes wrote:

Dan01 wrote:

Still need help to make this perfect..

I'm uploading a perfect version now!  big_smile  You just needed to move the death variable, location delete, and location add (in the goomba) under the script that set the position of the goomba. That fixed the goomba's problems and there were random waits lying around in the box's scripts which I removed. Hope that helps.

Your solution was better than mine, but I looked at it and the "?" blocks still won't work. Hmmm . . .

Offline

 

#8 2008-12-24 19:51:57

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Mario Game - Need Help

You're right, I managed to make a final version that works!


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

Board footer