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
This is the link to his game if it helps!
http://scratch.mit.edu/projects/chriskneller/2847938
Offline
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)
Offline
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
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
Offline
http://scratch.mit.edu/projects/A__B__3 … _T/2848025
Hope this helps!
Offline
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.
Offline
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)
Offline