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

#1 2012-08-09 20:38:12

MekrexProductions
New Scratcher
Registered: 2012-07-07
Posts: 8

Falling Through/Slipping off of a Levitating Platform

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

 

#2 2012-08-09 21:02:07

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

Re: Falling Through/Slipping off of a Levitating Platform

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)
end
One 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!

Just saying, you forgot to add ([/scratchblock] plus an s at the end of block) to the end of your scripts.

Last edited by ErnieParke (2012-08-14 13:39:24)


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

Offline

 

#3 2012-08-13 08:15:48

MekrexProductions
New Scratcher
Registered: 2012-07-07
Posts: 8

Re: Falling Through/Slipping off of a Levitating Platform

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

 

#4 2012-08-13 09:50:37

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

Re: Falling Through/Slipping off of a Levitating Platform

Hmm…

Are you sure that start is being broadcasted?


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

Offline

 

#5 2012-08-14 13:13:03

MekrexProductions
New Scratcher
Registered: 2012-07-07
Posts: 8

Re: Falling Through/Slipping off of a Levitating Platform

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

 

#6 2012-08-14 13:30:46

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

Re: Falling Through/Slipping off of a Levitating Platform

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)


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

Offline

 

Board footer