Tuesday, January 24, 2017

Creating A Movement Engine : Walking and Jumping

Learning something new sometimes feels overwhelming 😥. But hey, one step at a time.... As the blog says, even an expert was once a newbie (i forget the source of this quote, sorry 😅)

From many tutorials over the internet, i finally grab a little of the basic a movement engine. My point of view is, -to simplified things-, i have to understand what is the condition of the player sprites and what is the effect to the sprites when it meet the condition. 

Is the sprites is on the ground or not?
what is the effect if the sprites is not on the ground, drag down by gravitation? or i want something else? flying maybe? or flying only if i press the spacebar?

What is the criteria of "on the ground" anyway. maybe i could define if theres something below the sprites, then it is on the ground. But how to check if there's something below the sprites?  

What if the sprites against the wall? What it can do and what it can't do? Jump off the wall?

How about ladder? water? quicksand maybe? The questions and the possibilities could be endless.

Long story short, i do lots of reading and learning from heartbeast and shaunspalding great tutorials and courses.



And my character can move now.
😙#whistle.

No comments:

Post a Comment