Questions tagged [game-engine]

Use this tag only if you are creating or modifying a game engine framework, or if the game engine you use doesn't yet have its own tag on Stack Overflow. Otherwise use the engine-specific tag(s).

game-engine
Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

Unity 2D game if/else bug

Basically i'm creating a 2D game and the character have to grab objects, so i did a if/else statement, and the if(grab) condition works, but the else/else if(drop) one don't, I know that i comes from ...
2 votes
2 answers
916 views

What is lockstep in Peer-to-Peer gaming?

I am researching about Peer-To-Peer network architecture for games. What i have read from multiples sources is that Peer-To-Peer model makes it easy for people to hack. Sending incorrect data about ...
1 vote
1 answer
26 views

i'm currently facing a pb with Hover in a chessGame

first i created the over effect and get sure it works but when i added Input.getmousebutton it interfers with the hover and it's not showing up anymore previusly wherever i move my mouse on the board ...
0 votes
1 answer
70 views

XR origin script goes missing

XR origin script goes missing whenever I restart my Unity project. Due to this the VR camera system does not work properly with camera not following the commands. While the project is open the script ...
0 votes
1 answer
36 views

Godot 4 jumping doesn't work, it seems more like teleporting than jumping

I am starting to program a platformer as a way to learn Godot. I wanted to start with making the player movement, first the left, and right then the jumping. After following a tutorial on YT how to ...
0 votes
2 answers
73 views

Grappling/Swinging System in Godot 4 3D

I am fairly new to Godot, but have a little experience with Unity and Python. My goal is to have a grappling system like the one used in the game Karlson, where you can swing back and fourth/side to ...
0 votes
1 answer
50 views

How to fix frame drops in Unity

I'm Korean, so please understand if there are any strange grammar. This project I created was a rhythm game and used the bpm system. However, sometimes notes are created slowly. I think frame drops ...
1 vote
0 answers
24 views

How can I get the inverse Transformation in 2D

