Make a platform in a 2D platformer
Posted: Sat Apr 14, 2018 3:44 pm
Hi LOVE community !
So I have searched this topic on the forums but I've didn't find anything so here is the problem :
I've used a tutorial to help me creating the very basics of a 2D platformer : I have a ground, a character and now I want to put a platform
in the air. First of all in the sake of to not complicate the thing I've put the platform on the ground to try something : so I want my character to stay on it and then fall to the ground if he reaches the edges of this platform but I've don't figured out how.
So here is the code :
https://pastebin.com/cfkN5Bm0
You can see at line 67 to 72 what I've intended to do but it doesn't work.
Thank you in advance if someone want to help me.
So I have searched this topic on the forums but I've didn't find anything so here is the problem :
I've used a tutorial to help me creating the very basics of a 2D platformer : I have a ground, a character and now I want to put a platform
in the air. First of all in the sake of to not complicate the thing I've put the platform on the ground to try something : so I want my character to stay on it and then fall to the ground if he reaches the edges of this platform but I've don't figured out how.
So here is the code :
https://pastebin.com/cfkN5Bm0
You can see at line 67 to 72 what I've intended to do but it doesn't work.
Thank you in advance if someone want to help me.