Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make ice platforms?
- pixelperfect12
-
Scratcher
54 posts
How to make ice platforms?
So I've been working on a platformer for a while and most of the effect blocks are non-collidable. But since ice doesn't fall through things, I needed to make ice collidable, so I did so, along with the effect giver:
Link to game: https://scratch.mit.edu/projects/713745050/
if <touching color [#80ffff] ?> thenHowever the ice block still functions like an average platform. How do I make it so that ice is collidable and gives an ice effect?
set [ Friction v] to [1]
else
set [ Friction v] to [0.9]
end
Link to game: https://scratch.mit.edu/projects/713745050/
- pixelperfect12
-
Scratcher
54 posts
How to make ice platforms?
bump (wanna get this over with by 2023)
- mchen2010
-
Scratcher
40 posts
How to make ice platforms?
I check your code, and I cannot find where you multiplied (friction)*(VelocityX), so maybe that is causing a problem? It's prob. my fault, though. Tell me where to find it, and I'll debug from there. Thanks!
- pixelperfect12
-
Scratcher
54 posts
How to make ice platforms?
I check your code, and I cannot find where you multiplied (friction)*(VelocityX), so maybe that is causing a problem? It's prob. my fault, though. Tell me where to find it, and I'll debug from there. Thanks!There's a big chunk of code that says:
when I receive [gameloop v]You'll find it near the “move (steps)” definition.
forever
set [VelocityX v] to ((VelocityX) * (Friction)
...
- Thingied
-
Scratcher
1000+ posts
How to make ice platforms?
Move the “move” block all the way to the bottom like this:


- pixelperfect12
-
Scratcher
54 posts
How to make ice platforms?
Move the “move” block all the way to the bottom like this:That doesn't seem to work, as when I stand on an ice platform friction is still 0.9.
- Thingied
-
Scratcher
1000+ posts
How to make ice platforms?
I forgot some stuff I did :\Move the “move” block all the way to the bottom like this:That doesn't seem to work, as when I stand on an ice platform friction is still 0.9.
–snip–
Add a “set friction to 0.9” block to the top of the “move” custom block and set friction to 1 when touching ice during the collision check

- pixelperfect12
-
Scratcher
54 posts
How to make ice platforms?
Thanks, it worked! Topic closed.I forgot some stuff I did :\Move the “move” block all the way to the bottom like this:That doesn't seem to work, as when I stand on an ice platform friction is still 0.9.
–snip–
Add a “set friction to 0.9” block to the top of the “move” custom block and set friction to 1 when touching ice during the collision check
- Discussion Forums
- » Help with Scripts
-
» How to make ice platforms?