Skip to main content
30 votes
Accepted

How to make the player feel like giving up?

Minor spoilers follow for Journey and Nier Automata. Both of these games include scenes where the player is meant to feel extremely discouraged. The way they both sell this in the game mechanics is by ...
DMGregory's user avatar
  • 135k
24 votes

How can I help my unpaid 2D and 3D artists improve their portfolio?

You got to find a way to pay your artists. Currently they don't really get anything out of the work on your project. Even if your project would demand artwork on a level of polishing that's good ...
Philipp's user avatar
  • 120k
17 votes

How can I help my unpaid 2D and 3D artists improve their portfolio?

I'll skip the mandatory part talking about payment. I get it. I've worked on a game for free for years because it's a passion. I assume the same is true for these people as well, to an extent, but ...
Onyz's user avatar
  • 271
6 votes

How to make the player feel like giving up?

I'd like to add Celeste to this as an example. Some of the levels there can be brutal, but there is little to no death penalty and you're back where you were a moment ago. This way, you'll have to ...
Steven's user avatar
  • 883
6 votes

Creating a new camera in 2D mode sets it as default, despite not being the main camera

Unity uses the depth property to determine the order that cameras are drawn in. If two cameras have the same depth, there's no ...
Kevin's user avatar
  • 6,234
5 votes
Accepted

Would it be possible to make a Game Genie like program in Javascript?

What exactly do you want to replicate from a Game Genie code? The format of the original can be found in the docs here, but fundamentally they identified a part of the memory to change and the type of ...
Basic's user avatar
  • 1,278
4 votes
Accepted

Avoiding nausea when spinning

The best solution can be determined on how your game "feels" while playing it, but here's a few suggestions that you can consider: Smooth Camera Sure the ship needs to always point at the ...
Tom Tsagkatos's user avatar
4 votes

How can I help my unpaid 2D and 3D artists improve their portfolio?

It sounds like your root problem is wanting to keep your team members on board. As with all volunteer-based projects, it's important to be mindful of the fact that volunteers come and go. This is ...
JHR's user avatar
  • 141
4 votes
Accepted

Trouble setting camera position in Unity

There are several misconceptions here. First off, every Component and GameObject already has a pre-cached ...
DMGregory's user avatar
  • 135k
4 votes

Performance issues with high-resolution maps in 2D strategy games

You can do something similar to what Google Maps does (at least visually): Have different quality versions of your map. When zoomed out, your entire map loads on low quality (let's say ...
Tom Tsagkatos's user avatar
4 votes

2D Pathfinding with rope constraint

The simplest solution would be to always path find from the stationary anchor and then append that path to the rope from the player to the anchor and use string pulling to get the path for the player ...
ratchet freak's user avatar
3 votes

Bouncing balls miss collisions, bounce the wrong direction, of lose momentum on one axis when hitting a corner

It appears that your code is fighting with the physics engine about who gets to control the velocity vectors of the balls. When there is a collision between two rigidbodies, then the Unity physics ...
Philipp's user avatar
  • 120k
3 votes
Accepted

Is there a logical reason for SFML's Vector2 being templated?

Unity, for example, has both Vector2 and Vector2Int types (and so on for other dimensionalities), since C# didn't/doesn't have ...
DMGregory's user avatar
  • 135k
3 votes

Fast way to calculate angular intervals and occlusion of circular objects in a 2D vision cone

Here are some optimization suggestions: 1. Filter unnecessary tests Objects located outside the field of view circle(distance>r1+r2) do not need to be detected. ...
Mangata's user avatar
  • 2,651
3 votes

Rotating 2D sprite around tilted Y axis

I think this would be easiest using SKTransformNode.setQuaternion instead. This makes it easy to express a rotation by some angle around any axis you choose, rather than only rotations around the ...
DMGregory's user avatar
  • 135k
3 votes

Area2D only detecting body_exited once

The ball being an static body is odd... I suspect the Area2D is not detecting the static body at all, see the issue: Area2D does not detect moving StaticBody2D. I ...
Theraot's user avatar
  • 27.2k
2 votes

Unity Application.Quit() doesn't work

There were some comments here but no actual solution. The answers of course exist by searching but not in this post. The ability to exit the game in BOTH standalone and editor mode is important for ...
Flashheart's user avatar
2 votes

Emulating 3d trajectory in top-down 2d game?

I created this version which uses a target position and t (time 0-1). I would loop this function in an update function if (t < 1) t would increase by ...
Joel Leonard-Best's user avatar
2 votes
Accepted

Fanning cards in 2D leads to cards continuing to move forever

How do cards stop You are using two curves to achieve that: spread_curve and height_curve. Now, the ...
Theraot's user avatar
  • 27.2k
2 votes

KinematicBody2D stutters/moves back and forth

Are you not overshooting your target? You have this code: ...
Theraot's user avatar
  • 27.2k
2 votes

Is there a logical reason for SFML's Vector2 being templated?

Why would you ever want to use any other type than float for positional math? The other answer covers this pretty well but some aspects of your post has not been tackled. Is there a logical reason ...
Vaillancourt's user avatar
  • 16.3k
2 votes
Accepted

Rotating 2D sprite around tilted Y axis

Try creating the art so that the red line is horizontal, then rotate it in Swift on its zRotation, and animate scaling along the ...
John Nyquist's user avatar
2 votes

How to make the player feel like giving up?

This is a common feature of boss levels, but doesn’t necessarily have to be exclusive to them. Make the level ridiculously impossible with quick death for the player all but assured, with the ability ...
bob's user avatar
  • 296
2 votes
Accepted

How to make redirected player movement respond to same key?

Not tested, but you could try looking at which keys the player is pressing when they're warping and setting the velocity x/y values to 0 when they're released depending on how much the movement is ...
thirteen's user avatar
  • 188
2 votes

Why won't my bullets shoot?

It should have been .up instead of forward, because forward is for 3D. Then *-1 because I want it to go in the opposite direction.
John Hughes's user avatar
2 votes
Accepted

Weird effect during rendering pixel art in Unity

At an orthographic camera size of 5, you'll show 10 units of the world from the top of the screen to the bottom. If each unit has 100 texels of texture data (PPU/pixels per unit), then that's 1000 ...
DMGregory's user avatar
  • 135k
2 votes
Accepted

Get Impulse force needed for parabolic projectile launch

Unity will actually do all of the simulation for you. Given you are providing the vertical component \$T\$ of the force, all you need is the horizontal component \$\vec{H}\$, So all you need to do is ...
Paul's user avatar
  • 131
2 votes
Accepted

Moment of inertia of an arbitrary grid of squares with different masses

I got it working in the end, so for anyone interested here's the solution : General solution You need to use the parallel axis theorem. This theorem states that, given a body with a moment of inertia \...
user29223's user avatar
2 votes

adding a knockback effect to a CharacterBody2D in Godot 4.2.1?

I can see that the issue with the movement comes from moving the enemy both with move_and_slide() and directly setting the enemy position in each frame. For ...
Cassiano's user avatar
1 vote
Accepted

Sprite chasing a target using move_towards_ip does not move

pygame.sprite.Group.draw: Draws the contained Sprites to the Surface argument. This uses the Sprite.image attribute for the source surface, and Sprite.rect for the position. So we need to update ...
Mangata's user avatar
  • 2,651

Only top scored, non community-wiki answers of a minimum length are eligible