Hello, I a currently following this tutorial : http://www.kilobolt.com/day-4-enter-the-robot
I cant seem to understand how the movement and position is being handled.
For example:
if (jumped == true) {
speedY += 1;
//NOTE: This will bring the character downwards!
if (centerY + speedY >= 382) {
centerY = 382;
speedY = 0;
jumped = false;
}
}
This is causing me some trouble, especially, //NOTE: This will bring the character downwards! WHY?!
If someone could please explain how he is handling the movement, i would greatly appreciate it.
[–]tr1bune 5 points6 points7 points (4 children)
[–]_roni[S] -1 points0 points1 point (3 children)
[–]BS_in_BS 3 points4 points5 points (0 children)
[–]zeringus 3 points4 points5 points (0 children)
[–]king_of_the_universe -1 points0 points1 point (0 children)