A lot of this tutorial is unnecessarily complicated. Just notice that the plane is divided into 4 parts by lines x + y = 0 and x - y = 0. So just compute x + y and x - y, and depending on weather those values are negative or nonegative you will know which animation to use.
PLEASE REMAKE THE VIDEOES AGAIN IN NEWEST VERSION OF ECLIPSE or MAKE NOTES ON THE CHANGES MADE IN THE NEWEST ECLIPSE , we cant follow these tutorial vids with new eclipse, they have some changes on the syntaxes
i found it easier to understand if you use variables for the currentRow and column and then depending on the wall that was hit, to change the current column accordingly
I used absolute value instead of arctan. Im only showing code for the left/right check. But I also have code for the up/down check but youtube wont let me put it.
Thanks for going to the trouble of explaining why you do things in programming. most tutorials on youTube just teach parrot fashion. TYour tutorials provide students a chance to actually learn some principles which will allow them to write code for themselves.
A lot of this tutorial is unnecessarily complicated. Just notice that the plane is divided into 4 parts by lines x + y = 0 and x - y = 0. So just compute x + y and x - y, and depending on weather those values are negative or nonegative you will know which animation to use.
myszone 1 week ago
This is by far the most elaborated tutorial i've ever seen. Nice job with the math function... the way you explained it. ITS AWESOME !!!
Xterium 4 weeks ago
Thanks Edu, enjoyed your tutorials.
thisisUll 1 month ago
super cool! :)
edgelit 1 month ago
This has been flagged as spam show
PLEASE REMAKE THE VIDEOES AGAIN IN NEWEST VERSION OF ECLIPSE or MAKE NOTES ON THE CHANGES MADE IN THE NEWEST ECLIPSE , we cant follow these tutorial vids with new eclipse, they have some changes on the syntaxes
riky22lou 2 months ago
This tutorial is Great!. there is typo error, the left (0,-1) in image and explanation should be (-1,0)
XDwinlabs 5 months ago
Comment removed
winsontan520 5 months ago
i found it easier to understand if you use variables for the currentRow and column and then depending on the wall that was hit, to change the current column accordingly
maradona640 6 months ago
@maradona640 there is less math involved so it might be easier to understand for some
maradona640 6 months ago
I used absolute value instead of arctan. Im only showing code for the left/right check. But I also have code for the up/down check but youtube wont let me put it.
if(Math.abs(xSpeed)>Math.abs(ySpeed)){//moving sideways
if(xSpeed>0)//moving positive--RIGHT
currentDirection=2;//RIGHT-from sprite sheet
else
currentDirection=1;//LEFT-from sprite sheet
then in onDraw...int srcY = currentDirection * height;
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Comment removed
kylamon1 6 months ago
Thanks for going to the trouble of explaining why you do things in programming. most tutorials on youTube just teach parrot fashion. TYour tutorials provide students a chance to actually learn some principles which will allow them to write code for themselves.
arthurmee 7 months ago
meh, I dont think the math here is that bad, thanks for the tutorial!
ddavv1 9 months ago
FUck the math.
I HAT MATHHHHHHHHHHHHHHHHHHHHHHHHHHH
HACKERMAN24 10 months ago
@HACKERMAN24 Math is your best friend in programming.
BouyertheDestroyer 8 months ago
its walking like micheal jockson haha good joke:))
by the way those tutorials are great.. thnxxxx..
gurkang1 10 months ago 5
Sensacional, parabéns, seus tutoriais são perfeitos, muito, muito, muito obrigado!
boydevilla 10 months ago
Wrong link on the site. The English version is linked to the Spanish tutorial.
semajhan 10 months ago