Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a sprite slide down a slope?
- AudstarDiamond
-
32 posts
How to make a sprite slide down a slope?
I want to let this sprite be able to slide down a slope, but can't figure out how this would be done.
- drmcw
-
1000+ posts
How to make a sprite slide down a slope?
Depends what you mean by slide. Most games will cheat and just glide a sprite along a path otherwise you're talking about physics simulations and then how far down the modelling route you want to take it. It'll get complicated pretty quickly. e.g https://scratch.mit.edu/projects/140751896/
- lolad
-
54 posts
How to make a sprite slide down a slope?
Which way does the slope slide?
If right, do something like:
or left do something like:
Or, just do -
You could have a sprite at the end called endSlope and do:
Like drmcw said
Hope you found this helpful
If right, do something like:
or left do something like:
Or, just do -
You could have a sprite at the end called endSlope and do:
replacing 0 and 0 with the end coordinates.
Like drmcw said
“Most games will cheat and just glide a sprite along a path”
Hope you found this helpful

- AshFyre
-
1 post
How to make a sprite slide down a slope?
I'm trying to do this as well… i can't figure it out!!
- hSaif111
-
2 posts
How to make a sprite slide down a slope?
guys check out my first scratch two games.
- deck26
-
1000+ posts
How to make a sprite slide down a slope?
Please don't advertise here - use the Show and Tell forum. guys check out my first scratch two games.
- gtoal
-
1000+ posts
How to make a sprite slide down a slope?
1) use the usual formula for gravity
2) adjust the y component by sin or cos of the angle of the slope. determine the x from the y is the easiest way
2) adjust the y component by sin or cos of the angle of the slope. determine the x from the y is the easiest way
- AudstarDiamond
-
32 posts
How to make a sprite slide down a slope?
Thanks for all of the suggestions. I'll try them out and see how I go.
- toonizz
-
9 posts
How to make a sprite slide down a slope?
I know a very simple way of making a sprite slide down a slope! First of all, you wanna click on the sprite you wanna make slide down the slope. Next, you wanna grab
Last edited by toonizz (Nov. 28, 2017 17:20:15)
- deck26
-
1000+ posts
How to make a sprite slide down a slope?
I think they mean they want it to detect the slope and slide according to how the slope is. What you posted makes a sprtie move in a particular direction and if you add a slope that matches that movement it will give the effect of the sprite sliding. But change the slope in any way and it will no longer work so not really what's required. I know a very simple way of making a sprite slide down a slope! First of all, you wanna click on the sprite you wanna make slide down the slope. Next, you wanna grab
…. snip ….
But you did say it was a simple way.
Last edited by deck26 (Nov. 28, 2017 17:25:42)
- deck26
-
1000+ posts
How to make a sprite slide down a slope?
Please don't blockspam. If you want to experiment with Scratchblocks there's a sticky topic for that.
- ScriptedAwesome
-
1000+ posts
How to make a sprite slide down a slope?
Eh,I would try modifying Griffpatch's platformer's Touching Ground <>
- menitoine
-
28 posts
How to make a sprite slide down a slope?
but how to create a slope with a scrolling ( for my project cat bros)
- codeman1044
-
1000+ posts
How to make a sprite slide down a slope?
Please do not necropost. This topic is old and does not need any additional posts. If you want a question to be answered, create your own topic dedicated to the question. but how to create a slope with a scrolling ( for my project cat bros)
- Discussion Forums
- » Help with Scripts
-
» How to make a sprite slide down a slope?