I have a question how to make game with 2D graphics? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have a question how to make game with 2D graphics?

5th Jan 2017, 6:33 PM
Gintaras Zulys
Gintaras Zulys - avatar
2 Answers
+ 1
well it really depends on what type of game you want to make. Usually 2D graphics and animations are just a series of still images that the game engine will look at and change from image to image really quickly, like an old flip book or something. The way I did it is that I would create a graphic in photoshop and import it into my program. If the graphic is like a landscape, you can load it as the background image of your game and limit the camera view to a specific area around your character and have the camera follow the characters movement around the map. For 2D animation create an image of all your animations by desired frame with a certain pixel width and some clear space before the next image and use it like you are navigating an array using the pixel width of your frames as an index. There are some open-source RPG game engine tutorials online that can help you with this, that will probably explain it better than me. Does that help?
5th Jan 2017, 9:10 PM
Ethan
0
Yes
21st Jan 2017, 7:32 AM
Gintaras Zulys
Gintaras Zulys - avatar