Discuss Scratch

EpicScratcherGuy
Scratcher
4 posts

Griffpatch Platformer tutorial: Slope

I heard many people complaining about this not working (i was one of those). Does anyone know why this happens (check it out on my project, go into see inside and dig downwards, then walk into a wall: https://scratch.mit.edu/projects/113519383/)
jokebookservice1
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

our walk script has correct slope detection, but not your touching ground script, which doesn't have a timeout of iterations
EpicScratcherGuy
Scratcher
4 posts

Griffpatch Platformer tutorial: Slope

Dude wrote:

our walk script has correct slope detection, but not your touching ground script, which doesn't have a timeout of iterations
Where is your walk script? in which project?
Check out https://scratch.mit.edu/projects/67727504/ slide 13 to see where i got this from.
jokebookservice1
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

Sorry, typo. I meant to say “your walk script”. You have custom block named walk, and it does good slope detection. But your “touching ground” script doesn't. Let me remix it for you
jokebookservice1
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

Too difficult and I'm too sleepy; I give up
EpicScratcherGuy
Scratcher
4 posts

Griffpatch Platformer tutorial: Slope

Lol, Please try do it when you can as I need it soon. Thanks.
mstone326
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

Part of your problem I found was that the slope parameter was never being met. It never got to 3. It would get to 1 but he'd already have jumped up on the block. So I lowered the parameter to slope > .1 so that Scratch had time to calculate his was touching and I also ran that block to run without screen refresh.

Also, added a hitbox. Hope this helps. Good luck

https://scratch.mit.edu/projects/113615488/
drmcw
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

If you copy the tutorial it works fine.
mstone326
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

drmcw wrote:

If you copy the tutorial it works fine.

Yup. I just looked at the tutorial and set slope back to 3 for this project and it worked. He didn't have that block running without screen refresh.
drmcw
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

and splitting the main loop into 2 doesn't help.
A-KouZ1
Scratcher
100+ posts

Griffpatch Platformer tutorial: Slope

GRIFFPATCH USING MATH FOR SLOPING…

drmcw
Scratcher
1000+ posts

Griffpatch Platformer tutorial: Slope

A-KouZ1 wrote:

GRIFFPATCH USING MATH FOR SLOPING…

That really has nothing to do with it.
KellyClan2016
Scratcher
100+ posts

Griffpatch Platformer tutorial: Slope

drmcw wrote:

If you copy the tutorial it works fine.
i like to do my own stuff. so i follow the tutorial!
EpicScratcherGuy
Scratcher
4 posts

Griffpatch Platformer tutorial: Slope

Yeah. MSTONE fixed it for me: ask him how to do it (THANKS, mstone!!!!!!!!!!!!)
Xx_Shadowy_xX
New Scratcher
4 posts

Griffpatch Platformer tutorial: Slope

Rly? This was 4 years ago now. Idk what you mean
4IM33_M4RC0
Scratcher
1 post

Griffpatch Platformer tutorial: Slope

How to fix slopes????

Powered by DjangoBB