All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

Generation of path for rotating sliding puzzle

I got for my birthday a cool wodden puzzle box. The very first puzzle that has to be solved is a sliding panel puzzle. A move consists of either Pushing one of the six smaller wodden boxes up or down ...
0 votes
1 answer
469 views

What's the fastest collision detection

I want to build a simulator using Game Maker in which there are many (up to hundreds) of obj_Cell, each has a radius of 10, (they don't have sprites, they just draw ...
0 votes
2 answers
5k views

SpriteBatch being drawn outside of Stage?

Currently working on my first game, though running into some problems with libgx and screen aspect ratio. What I have is a Stage which contains things like menu buttons etc, and the rest of the game ...
1 vote
2 answers
1k views

How to calculate how much revenue a game will make?

Let's say I've made a game X. Things we know about the game: It's a board game Game will run on PC, Macs, iOS and Android Sold through Steam, App Store and Google Play store Turn based Has few to ...
8 votes
1 answer
2k views

LibGDX Box2D Lights - Illuminate background

I have a box2D world made of tiles. I use a custom DirectionalLight for light up the scene from above (It shines through transparent blocks [eg.: the water] more deeply). The problem is (as expected), ...
4 votes
2 answers
4k views

What makes a shader function with a LineRenderer?

A LineRenderer has both Material and Color properties. But many shaders do not work, ie the line will not respect the Color property, or the line will show black (regardless of the materials having ...
0 votes
0 answers
18 views

How to set matrices for different objects, in OpenGL?

Not sure how to do it, since I'm only seeing one instance of matrix-use drawn (only one of the objects has an energy bar): ...
0 votes
1 answer
1k views

Map with media texture not packaging

I have a simple map with a Big-sphere and a pawn inside it. I use media texture and media player to play 360 video on it. But when I try to package it for windows-64 it fails while it tries to cook ...
0 votes
1 answer
53 views

Why is my perlin-noise generated texture a uniform grey?

I'm following Brackeys' tutorial for perlin noise and i'm at the point where he's just done the offset thing but this whole time all that i'm seeing in my project is a plain gray square, no matter ...
0 votes
2 answers
61 views

Generating random "roughly circular" polygons

I am trying to generate a set of points distributed in such a way as to give a "rough circle" sort of shape. The points should not deviate too far from neighboring points, with larger jumps ...
1 vote
1 answer
65 views

Connecting Isolated Paths in Randomly Generated Maps

I am new to game development, I previously created games using tiledmap editor and pygame, but manually creating map was real pain, so i begun to look how can i procedurally generate map, after ...
6 votes
3 answers
2k views

Counting multiple touches using Cocos2dx 3.2

I'm trying to count the number of active touches in screen in order to perform an an action in case that there are two touches: ...
0 votes
0 answers
18 views

I want to change the tint of my panoramic skybox for daylight cycle

So i am trying to create a daylight cycle, where it switches between two panoramic images. The change happens slowly one over 2 minutes and the other over 3. During this the fog and light changes ...
0 votes
1 answer
28 views

Unity shader invalid subscript worldPos

I am trying to write a shader for Unity that replicates Splatoon's painting system, but I cannot get the shader to compile. It has an error on line 41 stating invalid subscript 'worldPos' at line 41 (...
0 votes
1 answer
611 views

Script Component not Being detected by Vuforia's Default Trackable Event Handler Script

I have a Script Component named Start inside a GameObject named StartSpawn and I am trying ...
0 votes
0 answers
18 views

How to match Sprite3D's collision poly to its billboard transform?

Assume there is a Sprite3D with a Y- billboard flag on. This sprite3D has a matching CollisionPolygon3D Collision polygon3D is set up to "look" at the camera with a look_at() function, ...
0 votes
1 answer
51 views

How to prevent Sprite3D from clipping into nearby objects?

Gotot 4.2 Sprite3D is very useful for representing 2D objects within the gameworld. However, when billboarded (Y-billboard), 3D Sprites are prone to clipping into the floor/walls/other 3D models they ...
0 votes
1 answer
1k views

Gpu crashed or d3d device removed

fellow StackExchange community. Probably everyone who has worked with Unreal Engine 5 has had this error. In general, it is associated with incorrectly configured video card drivers. But as my own ...
0 votes
0 answers
24 views

Adjusting texture generation inside a quadtree

Well, I'm trying to adjust the position of generated textures using this approach. I replicated this in Unity3D for a complete texture of 4096x4096: The point is that I need to generate the same ...
0 votes
1 answer
650 views

How to mute the background music when an ad begins to play when a scene is loaded?

I am a bit of a novice here but I have created a game and I am showing ads when a scene is loaded but the background music keeps playing in the background. Is there a way in which the background music ...
2 votes
4 answers
2k views

Collision Detection in a big map?

So I've been wondering lately... on games like pokemon (on ds and gba), How did they handle the collision of all those tiles in the map? Should all those collision checks running in the background ...
0 votes
0 answers
40 views

How to make an object keep same relative position and orientation using only velocity

I have object A, I can get any information I want from object A (global position, velocity, etc) I have object B, which is positioned and oriented in a certain way relative to object B. There is no ...
2 votes
1 answer
5k views

Rotate from Current Rotation to Another using Angular Velocity

I am attempting to calculate an angular velocity that will get me from the current gameObject.transform.rotation to a given Quaternion rotation using angular velocity. I've tried several methods but ...
5 votes
1 answer
2k views

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone. Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq On the desktop ...
9 votes
3 answers
18k views

How to decompose sprite sheet

I have a lot of spritesheets that are poorly formatted that I want to decompose, or split out into many small images, one for each sprite. If I can do that, I can use my custom texture packer tool to ...
1 vote
0 answers
39 views

Predictive Aim to shoot a moving target with a constant velocity while the projectile is affected by gravity (2D/Platformer view)

I've been working on creating stationary gun turrets that can shoot down missiles in my game. The bullets are affected by gravity while the missile moves in a linear path at a constant rate as if it ...
1 vote
0 answers
24 views

How To Deal With Time for Entity Interpolation for Multiplayer Games

I am currently trying to make a simple multiplayer game but had a little bit of trouble implementing client-side entity interpolation for entity movement. For some context, I am aiming to make a ...
1 vote
2 answers
76 views

2D Zoom to mouse point

So I'm trying to create a zoom function for my 2D camera. The best result I've got so far is: But something still feels off, and I just can't seem to pinpoint it. My code currently, which simply ...
0 votes
2 answers
1k views

Things not appearing in front of canvas (follow up)

Follow up/related question to: Things disappear in front of Canvas I'm having a very similar problem, where things are not appearing in front of my canvas. This time a particle system. I have tried ...
-1 votes
0 answers
31 views

I'm looking to develop a tapping game based on Hamaster Kombat... Is there a way to clone the original and build upon it? [duplicate]

I'm looking to build my version of Hamster Kombat. Is there a way to clone the original to minimize the dev time?
0 votes
1 answer
31 views

BSP Tree Troubles and Unpredictable Results

I've been trying to fix this problem myself for ages, but I really do need help. I'm creating a BSP tree for my 3D game (baked in the map files, quake style) to replace my existing naïve collision &...
2 votes
2 answers
122 views

How to record high quality footage for a game trailer?

I'm trying to record a trailer for my game using OBS, but the recordings are coming out in very poor quality. I've tried increasing the video bitrate, but that just makes the game lag during recording....
0 votes
1 answer
7k views

How do I detect if my object is grounded?

I am trying to detect when an object is grounded. My script right now is: ...
0 votes
0 answers
30 views

How do I repeatedly change the colors of a list of cubes in run time without causing a bottleneck to my fluid simulation?

I am coding a 3d fluid simulation. I want to render each cell of the simulation grid with a cube, so I have a grid of cubes. Each cube has its own color, and the colors are stored in a compute buffer. ...
2 votes
2 answers
679 views

Select a button without calling click

i have a grid layout group containing buttons. My game must be playable with a joystick and so I have to navigate the buttons using horizontal/vertical input. My problem right now is when the layout ...
3 votes
3 answers
5k views

Unity is reimporting everything! How do I stop that?

I have a relatively large project (about 8GB) and it is constantly reimporting itself over and over, to the point that I spend 80% of my time waiting for Unity to: Reimport everything Stop hanging. ...
1 vote
1 answer
638 views

Circular draggable UI element in Unity canvas

I am trying to implement my own runtime color picker that's easy to use for touch interfaces. I want the hue slider to be a ring, along these lines, except the whole ring texture would rotate when ...
1 vote
0 answers
52 views

Game published for web freezes for 2-3 seconds the first time an explosion effect triggers

Using Godot 4.2.1 when exporting my game to HTML5 it runs completely fine until an explosion effect is spawned on screen for the first time when killing a mob, the game freezes for an entire 2-3 ...
1 vote
0 answers
17 views

2 object snapping using bounding boxes in Unity Runtime

I am using boundary boxes for all calculations. In the image below you may see a case where this objects need to be snapped. Currently the calculations go as following, the rotation is changed by the ...
29 votes
7 answers
8k views

Procedurally generate regions on island

I currently have islands that look like this: And I want to procedurally subdivide it into regions, like this: What algorithm does what I'm looking for? Do you have suggestions on how to create ...
1 vote
2 answers
5k views

How can I optimize these GLSL bitwise operations?

I need the following part of my vertex shader simplified. ...
2 votes
1 answer
395 views

2D Pathfinding with rope constraint

I have a character linked by a rope to a fixed point, in an environment with obstacles. I want to do a pathfind that take into account the rope. Here, if the character followed my current pathfind in ...
1 vote
1 answer
63 views

How do I apply a post process animation blueprint to a skeleton?

I tried to migrate the rifle anims from the lyra sample project. I am using the same skeleton as the Lyra project, but the wrist is twisted once they are retargeted. If I open the anim before ...
0 votes
0 answers
25 views

Problems with compiling with llvm and gcc, while trying to link external libraries to EngineCore.lib and finally linking core to EngineEditor.exe

Help me I Cherno's followed game engine series and branched to add 3D capabilities. I am having issues while linking libraries, at first I just wanted to share Game Engine code with friends, but not ...
2 votes
1 answer
1k views

How to add an icon to a script registered as a class?

While learning Godot, the tutorial dictates how to add an icon to a class. Tutorial You may add a comma and an optional path to an image to use as an icon. You will then find your new type in the ...
1 vote
0 answers
41 views

Cannot transform vectors from viewport to world

I started working on a small raytracer project, and i decided to reuse my already existing openGL renderer to do this, i'm using GLM to manage transforms/positions. However, i stumbled upon a very ...
0 votes
1 answer
74 views

IIn video games, are slight damage details, like say on a tank, made by modifying the geometry or by using textures?

Here are images of real tanks and I drew arrows into the places with slight damage: In video games, are those made by modifying the geometry or with textures?
5 votes
3 answers
4k views

Scene graphs and spatial partitioning structures: What do you really need?

I've been fiddling with 2D games for awhile and I'm trying to go into 3D game development. I thought I should get my basics right first. From what I read scene graphs hold your game objects/entities ...
5 votes
2 answers
4k views

How does a BSP tree work for Z sorting?

I'm developing a 3D engine in software, and so I must compute Z sorting manually. I'm currently using the painter's algorithm to sort triangles and then drawing them back-to-front. This causes ...
0 votes
1 answer
2k views

Stop 2D platformer character from sliding down slope

I'm making a 2D platformer game with the default Unity 2D physics. I am implementing slopes, but my player slips down the slope because of the physics. Here is the code I use for the player movement: ...

15 30 50 per page