Java Beginner Tutorial - Animation and Background

preview_player
Показать описание

In this video we learn how to create some basic animation and background. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

Have fun learning!

Рекомендации по теме
Комментарии
Автор

my game is yeah it isn't a complete game rn but IT IS OMG THAT CUTE LITTLE THING IS MOVING IN MY Thank you so much, Zack😭❤️you deserve more views. god, i think i love your voice 😂🤣♥️

nodreamisbig
Автор

Well actually you caught right before making my next video in my Java Game Development Series. Yes, I started that series and it is 4-5 episodes in. The series goes into more advanced topics for game development like sprite sheets, buffers, pixels, etc. Just go on my channel and in the search box type Java Game Development 1 and then go from there. Glad I inspired you and thanks for the sub, I hope you enjoy future videos!

RealTutsGML
Автор

For those who didn't get the background to work, I got it to work by typing :

int a = 0;
int b = 0;//These 2 lines are written on the top of the Game-class.

and then changing
g2d.drawImage(getBackgroundImage(), 0, 0, this);
to
g2d.drawImage(getBackgroundImage(), a, b, this);

Also, in order to get the background behind the actual player, you need to type the line
"g2d.drawImage(getBackgroundImage(), a, b, this);"
ABOVE
"p.draw(g2d);"

Mursaat
Автор

RealTutsGML i was wondering how do you do the action in a loop for example x+=5; how do you making it keep going

mariammahmud
Автор

hey, i put getBackgroundImage() but the Image before it is still red

QuantumXables
Автор

For some reason following what you have said every time I start the program no image shows up but at the same time sometimes it shows up only the player tho not the background. not sure what i could have messed up with in the coding.

CodeBotter
Автор

Hi Zack I was in sheer determination to find a java game series that works. Your series ticks all the boxes. However I watched right up to tutorial 12 the adding bounds to all enemies of Linked List in controller class
Really Inspired :)

I cannot find the next tutorials of this series ?
Or am i expected to use my new found knowledge of Linked Lists and the controller class to draw the map and so forth on my own. whats next ? p:s I subscribed its awesome ! Get back to me Thank you.

stevenbishop
Автор

Everytime i run it, there is alot of red text showing up like an ERROR

TheSickma
Автор

what did we do wrong here
answer : make another name for the function getbackground():
;D

omarkita