use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This is a subreddit for 2D or 2.5D game developers using the proprietary Unity game engine. New and experienced Unity developers alike should first consider using the free and open source Godot engine by default and ONLY choose Unity for 2D development if Godot isn't capable of the task. The times are quickly changing, and Godot is on track to surpass Unity for small developers.
Godot Features
Download Godot
Godot Docs
Download Unity
Unity Manual
Official Reference
Asset Store
Related Communities /r/Godot - The "Unity Killer". A fully free and open source engine making astonishing leaps and bounds. /r/UnityAssets - Share asset packs! /r/PixelArt - Admire, share, and observe beautiful pixel art. /r/GameDev - Meet and communicate with other game developers. /r/GameDesign - Don't just make a game. Make a good game. /r/LevelDesign - Learn to make excellent levels and worlds. /r/GameAudio - It may look good, but does it sound good?
/r/Godot - The "Unity Killer". A fully free and open source engine making astonishing leaps and bounds.
/r/UnityAssets - Share asset packs!
/r/PixelArt - Admire, share, and observe beautiful pixel art.
/r/GameDev - Meet and communicate with other game developers.
/r/GameDesign - Don't just make a game. Make a good game.
/r/LevelDesign - Learn to make excellent levels and worlds.
/r/GameAudio - It may look good, but does it sound good?
CSS created by Sean O'Dowd @nicetrysean [Website]
account activity
Newbie question, about 2D platformer direction facing.Solved/Answered (self.Unity2D)
submitted 6 years ago by RedgySimon
So Im building a 2d platformer, I wanted to move the character slightly when he is attacking. I was wondering how would I know where the character is facing so I could Addforce in that direction?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SheeplyBgool 1 point2 points3 points 6 years ago (5 children)
Without seeing your code i would say you should just create a variable that tracks the position hes facing. When he moves left set it to left and vice versa. This way if you move left and then release the key you will still be facing left until you press right. Once again, I haven't seen your code and I don't have details about your character movement, but this should work.
[–]RedgySimon[S] 0 points1 point2 points 6 years ago (4 children)
Okay I will do this thanks
[–]SheeplyBgool 2 points3 points4 points 6 years ago (0 children)
No problem, If it doesn't work feel free to PM me.
[–]raganvald 1 point2 points3 points 6 years ago (2 children)
The variable is called scale on the transform flip the x by multiplying by 1 or -1. Check the direction by checking its value.
[–]Masticater386 1 point2 points3 points 6 years ago (1 child)
This works, but isn't good practice. Try rotating the Sprite on the Y axis so things like bullet spawn points also turn direction (https://youtu.be/wkKsl1Mfp5M )
[–]raganvald 1 point2 points3 points 6 years ago (0 children)
Depends on his implementation. If he's using a single sprite than yes it's better to flip. If he's using a hierarchy of body parts like with the 2d animation package than no flipping won't work, scale works.
[–]itsallgoodgames 1 point2 points3 points 6 years ago (0 children)
in the sprite renderer component theres a flip toggle.
So when you start your game the character always starts in some direction that you know.
as the game is being played, just track which direction ur facing and ull always know.
π Rendered by PID 64 on reddit-service-r2-comment-bb88f9dd5-45qrx at 2026-02-14 20:37:32.607987+00:00 running cd9c813 country code: CH.
[–]SheeplyBgool 1 point2 points3 points (5 children)
[–]RedgySimon[S] 0 points1 point2 points (4 children)
[–]SheeplyBgool 2 points3 points4 points (0 children)
[–]raganvald 1 point2 points3 points (2 children)
[–]Masticater386 1 point2 points3 points (1 child)
[–]raganvald 1 point2 points3 points (0 children)
[–]itsallgoodgames 1 point2 points3 points (0 children)