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

#1 2012-10-20 13:24:19

chriskneller
New Scratcher
Registered: 2012-09-15
Posts: 5

Teacher in Need of Help

Hi, I have a student who has worked exceptionally hard on his Scratch game but is becoming frustrated. I have tried to solve his problem but cannot see  in his scripts where it needs amending. He has created a Mario style game with Scroll x. He has used the velocity jumping. When he jumps and lands on a platform everything is fine, the sprite moves along the top of the platform but if the sprite jumps and doesn't quite make the top, it ends up moving through the middle of the platform.
Any ideas on how to help would be very much appreciated!

Offline

 

#2 2012-10-20 13:32:26

chriskneller
New Scratcher
Registered: 2012-09-15
Posts: 5

Re: Teacher in Need of Help

This is the link to his game if it helps!
http://scratch.mit.edu/projects/chriskneller/2847938

Offline

 

#3 2012-10-20 13:35:00

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Teacher in Need of Help

Hmm- it does not work at all for me...

EDIT- Oh WSDA keys

I can not do scrolling but the problem seems to lie in the if touching colours green and brown jump scripts. I thought the problem might be becuase there were two colours on the brown blocks it did not work but i tested that by using "touching ..." and it still does not work

Last edited by Willpower (2012-10-20 13:41:54)


http://i49.tinypic.com/e84kdj.png

Offline

 

#4 2012-10-20 13:42:49

chriskneller
New Scratcher
Registered: 2012-09-15
Posts: 5

Re: Teacher in Need of Help

Have just checked and for some reason online doesn't work but offline it does. Have uploaded it again :

http://scratch.mit.edu/projects/chriskneller/2847958

Keys A & D move Mario left/right and space to jump.

Offline

 

#5 2012-10-20 13:47:45

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Teacher in Need of Help

chriskneller wrote:

Have just checked and for some reason online doesn't work but offline it does. Have uploaded it again :

http://scratch.mit.edu/projects/chriskneller/2847958

Keys A & D move Mario left/right and space to jump.

I am afraid i don't have any ideas. However ErnieParke in the scripts workshop has an idea


http://i49.tinypic.com/e84kdj.png

Offline

 

#6 2012-10-20 14:09:19

A__B__3__T__E__S__T
Scratcher
Registered: 2010-05-29
Posts: 45

Re: Teacher in Need of Help

Offline

 

#7 2012-10-20 14:39:26

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Teacher in Need of Help

chriskneller wrote:

Hi, I have a student who has worked exceptionally hard on his Scratch game but is becoming frustrated. I have tried to solve his problem but cannot see  in his scripts where it needs amending. He has created a Mario style game with Scroll x. He has used the velocity jumping. When he jumps and lands on a platform everything is fine, the sprite moves along the top of the platform but if the sprite jumps and doesn't quite make the top, it ends up moving through the middle of the platform.
Any ideas on how to help would be very much appreciated!

By the way here is the fix:
colour all of the platform but the top a a different colour. 
Then replace the sensing you have with

<Touching color [top color] ?>
block and it will work fine.


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#8 2012-10-20 15:39:34

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Teacher in Need of Help

Martiscratch wrote:

chriskneller wrote:

Hi, I have a student who has worked exceptionally hard on his Scratch game but is becoming frustrated. I have tried to solve his problem but cannot see  in his scripts where it needs amending. He has created a Mario style game with Scroll x. He has used the velocity jumping. When he jumps and lands on a platform everything is fine, the sprite moves along the top of the platform but if the sprite jumps and doesn't quite make the top, it ends up moving through the middle of the platform.
Any ideas on how to help would be very much appreciated!

By the way here is the fix:
colour all of the platform but the top a a different colour. 
Then replace the sensing you have with

<Touching color [top color] ?>
block and it will work fine.

That's not the problem. The problem is that you can have platforms sticking through you. Anyway, here's what I came up with:
(link to project)

Last edited by ErnieParke (2012-10-20 15:39:55)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer