Search found 4 matches

by GuatemalanPriest
Tue Mar 18, 2014 12:30 am
Forum: Support and Development
Topic: Diagonal Movement
Replies: 7
Views: 7853

Re: Diagonal Movement

Note that if you do this, moving diagonally will always be faster. That is because if your character is moving straight right with a dx of 1, the speed equals 1. However if they are moving 45 degrees up from right (like moving diagonally), then the dx = 1, dy = 1 and the speed = sqrt(1^2 + 1^2), wh...
by GuatemalanPriest
Mon Mar 17, 2014 1:42 pm
Forum: Support and Development
Topic: Diagonal Movement
Replies: 7
Views: 7853

Re: Diagonal Movement

I see. I had it working on another small prototype game, now I see why. It is because I should have them all nestled in their own If Statement. Thanks guys!
by GuatemalanPriest
Sun Mar 16, 2014 8:03 pm
Forum: Support and Development
Topic: Diagonal Movement
Replies: 7
Views: 7853

Re: Diagonal Movement

Oh, great! That worked perfectly, thanks!
by GuatemalanPriest
Sun Mar 16, 2014 6:44 pm
Forum: Support and Development
Topic: Diagonal Movement
Replies: 7
Views: 7853

Diagonal Movement

Hey... I saw another thread on here sort of like this one but I can't use the solution posted in it because I can't figure it out... I need to make it so my player has 8-direction movement, so that if I press both Up and Right the player would go up and to the right. I saw something on the other thr...