My first 2D Game in Unreal Engine


Hey! This is my first game made on Unreal Engine. And although I understand that making a 2D game on this engine is like delivering pizza on a Boeing, but despite that I made and it was a great journey.

As you can see, you can test the game directly in the browser. And this means that the game was built in Unreal Engine version 4.23, since HTML 5 support ended after this version. But it wasn't like that right away, first I made the game on version 5.3. And although I decided that it would be great to test the game directly in the browser for your convenience, you can also download the Windows version below in the description.

The game was not made according to the instructions on some video. Rather, according to the instructions from many different videos, including forums, which I resorted to when I had errors that I could not solve on my own.

The main puzzle was to make the character move up and down. And he doesn't, he moves left and right on the floor. The whole map, the main character and viruses are located on the floor, the camera is from above and I just move them.


Here are some problems I encountered and successfully solved


— The problem of collisions. In order for the game to end when the virus and the syringe collide. So, I made a boxing collision, because it fits my main character as much as possible.

— Character control problem. I couldn't get the character to move only when I press. As it turned out later, the problem was that "Override gravity" was enabled.

— The problem of respawning viruses at random times and at different speeds.

— Cursor display problem during game after retry.

And many others.


And I faced many problems when I wanted to convert everything to HTML 5


— Plugins. I used one plugin namely paperZD. And because of this, my project was constantly loading in the browser without any errors in the message.

The solution to this problem was suggested to me by one comment on YouTube from a person who simply asked interestingly, will it work with plugins?

— Another problem I would like to highlight is that my texture stopped moving at some point. And I tested a lot of different solutions and one of the most non-obvious solutions worked. Enable "Pad to Power Of Two" in the Texture section.

And many others.


Conclusion


Despite all these problems, it was a great journey and I enjoyed it.

The goal is to continue this project by making it more difficult. Add the ability to shoot from a syringe, features such as passing through the virus for a short period of time, and of course add coins to be able to change characters and worlds.

Leave a comment

Log in with itch.io to leave a comment.