Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Platformer Horizontal Collision
- vdiu
- Scratcher
100+ posts
Platformer Horizontal Collision
I'm making a platformer, but I'm not able to get the horizontal collision to be compatible with wall jumping. I've tried some tutorials on how to make collision and wall jumping, but they're not compatible with my vertical collision script, due to it being a ninja jump (ninja jumps make them do a frontflip). So far, I've tried the 8 pixel if stack (stacking 8 ifs containing
methods but both of them are glitching out.
if <touching [Level v] ?> then8 times then the last one as
change y by (1)
end
if <touching [Level v]> thenand the 8 pixel repeat (
change y by (-8)
end
repeat (8))
if <touching [Level v] ?> then
change y by (1)
end
change y by (-8)
end
methods but both of them are glitching out.
- deck26
- Scratcher
1000+ posts
Platformer Horizontal Collision
Have you tried @griffpatch_tutor's platformer tutorial? I don't think he uses the 8 pixel method which I've never liked.
- TheUltimateHoodie
- Scratcher
1000+ posts
Platformer Horizontal Collision
Can you share your horizontal collision script?
can somebody give me something to put in my signature
- TheUltimateHoodie
- Scratcher
1000+ posts
Platformer Horizontal Collision
Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?I don't have a horizontal collision script, I need one that is compatible with wall jumping. Can you share your horizontal collision script?
can somebody give me something to put in my signature
- vdiu
- Scratcher
100+ posts
Platformer Horizontal Collision
A mix between the two- when you hit the wall, instead of staying on the wall, you bounce on to the other wall. Generic platformers have you just bounce against the wall and then hit it again, and in grffpatch's you have to actively jump from wall to wall. Griffpatch's collision doesn't allow you to leave the wall when colliding, which is why I didn't use it.Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?I don't have a horizontal collision script, I need one that is compatible with wall jumping. Can you share your horizontal collision script?
- TheUltimateHoodie
- Scratcher
1000+ posts
Platformer Horizontal Collision
As in an auto jump to the next wall?A mix between the two- when you hit the wall, instead of staying on the wall, you bounce on to the other wall. Generic platformers have you just bounce against the wall and then hit it again, and in grffpatch's you have to actively jump from wall to wall. Griffpatch's collision doesn't allow you to leave the wall when colliding, which is why I didn't use it.Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?I don't have a horizontal collision script, I need one that is compatible with wall jumping. Can you share your horizontal collision script?
Could something like this be possible?
can somebody give me something to put in my signature
- vdiu
- Scratcher
100+ posts
Platformer Horizontal Collision
No, it's more like when you hit the wall you bounce of in the opposite direction and then you have to hit the left arrow with jump to hit the other wall. -snip-
As in an auto jump to the next wall?
- TheUltimateHoodie
- Scratcher
1000+ posts
Platformer Horizontal Collision
And what happens when you don't hit jump? Do you wall slide?No, it's more like when you hit the wall you bounce of in the opposite direction and then you have to hit the left arrow with jump to hit the other wall. -snip-
As in an auto jump to the next wall?
can somebody give me something to put in my signature
- vdiu
- Scratcher
100+ posts
Platformer Horizontal Collision
Yeah, you slide down the wall. It's pretty similar to griffpatch's with the main difference that you bounce on to the other wall.And what happens when you don't hit jump? Do you wall slide?No, it's more like when you hit the wall you bounce of in the opposite direction and then you have to hit the left arrow with jump to hit the other wall. -snip-
As in an auto jump to the next wall?
- uncreative_name2
- Scratcher
4 posts
Platformer Horizontal Collision
say []
stop all sounds
set instrument to ( v)
change tempo by ()
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
rest for () beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
stop all sounds
stop all sounds
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
rest for () beats
rest for () beats
set instrument to ( v)
set instrument to ( v)
set volume to () %
set volume to (volume)(volume) %
set volume to () %
set volume to () %
set instrument to ( v)
set instrument to ( v)
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
stop all sounds
stop all sounds
stop all sounds
stop all sounds
stop all sounds
stop all sounds
rest for () beats
rest for () beats
set instrument to ( v)
set instrument to ( v)
change volume by ()
change volume by ()
set volume to () %
set volume to () %
change volume by ()
change volume by ()
set instrument to ( v)
play note ( v) for (0.5) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
stop all sounds
stop all sounds
play sound [ v] until done
play sound [ v] until done
stop all sounds
stop all sounds
rest for () beats
rest for () beats
change volume by ()
change volume by ()
set volume to () %
set volume to () %
set volume to () %
set volume to () %
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
set instrument to ( v)
change volume by ()
set volume to () %
set volume to () %
set volume to () %
set volume to () %
set instrument to ( v)
set instrument to ( v)
rest for () beats
rest for () beats
stop all sounds
stop all sounds
play sound [ v] until done
play sound [ v] until done
stop all sounds
stop all sounds
rest for () beats
rest for () beats
set instrument to ( v)
set instrument to ( v)
set volume to () %
set volume to () %
set volume to () %
set volume to () %
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
stop all sounds
stop all sounds
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
rest for () beats
rest for () beats
change volume by ()
change volume by (volume)(volume)(volume)(volume)
set volume to () %
set volume to () %
set instrument to ( v)
set instrument to ( v)
rest for () beats
rest for () beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
rest for () beats
rest for () beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
change volume by ()
change volume by ()
set volume to () %
set volume to () %
change volume by ()
change volume by ()
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
rest for () beats
rest for () beats
set instrument to ( v)
set instrument to ( v)
set volume to () %
set volume to () %
set volume to () %
set volume to () %
set instrument to ( v)
set instrument to ( v)
rest for () beats
rest for () beats
stop all sounds
stop all sounds
stop all sounds
stop all sounds
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
change volume by ()
change volume by ()
set instrument to ( v)
set instrument to ( v)
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play sound [ v] until done
play drum ( v) for (0.25) beats
play drum ( v) for (0.25) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
play note ( v) for (0.5) beats
rest for () beats
rest for () beats
- TheUltimateHoodie
- Scratcher
1000+ posts
Platformer Horizontal Collision
So it's like griffpatch's but to wall jump you don't just have to wall slide and press up arrow you have to press left/right arrow as well?Yeah, you slide down the wall. It's pretty similar to griffpatch's with the main difference that you bounce on to the other wall.And what happens when you don't hit jump? Do you wall slide?No, it's more like when you hit the wall you bounce of in the opposite direction and then you have to hit the left arrow with jump to hit the other wall. -snip-
As in an auto jump to the next wall?
can somebody give me something to put in my signature
- Discussion Forums
- » Help with Scripts
- » Platformer Horizontal Collision