Hi, I'm new here just decided to join the community here in Scratch.
I also have a question, I'm doing a project for my school and I can't get my cat to jump on the yellow platform that glides up and down that i made which is a sprite 2. Thing is i can keep on pressing "spacebar" to jump on the moving up and down yellow platform but it won't stay on it every time i let go of it.
Here's an image of my problem.
Would you happen to know any coding for it?
I'll keep on looking on other threads that has this type of question.
Thanks.
Last edited by ScratchUserX (2010-02-08 20:03:40)
Offline
Okay, I went over your script and made a new one based on it. I simplified a few things - you can use the [go to x: [0] y: [0]] block instead of setting the X and Y seperately. And the fifth if statement does nothing, so I got rid of it. Anyway, here's the script:
Is that all right? Oh, for the <touching color [ ]> block, the yellow is for the moving platform and the black is for the ground.
With the current script you can't move to the left or right while jumping... if you seperate the jumping part and make it a seperate script, that's fixed.
Any questions?
Last edited by Jonathanpb (2010-02-09 00:10:45)
Offline
Thanks for the reply, but when I just hit the flag the cat just falls off down. without me even doing anything.
What i am trying to do is to make the cat stay on the moving up and down yellow platform so i can get up top and touch the flag.
Though i appreciate for the first 2 blue motions you gave me, That helped.
Last edited by ScratchUserX (2010-02-09 09:53:03)
Offline
Jonathanpb wrote:
Okay, I went over your script and made a new one based on it. I simplified a few things - you can use the [go to x: [0] y: [0]] block instead of setting the X and Y seperately. And the fifth if statement does nothing, so I got rid of it. Anyway, here's the script:
http://img237.imageshack.us/img237/9420 … script.png
Is that all right? Oh, for the <touching color [ ]> block, the yellow is for the moving platform and the black is for the ground.
With the current script you can't move to the left or right while jumping... if you seperate the jumping part and make it a seperate script, that's fixed.
Any questions?
The "and" should be a "or".
Offline