Discuss Scratch

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
if <touching [Level v] ?> then 
change y by (1)
end
8 times then the last one as
if <touching [Level v]> then
change y by (-8)
end
and the 8 pixel repeat (
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.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

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
vdiu
Scratcher
100+ posts

Platformer Horizontal Collision

TheUltimateHoodie wrote:

Can you share your horizontal collision script?
I don't have a horizontal collision script, I need one that is compatible with wall jumping.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

TheUltimateHoodie
Scratcher
1000+ posts

Platformer Horizontal Collision

vdiu wrote:

TheUltimateHoodie wrote:

Can you share your horizontal collision script?
I don't have a horizontal collision script, I need one that is compatible with wall jumping.
Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?

can somebody give me something to put in my signature
vdiu
Scratcher
100+ posts

Platformer Horizontal Collision

TheUltimateHoodie wrote:

vdiu wrote:

TheUltimateHoodie wrote:

Can you share your horizontal collision script?
I don't have a horizontal collision script, I need one that is compatible with wall jumping.
Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?
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.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

vdiu
Scratcher
100+ posts

Platformer Horizontal Collision

deck26 wrote:

Have you tried @griffpatch_tutor's platformer tutorial? I don't think he uses the 8 pixel method which I've never liked.
Yes, but there is a problem with griffpatch's tutorial for me. See this post.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

TheUltimateHoodie
Scratcher
1000+ posts

Platformer Horizontal Collision

vdiu wrote:

TheUltimateHoodie wrote:

vdiu wrote:

TheUltimateHoodie wrote:

Can you share your horizontal collision script?
I don't have a horizontal collision script, I need one that is compatible with wall jumping.
Ok. Do you mean generic platformer wall jumping or griffpatch tutorial wall jumping?
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.
As in an auto jump to the next wall?

Could something like this be possible?

can somebody give me something to put in my signature
vdiu
Scratcher
100+ posts

Platformer Horizontal Collision

TheUltimateHoodie wrote:

-snip-
As in an auto jump to the next wall?
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.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

TheUltimateHoodie
Scratcher
1000+ posts

Platformer Horizontal Collision

vdiu wrote:

TheUltimateHoodie wrote:

-snip-
As in an auto jump to the next wall?
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.
And what happens when you don't hit jump? Do you wall slide?

can somebody give me something to put in my signature
vdiu
Scratcher
100+ posts

Platformer Horizontal Collision

TheUltimateHoodie wrote:

vdiu wrote:

TheUltimateHoodie wrote:

-snip-
As in an auto jump to the next wall?
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.
And what happens when you don't hit jump? Do you wall slide?
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.


Wikian - Scratcher - All-Rounder - Math lover - Bookworm

Join my MAP!
With great power, comes great responsibility

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

vdiu wrote:

TheUltimateHoodie wrote:

vdiu wrote:

TheUltimateHoodie wrote:

-snip-
As in an auto jump to the next wall?
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.
And what happens when you don't hit jump? Do you wall slide?
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.
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?

can somebody give me something to put in my signature

Powered by DjangoBB