Questions tagged [2d]
2D refers to two dimensional space where coordinates are represented with X and Y values.
3,595 questions
1
vote
1
answer
122
views
How does one efficiently render depth in an oblique top-down "2.5D" game?
I'm making a 2.5D game in Pygame with an oblique top-down view, where you can see both the top and front sides of the objects/environment, similar to top-down JRPGs and 2D Zelda games:
(Graphical ...
2
votes
4
answers
247
views
How are deltatime overshoots typically dealt with--or are they dealt with at all?
So I was implementing deltatime adjustment into a game when I thought of this problem. Consider a control case, with no adjustment for framerate:
Here, our character jumps up to a max height of 12.5 ...
0
votes
0
answers
42
views
Coding a health and stamina bar above player in Adobe Animate
I am using Adobe Animate for my school assignment.
I have a three-segment health and stamina bar that is above the player (it isn't set to be attached to the player yet).
I have a single enemy ...
0
votes
2
answers
80
views
How would I make a "slideshow" cutscene?
I'm making a 2D game using Unity and I want to implement cutscenes that change over at certain lines.
...
0
votes
0
answers
113
views
How is 2.5D achieved with 3D Objects in a 2D scene?
I would like to make a 2d top down scene with 3d Objects. I could make a 3D scene and just tilt the camera 45 degrees on X and that would give me basically the same thing(I think). But I started with ...
0
votes
1
answer
169
views
Spawn enemy in empty space
I'm new to Godot and following a tutorial, which spawns enemies randomly. However, I'm trying to improve on this by checking that the enemies don't spawn on top of the player and cause an instant loss....
2
votes
1
answer
101
views
Can't Get Unity New Input System To Work
For context I am very much a beginner.
I have been trying to get the player to move using Unity's new Input System following this tutorial. It's only a year old and others in the comments seemed to ...
1
vote
3
answers
251
views
Enemy movement system on a 2D grid (Zelda-like)
I’m trying to implement a top-down Zelda-like enemy movement system. Consider a screen of x tiles wide by y tiles tall, each tile being 16x16 pixels.
I’m not asking for code here. I’m asking for ...
1
vote
0
answers
187
views
Resolution-independent rendering of crisp 2D graphics (non-pixel-art)
I’m a beginner developing a 2D game in SDL2 using C with a visual style that uses crisp high resolution graphics (like geometry dash and Hollow Knight -- not pixel art). I want the game to scale ...
3
votes
0
answers
143
views
Displaying pixel art at any resolution with subpixel movement
The Goal
I have a game in Unity which utilizes pixel art. I'm not following the standard rules of pixel art, however. I'm ok with sprites having different sized pixels, pixels rotating, and pixels not ...
0
votes
0
answers
67
views
What am I missing to get my animation working
I use Godot 4.4 and gdscript. I have a 2D isometric character with hundreds of sprite sheets for different angles and weapon status. Its not feasible to do this in ...
0
votes
0
answers
21
views
How do I make smooth 2 way shooting in pygame? [duplicate]
I have been trying many thing to make my code work to make a player shoot a small box both ways (left and right) without being able to change the direction of the projectile mid shot.
I would be very ...
1
vote
0
answers
45
views
What is the best way to move a mask in a shader in a square path in Unity Shader Graph?
I would like to make the square move strictly along a square trajectory. The square will later be used to mask the main sprite.
How to achieve this result? How to move the square along the square's ...
0
votes
0
answers
66
views
Bicubic filtering of texture with arbitrary data
I want to add bicubic filtering to my software raytracer. I have a texture that can contain arbitrary data. I want to sample that texture by bicubic interpolation (bilinear isn't smooth enough). Here ...
1
vote
0
answers
152
views
How to conserve momentum in Unity?
I tend to use a lot of 2D physics based (rigid-body based) character movement in Unity, and despite lots of tweaking, I can never seem to use conservation of momentum.
I’d have to manually program in ...