How would I make a Gui-based 2D game?

Ok, so I want to make a 2D game but I’m not sure how to approach it. I am looking for a game it the style of Among Us or Zelda. I might have an idea on how it would work, but not sure if I’m doing it right. I know it is possible because I have seen 2D games on Roblox.

So I think that I would have to keybind the WASD keys by doing Enum.keycode. Then have it so that when you WASD, it changes the players character to make the character look like its moving. And when you press WASD it moves the player forward by 0.5 or 0.1 or some other number.

Again, I’m not to sure if I’m doing this correct or let alone making sense. But I’m trying my best to describe my process. If what I’m doing is wrong please let me know.

5 Likes

Take a look at GnomeCode on YouTube. He’s got some great tutorials for making a 2D game on ROBLOX. Although it’s not quite what you’re making, a lot of the logic he uses in his code is applicable to the type of 2D game you’re looking to make.

6 Likes

Yes this would be correct, I used to make 2d games on unity engine and this is the same way I did it, I would like to say that there is a better way by using the Roblox character that is already in the game, you would just make a system the the game “Gacha World” or something like that (it’s on Roblox somewhere) except you would just restrict the camera from rotating so you have that true 2d feel.
I could provide some basic script from an old game I used to work on to help you.

3 Likes

you want the player not to move at all and instead have it move a box on a 2d plane, checking for collision with aabb while also saving position in a cartesian sense

Sure just give me a couple days to find it on my archives.

I would say make a 3D game with 2D Characters because games like Among Us are 3D! While Among Us looks 2D it uses a 3D engine to add layers so I wouldn’t recommend making lots of the game as a screen GUI but as a 3D environment with decals on the object. And restrict the camera so it’s hard to tell if it’s 3D like Among Us.

I really would recommend talking to @PastDays about this as he is an absolute legend when it comes to 2D games.

1 Like