I would like to know how to jump onto a platform from under it in UE4? Is there a sprite option or can I change the blueprint to change the collision of a Box?
Maybe theres a way for objects to have no collision when the player is below them, but when above, collision is reassigned? There is probably a better, more efficient way to do it. I went and watched a panel on creating 2d games with Unreal 4 back in April at ECGC. It was interesting, but it still seems like its really still in its infancy and alot of basic stuff (and documentation, and tutorials on more complex stuff) just arent there still. Its great for 2d platformers but other games, say like a pokemon type view, is still just not there (requiring different depths). Unfortunately I dont think we went over jump through platforms during the panel.
Personally I use Gamemaker, which is insanely simple and easy (also sometimes a bit inefficient though) and the way I did jump through platforms on a platformer was to check and see if there was collision above the player at a certain point, and allow him to jump through it by not making it solid. When hes coming back down it checks for collision below him and makes it solid, thus landing him above.
Hello, i got an answer to this problem on another forum, they said the following, ill give it a try some time soon, got too much work on at the moment but it seems pretty obvious now
What you are asking can range between very simple and very complicated depending on how you want to implement it in your game. I will try to give you some pointers on where to start and hopefully you can pick up from there and expand it to better suit your needs.
As you have guessed (simplest method)the way to go is to disable collision for the tile you want the player to be able to jump through. You create a bp that has that tile inside it and you add a box collision a little bigger than the tile itself. then when the player touches that collision box you disable the bp's collision and when he exits you re enable it.
Things to consider: make it only work when the player is ascending (tip:get his velocity) to avoid funky situations.
Experiment with the collision box size to make it feel more "natural". And last but not least you need to create a safe zone so that the bp will not re enable collisions as long as the player is inside the tile , otherwise he will get stuck.
I hope that the above information can get you started. Good luck with your game!
Replies
www.youtube.com/watch?v=qWUEkTd2Xu8#t=4406
[ame="http://www.youtube.com/watch?v=RDpVn9dcbSs"]www.youtube.com/watch?v=RDpVn9dcbSs[/ame]
Is there a sprite option?
Can I change the blueprint to change the collision of a Box?
How is this done in Unity/Construct?
Personally I use Gamemaker, which is insanely simple and easy (also sometimes a bit inefficient though) and the way I did jump through platforms on a platformer was to check and see if there was collision above the player at a certain point, and allow him to jump through it by not making it solid. When hes coming back down it checks for collision below him and makes it solid, thus landing him above.
What you are asking can range between very simple and very complicated depending on how you want to implement it in your game. I will try to give you some pointers on where to start and hopefully you can pick up from there and expand it to better suit your needs.
As you have guessed (simplest method)the way to go is to disable collision for the tile you want the player to be able to jump through. You create a bp that has that tile inside it and you add a box collision a little bigger than the tile itself. then when the player touches that collision box you disable the bp's collision and when he exits you re enable it.
Things to consider: make it only work when the player is ascending (tip:get his velocity) to avoid funky situations.
Experiment with the collision box size to make it feel more "natural". And last but not least you need to create a safe zone so that the bp will not re enable collisions as long as the player is inside the tile , otherwise he will get stuck.
I hope that the above information can get you started. Good luck with your game!
Paper2D: Tile Maps are promoted out of experimental into Early Access Preview
Paper2D: Support for sprites that require multiple paired textures
Paper2D: Snap layers for speedy 2D level layout
Paper2D: Grouped Sprite Components
Paper2D: Paint Directly on Sprite Textures
and more