I try to make a character like in games and his movement in one big image and he have a lot of movement. Can it be possible to set coordinates on the image or do I have to cut the image and put every image one by one?
Asked
Active
Viewed 69 times
0
-
1There are at least 2 ways. One way by using JLabels and move the labels but I do not recommend doing that if you were planning to create a game in Java. The other way is to use custom painting. Take a look here: http://stackoverflow.com/questions/35711891/how-to-create-a-background-and-foreground-image-which-overlaps/35711894#35711894 – user3437460 Mar 05 '16 at 12:49
-
Thanks for answering but I dont means to that what I means is if I have an image with alot of movments can I set X and Y on the image and dont cut alon every movment that the character has? – user5327287 Mar 12 '16 at 23:51