4,108 questions
Advice
0
votes
1
replies
71
views
Is their a better way to do this collision? (SFML 3) (C++) (CMAKE)
I am trying to make a multi-layer sidescroller to imitate a 3d environment with SFML 3 and C++. The movement feels janky and everything is very early in development. The collisions dont seem to work ...
Advice
0
votes
1
replies
77
views
how to make my character's jump feel more responsive
I'm just getting into coding in unity for the past couple month and decided to try my hand in 2D, i made this player controller and it works well but when i playtest it the jump just feels ...
Advice
3
votes
17
replies
211
views
First text based game
I've started work on my first text based game and would like advice on how to streamline it. I'm programming it entirely in python 3.12. This is only my second personal project and I've never done ...
Advice
1
vote
1
replies
78
views
I'm trying to access some values from a class, to assign it and show it when selected
I'm very new to coding, so please, be understanding, my code might be quite wrong.
Imagine a pokemon game, where each pokemon has basic stats. So I'm trying to make a function that will call these '...
Advice
1
vote
0
replies
36
views
Designing a host-authoritative multiplayer architecture (similar to Mini Militia)
Body
I’m currently working on a capstone project where we are building a local multiplayer mobile game (Wi-Fi / hotspot based). I designed the following system architecture inspired by the host-...
Advice
1
vote
3
replies
79
views
How do I make my arcade game character have three jumps, standing still, jump when walking and jump when running?
I'm making an old school type game with intentionally limiting controls. I want zero input mid-air and he keeps moving until he hits the ground. I want him to go straight up, small arch and big arch. ...
Advice
1
vote
3
replies
100
views
What Color Model is This?
I make pixel art pretty often, and work in an HSV color picker while spriting in GIMP. When Animal Crossing: New Horizons came out, I set up a spreadsheet that would allow me to color match based on ...
Best practices
1
vote
2
replies
136
views
Naming Conventions: Manager, System. Handler or Service?
I have a bunch of background systems that do various things.
I.e:
UnitManager : holds all the information regarding all the player units in the game
SaveSystem: self-explanatory
UnitActionSystem: ...
0
votes
1
answer
100
views
Unity animation and sound effects out of sync
I'm trying to create a First Person Shooter (FPS) game on Unity.
I'm currently facing animation + sound effect (sfx) problems as they are not getting synced.
The shooting sound effect is getting ...
Advice
1
vote
11
replies
253
views
Roadmap for learning C++ required for game engine development (graphics, physics, memory management)?
I am currently learning C++ and want to learn game engine development, but I don’t know the pathway to learn the necessary skills and get a job as a game engine developer.
I have interest in Computer ...
Advice
2
votes
4
replies
143
views
How do I modify Enemy class to chase the player in an object-oriented programming JavaScript game?
I'm trying to create a game in HTML, CSS, and JavaScript. I started following the tutorial by FreeCodeCamp: https://www.youtube.com/watch?v=7BHs1BzA4fs. The tutorial was on a side-scrolling game(...
Advice
0
votes
0
replies
74
views
How can I use NearbyConnections (as provided by Google Play Services) in conjunction with Unity to send data between players?
I've been running myself ragged trying to figure this out, since the documentation is rather sparse and the plugins are all somewhat out of date, but for a school project, I need to create a prototype ...
Best practices
0
votes
2
replies
82
views
How to represent a giant map 4000x2300 tiles
I'm working in a proyect, and i want to handle a "real world" map, my tiles are 10Km representations of the world. My map is arround 4000x2300 hexagons, but i dont know how to "render&...
Advice
0
votes
31
replies
303
views
I made a simple collision-detection algorithm, can you take a look at it?
Unlike conventional collision detection algorithms (using right-angled triangles), I created an algorithm using the theta value with objects. (Theory, etc., got a little help from the Gemini, but I ...
0
votes
0
answers
28
views
UE4 Map Ground is not exporting to build
I am making an Game with Unreal Engine 4. In the Editor of UE4 everthing works out fine but when i am exporting the Game to ship it, the Ground of my Maps disappears. Its the correct Map, there are my ...
Advice
0
votes
13
replies
6k
views
What does the 'L' in the beginning even mean?
I was following this guy's 'how to program a game from scratch in c++ tutorial', and was wondering why window_class.lpszClassName = "Game Window Class"; has a syntax error, but when I added ...
0
votes
1
answer
99
views
How to fix mutable objects inside a copy of IReadOnly copy of a list
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended.Graphics;
namespace GameCore.Core;
#...
Advice
1
vote
5
replies
265
views
Pygame or Love2d for game development?
I have been looking at frameworks for game development and I have found that pygame (a python game development libary) and love2d (a lua game development libary) seem the eisiest to learn. I also know ...
Best practices
1
vote
9
replies
197
views
How do you manage multiple if statements?
I am currently coding a project with many if statements to check certain values. I feel like all those statements seem inefficient and time-consuming in my program. How can I optimize or manage this ...
0
votes
1
answer
96
views
Mouse to world position Monogame
I have some trouble getting this code to work. I have a debug screen where I can see the player and the mouse position, but if they don't match even though the cursor is above the player.
Here is the ...
Advice
0
votes
2
replies
134
views
How do I make directional movement in my 3D Raylib game
I am currently making a 3D game with C# in Raylib a game library and when coding the movement of my player which is just a hitbox and a camera, I ran into a problem on how the player movement controls ...
0
votes
3
answers
130
views
I need to access the "canSeePlayer" property in the playerController script from enemies script
I have tired as much as possible but to no avail. I need to code it such that I can use it even if there is multiple objects with the same code I can use it. I am using a simple ray cast to check if ...
Advice
1
vote
0
replies
42
views
How can I design “story-driven NPCs” in a reinforcement-learned environment? Looking for development directions and architectural advice
I’m working on a thesis about "story-driven NPCs in a reinforcement-learning world", and I’m building a small multi-agent RL environment as a prototype. However, I’m unsure how to push the ...
Best practices
2
votes
1
replies
62
views
Compute 1D motion profile with acceleration, deceleration and mid-course target change
I need an analytic solution for a 1D motion controller. Initial state: x=0, v=0. Parameters: a_acc = 50, a_dec = 30, v_max = 40. Given a target position (e.g. x=20) the object should:
accelerate up ...
Best practices
1
vote
1
replies
95
views
How do I detect collision with control node in Godot?
my card scene tree
I want to make a card game where player can stack cards on top of each other (like Solitaire or Stacklands). I have a control node as the root node and Sprite2D as the child node. ...
1
vote
0
answers
132
views
How to check for possible collisions using gizmos
I am making a clone of the game "Arrow Out." I am not sure if this is even the correct way but I am thinking of using gizmos to check if there is another arrow in the path of the clicked ...
Advice
0
votes
2
replies
56
views
Better AI Behaviour
I am currently working on AI Behaviour in a Beat-Em-Up game in Unity for my beat-em-up project, I am currently using my own statemachine system (with states that don't inherit from monobehaviour) to ...
0
votes
0
answers
65
views
Camera follow not working properly in Phaser 3
I'm working on a Phaser 3 project where I want the camera to follow a physics-enabled sprite (an orc). I've set world bounds and camera bounds and used startFollow, but the camera doesn't seem to ...
Advice
0
votes
6
replies
239
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
I come seeking advice.
I'm attempting to make a game with C and Vulkan (no engine). It will be low scope. It has a low-mid poly aesthetic, fairly involved mechanics, and will be multiplayer, ...
Advice
1
vote
0
replies
92
views
Text-to-Speech function in a 3D Unity game
I am doing a 3D game using a Unity, and I need my NPC can communicate with the players with voice
I want my NPC can speak with a voice that response is generated by the LLM, so the response will ...
1
vote
0
answers
80
views
How to rotate a model?
I have a code for rotating the turret model, but the mesh rotates, but the turret model also has a gun, but it either freezes regardless of the mesh rotation or simply does not rotate
local Players = ...
0
votes
1
answer
129
views
I need help fixing this crouching bug
I'm currently struggling to understand why the crouch mechanic isn't working all that well in unity. I would be grateful to anyone who can help me understand why this code doesn't work and how can I ...
1
vote
1
answer
79
views
I can't type in my tkinter GUI's input box [closed]
I am trying to make a text-based RPG, and recently made it a tkinter GUI, but whenever I try to use it, it runs perfectly, but doesn't allow me to type in the input box. Rather, it seems to be ...
0
votes
0
answers
26
views
How would I make butterflies that move around semi-randomly in Construct-3?
I'm making a small, simple game where the player catches butterflies. How could I make the butterflies move around somewhat randomly but try to avoid the player (and avoid getting stuck)? I am making ...
0
votes
0
answers
65
views
Rigidbody not moving on start even though capsulecast not detecting anything
I want to implement basic movement using a rigidbody but my player at the start of the game cant move using WASD and can only jump and shift. When they shift, they slide to the side a bit before WASD ...
0
votes
1
answer
125
views
Why does my Python game pauses everytime tkSnack plays an audio file?
I'm new here and this is my first question!
So I have this simple Python snake game that uses tkinter and tkSnack and it's working as intended graphics and controls wise except that the game or frame ...
1
vote
1
answer
105
views
How to freeze a player so that he does not move to one side
How can I make it so that the player cannot move, even through physics, in one direction?
I tried this option:
using UnityEngine;
using UnityEngine.InputSystem;
public class Player: MonoBehaviour
{
...
-1
votes
1
answer
233
views
How to show the camera's view frustum lines in the Unity Scene editor? (whitout selecting) [closed]
I'm working on a Unity project where I need to constantly monitor the main camera's perspective. By default, the white lines showing the camera's view frustum are only visible in the Scene window when ...
0
votes
1
answer
93
views
How to remove MovieClip from the array if it "dies" on stage based on its Array index?
I have 5 Enemies on the stage and if theyr current HP is equal to zero play animation and on the "dead" frame i want them to be removed From the Array and eventualy removed from the stage ...
-1
votes
1
answer
85
views
How to create addEventListener - function - where I indicate what movieClip was clicked and then decrease HP:number and show it directly on the stage?
Hello everybody,
I am making very basic game in Adobe Flash AS3. I am learning in a book and as i learn i try to introduce new things and creative stuff into my very basic game.
I am using Flash CS3 ...
0
votes
0
answers
67
views
Issue with Unity Platformer Multi-Jump Mechanic
So, I'm making a platformer game in Unity and I have a system where you can jump multiple times. This is intentional and is a mechanic I plan to keep in the game and is controlled with the MaxJumps ...
1
vote
0
answers
81
views
Issue on drawing object on top of moving platform
I'm developing a 2D game and I ran into a problem implementing the logic for a movable platform. These are the ones where the player stands on top of the platform, and the platforms move, and the ...
1
vote
2
answers
74
views
Issues with sequential cooldown
I've been attempting to make a system in which you can use an ability with 3 charges. Once you use one, Only that one will recharge, When you use another, The recharge progress from the first will go ...
0
votes
0
answers
87
views
Godot: “Attempt to call function 'start_shake' in base 'null instance'” when accessing CanvasLayer node in scene instance
I’m having a problem in Godot 4 with calling the start_shake function in my screen shake system.
In the scene 1_level.tscn, I have SceneRoot with a child node Map, which is an instance of Map.tscn.
I ...
-2
votes
1
answer
74
views
Calling the Lerp method doesn't work as intended
I am making a game in Unity and I wanted to animate a "game over" screen showing up, by making it appear from nothing and expanding to fill the screen. I did this by creating a Game Over ...
1
vote
1
answer
276
views
Godot 4.4 get_tree().change_scene_to_file("res://scene.tscn") Not Switching to the Intended Scene
I don't know why this isn't working because after looking at the GDScript documentation, and even other posts on stack overflow, I still can't get the scene to show up at run time.
extends Control
#...
0
votes
0
answers
53
views
Trying to deflect an object when it enters a trigger in Unity
I'm having trouble deflecting a projectile (Fireball) when it enters the trigger of an object (Shield / Deflector). This is a 3d game with a top-down view, it should only deflect in the x and z ...
1
vote
1
answer
55
views
PauseUI not appearing because event not subscribed to because Start function not work
Im making the UI that appears when you press the pause button(escape key). My project has a GameManager empty object, a global canvas with an empty child and that child has its own child as a black ...
4
votes
1
answer
140
views
Love2d flickering edge on player movement
I created a simple code using Love2d that display a map created with Tiled (pixel art style), and draw a square as a player who can freely move across the map. However there is some jitter or ...
-2
votes
1
answer
96
views
Why is my p5.play.js not working on github but working on VScode? [closed]
Whenever I try to deploy my p5play code on GitHub Pages, it just shows a blank screen. What can I do to resolve this issue? It works perfectly on VS Code. Specifically, the page has a white background....