Hello, I'm having trouble with my levitating platforms. Every time I'm making a levitating platform goes up the playable character will fall right through instead of staying on it, and so I keep having to press the jump button to get caught up with it.
Here is the script for the platform going up. Every time the levitating platform moves left or right the character will stay on, but the character will slip off.
[scratchblocks]
when gf clicked
hide
go to x: [72] y: (-56)
forever
glide 3 secs to x: (72) y: (56)
glide 3 secs to x: (72) y: (-56)
end
Here is the script for the platform going left and right.
[scratchblocks]
when gf clicked
hide
go to x: (-72) y: (56)
forever
glide 3 secs to x: (-72) y: (56)
glide 3 secs to x: (72) y: (56)
end
Here is the script for the character to not fall through the floor.
[scratchblock]
when I receive [start v]
forever
repeat until <color [grey] is touching [green] ?>
change y by (-5)
end
Oh yes I forgot to mention, the levitating platforms do have the color green.
Offline
Scratch seems to keep on glitching when I quote you. Anyhow, here's my post:
Anyway, aren't you supposed to use this script?
when I receive [start v] forever repeat until <not <color [grey] is touching [green] ?>> change y by (5) endOne problem I saw with your previous script is that you made your character change y by -5 which is what probably caused it to fall throught the platform. Just change -5 to 5 and you should be fine!
Last edited by ErnieParke (2012-08-14 13:39:24)
Offline
It still didn't work. I forgot to mention this but the floor the game character walks on is the same color as the levitating platform....green.
Offline
Hmm…
Are you sure that start is being broadcasted?
Offline
Yes, and when I changed the negative 5 to a positive 5 in my script, it made my character float up right when I started playing the game.
Offline
Just to make sure, did you add < not ( )> into your script?
If your project still isn't working, then I'll need to look at a copy of your project.
Last edited by ErnieParke (2012-08-14 13:46:42)
Offline