Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Make Sprite stick and move along edges of platform
- lydialeowyl
- New to Scratch
3 posts
Make Sprite stick and move along edges of platform
Hi Guys,
I'm currently doing a game where 2 monster sprites have different attributes. One is able to jump and move and the other is able to stick to walls. However, I can't seem to move the ball monster that is supposed to stick to the walls.. Any help will be greatly appreciated!
Here is my project:
https://scratch.mit.edu/projects/205970335/
I'm currently doing a game where 2 monster sprites have different attributes. One is able to jump and move and the other is able to stick to walls. However, I can't seem to move the ball monster that is supposed to stick to the walls.. Any help will be greatly appreciated!
Here is my project:
https://scratch.mit.edu/projects/205970335/
- Atusiff
- Scratcher
100+ posts
Make Sprite stick and move along edges of platform
The
change x by (3)and
change x by (-3)cancel each other out.
Last edited by Atusiff (Feb. 24, 2018 13:37:23)
hi! i'm atusiff – have a great day!
- lydialeowyl
- New to Scratch
3 posts
Make Sprite stick and move along edges of platform
hey thank u.. even if i take them out, i cant seem to move the sprite..
Is there a way I can set boundaries for the sprite to move within? (eg. I only want the ball to move around each platform only)
Is there a way I can set boundaries for the sprite to move within? (eg. I only want the ball to move around each platform only)
- Mittensbrother
- Scratcher
100+ posts
Make Sprite stick and move along edges of platform
You could try putting a border of color around your platforms and add then use an ‘if <touching border color?>’ block to limit the movement of the ball.
- lydialeowyl
- New to Scratch
3 posts
Make Sprite stick and move along edges of platform
Hey
Thanks for you help!
Yeah I am doing that now however when I move out of range, the sprite gets stuck there and I can't continue the game. Is there a way to make it move within the target range (aka the edge) that I want? Like maybe if it gets out of range it'll bounce back or something.. You could try putting a border of color around your platforms and add then use an ‘if <touching border color?>’ block to limit the movement of the ball.
Thanks for you help!
Last edited by lydialeowyl (Feb. 24, 2018 14:56:14)
- doanjude
- Scratcher
5 posts
Make Sprite stick and move along edges of platform
coat the borders with a color, like vertical brown, and horizontal green
- Discussion Forums
- » Help with Scripts
- » Make Sprite stick and move along edges of platform