Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I script a platform you can jump onto from under but you can stand on?

Asked by 2 years ago

I'm making a 2d fighting game and was wondering how to make my player be able to jump onto from under it like on most fighting games but then stand on. A perfect example of this is project gaming on roblox. You can phase from the bottom but you can stand on it when your over it. I also have another question about the camera, how would i go about fitting all the palyers in the frame? Project gaming also has this implemented and I basically want to recreate the same effect where it zooms out when a player is going out of the camera frame.

2 answers

Log in to vote
0
Answered by 2 years ago

Maybe you can set collision off when the players head touches the part? and set collission back on when it isnt touching?

Ad
Log in to vote
0
Answered by
81mm 0
2 years ago

You could add a script where when you jump under it, it would detect the head and torso and turn can-colide off, and then set a wait() to the apex of the jump so it won't clip the legs,but this would effectively let you jump through it and then stand on it.

Answer this question