I'm making a 2D javascript game engine based on p5js. I have a parent child hierarchy for the transformations of each of these objects. I'm using this code to set the world Position: ` this....
0 votes
0 answers
19 views

How to properly bind descriptors to UBO descriptors

I sent up my texture's using Cherno's system. I reached out to him on discord and he said that to get an individual texture to each individual object, I need to create separate descriptors for each ...
1 vote
1 answer
2k views

glm::unProject doesn't work and incorrect ray position on screen

I try to implement a ray-picking method on GLM function glm::unProject. My problems with wrong ray position on screen and wrong perspective. Below some simplified code... My LookAt function: glm::...
0 votes
0 answers
63 views

game maker modifying windy woods game

I am a complete beginner in using game engines and creating games in general I have a project to implement and I am trying to learn while implementing it at the same time currently, I am using the ...
12 votes
0 answers
2k views

To disable steam overlay

I have the following setup for the game: launcher.exe - starts under Steam on Windows and provides some settings UI for the user. Then launcher.exe starts actual game.exe. Problem is that the ...
0 votes
0 answers
367 views

What can be the cause for pColorBlendState->pAttachments[0] values being out of bound / not VKBool32 errors

I was new to Vulkan and was following youtube turtorials. So sorry if this problem is actually stupid. I received the following validation errors when I try to create a vulkan render pipeline. ...
0 votes
2 answers
100 views

How should it works in Unity - slider.maxValue?

I request help with slider.maxValue = unit.maxHealth;. The HP bar appears above the desired object from the necessary prefab, where the slider should have a maximum value equal to the character's ...
1 vote
1 answer
372 views

How to prevent to disable game object while game is running in Unity?

I am developing a simple game.I want to stay game object stable.However,While I am running game,game objects miss suddenly.How can I fix it?
0 votes
0 answers
29 views

Making mixins similar to FabricMC in Rust

In the Minecraft modding API called Fabric (and I think most other Minecraft modding APIs) there is a feature called "mixins" which lets you do some things such as: Change the internal code ...
0 votes
0 answers
24 views

How to find the rotation of a quaternion along each of the 3 axes separately?

In the physics engine I am using, joint rotation frames are defined with quaternions. I would like to find the relative angle of the jointed child to its parent body. I tried converting the difference ...
0 votes
1 answer
28 views

Runge Kutta implementation is less accurate than Euler implementation

So I am trying to code a 2D Physics engine, and I am in need of a more accurate ODE solver so that my spring simulation does not become unstable. I want to make a stiff, or rigid spring that acts like ...
14 votes
6 answers
28k views

HTML5 Canvas game loop delta time calculations

I'm new to game development. Currently I'm doing a game for js13kgames contest, so the game should be small and that's why I don't use any of modern popular frameworks. While developing my infinite ...
0 votes
0 answers
39 views

Viewport namespace missing from SharpDX directive, please assist

I am using Visual Studio to build my program, I have all the necessary nugets for now, installed: SharpDX SharpDX.D3DCompiler SharpDX.Direct3D11 SharpDX.DXGI Yet I get this error for ...
0 votes
1 answer
31 views

I’m not drawing cards from my decklist/JSON

enter image description hereI’m getting my data for the cards as a JSON, it’s added to my deck list but when I start drawing the card’s ID which dictates the card’s info isn’t the same but random. For ...
4 votes
1 answer
111 views

Game engine design: clean flow of actions between clients and server

I am designing a multiplayer online game for the sake of learning. Several clients connect to a server that contains the true representation of the game world. Every client keeps track of a subset ...
0 votes
1 answer
35 views

Godot: Is there a way to set custom import parameters for importing assets by code (C#)?

During getting improvement to my custom import resource plugin I faced with need of set custom (re)importing params such as: compress mode (vram compressed or etc), channel pack (optimised or ...
0 votes
2 answers
32 views

Unable to find GL_INT_2_10_10_10_REV define on Android GLES

I'm currently working on an Android project that involves OpenGL ES development. However, I've encountered an issue where I can't seem to find the definition for GL_INT_2_10_10_10_REV when working ...
0 votes
0 answers
16 views

Anyone else notcing delays of shared d3dtexture2D betweeen two processes?

I have two processes: Unity.exe and MyPathTracer.exe. And I share a ID3D11Texture2D between them(MyPathTracer.exe writes it, and Unity.exe reads it), same things as the image below (copied from https:/...
0 votes
1 answer
27 views

Flask Socket-IO custom objects getting added regardless of client action

Edit: Found out my issue wasn't Flask-SocketIO at all. Had my Player class pointing to a default dictionary and every instance of the object was modifying the default dictionary instead of making a ...
2 votes
1 answer
2k views

Flip sprite using Flutter Flame

I'm toying around with Flame game engine and am finding it difficult to flip the sprite. Most game engines/libraries allow you to do this by multiplying the x scale by -1. However, this does not work ...
0 votes
0 answers
37 views

CLANG:"__declspec(dllimport) cannot be applied to a non-inline function" error in my C Program

So... I was creating my own game engine following the Kohi Game Engine Series as all other series did not work on YouTube but then I stumbled across an error... The error is: Error: __declspec(...
1 vote
1 answer
37 views

Game engine spawning objects from externally specified classes

What I mean by the title is taking a json object, and creating a new pointer object using that json object as a class. The reasoning is, I'm trying to work out how game engines spawn their entities/...
0 votes
1 answer
36 views

Using partial classes for MonoBehaviours to split editor and build logic?

I'm wondering what the best practice is for splitting editor and build logic. (Editor Classes, Partial Classes) I'm talking about moving functions like OnDrawGizmo() and OnValidate(). It doesn't feel ...
67 votes
5 answers
46k views

Why transform normals with the transpose of the inverse of the modelview matrix?

I am working on some shaders, and I need to transform normals. I read in few tutorials the way you transform normals is you multiply them with the transpose of the inverse of the modelview matrix. ...
0 votes
1 answer
45 views

Ursina Python Engine: Question about the Lighting System

I saw this Screenshot on the official Ursina Engine Webiste and wanted to ask if this is even possible. If so, how? I would appreciate any information that could be helpful. I played around with the ...
0 votes
0 answers
56 views

Confused about how Rotation works in vulkan

I set up a Vulkan Pipeline using Branden Gela's tutorials and started putting together my own system using it. I derived a class from his gameobject class. The gameobject has some transform matrices ...
0 votes
0 answers
8 views

Mirroring portion of screen from one area to another (on a single screen)

Is it possible to move skills display for example in league of legends, from skills bar to somewhere closer to the center of screen? This is only for display, dont need that to be clickable. Only to ...
-1 votes
1 answer
178 views

Error 'type mismatch' when trying to use player GameObject on a prefab

I am a complete Unity beginner. For my first project I'm trying to do a zombie shooter. I got new enemies to spawn and a player and everything, but the enemy prefab I have isn't taking my player ...
0 votes
1 answer
30 views

Sprite_index is not set

I'm following a YouTube tutorial on a fighting game. Facing an error: Var <unknown_object>.sprite_index not set. The error was here: if (sprite_index != sprKill_foward) { sprite_index = ...
2 votes
2 answers
9k views

Easiest paths from Pygame/PyOpenGL to iOS. [closed]

I have a significant game I really need to port to tablets. (Android has PyGame subset for Android, which I'm still investigating). It would be great to take my Python code and move it to a more cross-...
5 votes
1 answer
10k views

Unexpected "Identifier" in class body error when using export in Godot 4.0.2

I'm currently working on a project in Godot 4.0.2 and I'm having trouble using the export keyword in my scripts. Every time I try to use it, I get an "Unexpected 'Identifier' in class body" ...
0 votes
0 answers
17 views

Seeking Help: Implementing a Progress Bar for a Node.js Achievement System

Hi Stack Overflow community! I'm working on building an achievement system in Node.js and need some expert guidance on implementing a progress bar. Specifically, I want to track user progress toward ...
8 votes
1 answer
1k views

Godot java.lang.IllegalStateException: Service without Chimera impl

I'm published a game made with Godot 3.5.2 But Play Console report that there is an error relate to stack call java.lang.IllegalStateException: Service without Chimera impl Error happen on motorola ...
2 votes
2 answers
1k views

What is "Messages" in Unity's MonoBehaviour class? (Start,Update,Awake...etc)

What is the "Messages" of this page? (Start,Update,Awake...etc) Is is a something like virtual method or event? Or "Messages" is one of the C# syntax? https://docs.unity3d.com/ScriptReference/...
-2 votes
2 answers
67 views

Unity Referencing gameobjects in script in prefab

Is there any way how to reference a game GameObject, Canvas, SpriteRenderer using code? To give some context I now have a mechanic for randomly generating GameObjects (lakes and stuff) out of prefabs. ...
2 votes
1 answer
63 views

Multi-Checkpoint System in Godot 4 (3D)

I am very new to Godot, but have some experience in programming in Python. I am making a 3D simple movement game to learn about the engine, and I want to add checkpoints throughout the level. I ...
0 votes
0 answers
70 views

Very stupid navigation Godot 4.2.1

I have a procedurally generated map that has resources with colliders (land does not have colliders). After generating resources on the stage, I bake a navigation polygon and I have, I don’t know how ...
0 votes
3 answers
201 views

Roblox UI issue

I have an issue with centering my UI in Roblox Studio. While it looks centered on any device, I used to scale and anchor to achieve this. However, when I play the game, the Roblox and chat buttons ...
0 votes
0 answers
12 views

How can I stop multi-type when using mouse collision in pygame [duplicate]

My code have a problem multi-click when using collision with mouse.get_pos() and mouse.get_pressed(). When I click one time, sometime it's click 1 - 2 time, I cant find how to solve this one the ...
0 votes
0 answers
53 views

FPS Rotation X in THREE.JS

I'm trying to make a FirstPersonShooter controls in three.js. I have a functionnal Y rotation for my player, but my X rotation does a barrel roll, and isn't stable (I can have my camera rotating in ...
0 votes
0 answers
92 views

Why do I get this "Unknown sensor type" when creating Vulkan surface?

I am trying to set up a basic Vulkan application using SDL and ran over a problem when trying to create a Vulkan Surface. I set up a small logging info that states: Unknown sensor type. Here is where ...
0 votes
1 answer
71 views

Singleton getting destroyed

I'm writing a class with methods that can be overriden, the problem is when I construct the class that overrides the methods, the singleton works while the class with the overriden methods stills ...
1 vote
2 answers
131 views

How do I rotate a sprite in C without pixel gaps

I'm making a game engine in C and I have a rotation function that rotates an image to a degree. But there's a few problems with it. I previously had coordinates x and y, transformed them into nx, ny ...

1
2 3 4 5
77