Java Game Development - 9 - Changing Scenes
Top Comments
All Comments (31)
-
@TanakaJayy its called planning ahead
-
lol people should never never never ever allocate and deallocate stuff in loops
-
Using methods not created yet..how confusing :/ ...
-
"Remember to make beginning look like ebingg or else the code will not work" BWAHAHAHHAHAHAHAHHA xD
-
cant you just call the start() method in the if(movieTime>=totalTime) statement? it does the same i think.
-
This tutorial wasn't your best! I think you should't use hundrets of methods without having build them!
-
@ThEwOtSiT182 IFCEPTION!
-
I tried this with "begin". Guess what.. It didn't work! D:
-
Or if you only want a 2 sprite animation (2 images)
declare the variable outside the paint method like this
Image pSprite;
and then put this in your paint method if (System.currentTimeMillis() / 300L % 2L != 0L) pSprite = new Image ("Char.png"); else pSprite = new Image ("Char2.png"); g.drawImage(pSprite, 150, 150);
Done.
-
@npacebg but not ebingg! lol
Beijin. Or else it will not work?! Hahaha.
gasto5 2 years ago 46
nice work bucky. make more tutorial pls
casterfile 2 years ago 43