Java Game Design - Making A Moving Player

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You can make the sprite stop moving on release by copying the code in the "key pressed" and putting it in the key released. Make sure to set the dx and dy values to 0 though. Thank you for the great video and all the help! Sorry you were in a big rush, lol :)

BRADLEYBREEN_
Автор

Bruh this is cool, cant believe it actually worked
Thank you i subbed.

Josh-kjun
Автор

thank you SO MUCH!!! this was the first tutorial out of dozens that worked for me. here's a like for u

imiramikhanirami
Автор

I'm getting a syntax error, telling me to insert "}" to complete switchBlock on the scanner class, right under the first break; at 9:50 can you please tell me what i did wrong?

Mrsoldier
Автор

copy the code in the keyPressed Function into the keyReleased and then set all the numbers to 0, to stop the player moving when the key is Released

samwel
Автор

HELPFUL and SOMEBODY should SEE the COMMENTS BELOW ... Thank You...

JadiBudiLaksono
Автор

thank you SO MUCH!!! this was the first tutorial out of dozens that worked for me. here's a like for u

imiramikhanirami