All Questions

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

Infinite Loop in AStar (A*) Algorithm

Alright, so I've run into a problem where when trying to find a path that you cannot reach because it is blocked, it will continually loop and loop and loop (the 'open' list is ALWAYS filled). I ...
0
votes
1answer
48 views

Alpha Blending in Software with Gamma Correction

How does one efficiently implement alpha blending, without botching gamma? Alpha blending is basically the following expression: ...
2
votes
2answers
112 views

Why do games usually don't allow arbitrary window resize?

Why do games usually only allow some specific resolutions, instead of allowing arbitrary window resizing? Are there any technical difficulties for arbitrary window resizing?
0
votes
1answer
34 views

Unity 2D launch player towards mouse location

few notes: I'm new to game development I'm not new to developing (1 year of front end web development) I'm trying to get my character to launch towards mouse left click button (which I understood to ...
2
votes
0answers
26 views

Resolution problems with global illumination in Unity

I am pretty new to Unity and after hours of searching I have finally figured out how to set everything up for (baked) global illumination to work for my model. However the model is an export from a ...
0
votes
1answer
30 views

My script to play the intro scene the first time the player hits play from the main menu wont work

The script I am using determines if it is the players first time hitting the play button and if it is it will load the intro scene, but if they have played before it will take them strait to the game ...
0
votes
0answers
30 views

Animated texture from movie file for pre-rendered custcenes

I'm at a point with my game/engine where I need to be able to display pre-rendered movies as cutscenes onto a plane as an animated texture, say something I rendered as an animation in a raytracer that ...
0
votes
0answers
13 views

Colliders along the edge of the sprite

I am trying to make a collider along the edges of my sprite, something like what an outline shader does. I tried adding a polygon collider 2D as you can see below but it doesn’t take the shape of the ...
0
votes
0answers
11 views

2d topdown enemy moving to player without overlap

I'm attempting to make an enemy move towards a player in a topdown 2d game. Currently I have it working, by getting the angle from the enemy to the player, then sin and cos to get the destination ...
0
votes
3answers
54 views

How do I prevent players from flying too low in an infinite sky?

Let's say I have a game that allows the player completely free, open world flight, and the world itself is a bunch of floating islands. This creates some problems with flying too low, such as reaching ...
3
votes
2answers
138 views

What are the reasons to reset MMR and introduce seasons?

I have a game with a ranked mode that keeps track of MMR. Players have been asking me to have "seasons" so we can reset it and help people who are "stuck in ELO hell" climb better. My thought is ...
0
votes
0answers
14 views

Make suspension for Car using Matter.js

I'm attempting to recreate a Hill Climb Racing game through using matter.js. However, I'm stuck on the part of creating a realistic suspension using constraints. The main issue is that the constraint (...
1
vote
1answer
103 views

What is a raycast?

I use this script to build buildings on my terrain, and it works with the collider somehow. But I don't understand what it is that the raycast does to find the right place to put my building. ...
0
votes
1answer
15 views

JNI Error when Wrapping Jar with JOGL using Launch4j

I have been trying to wrap my fat JAR file into an EXE using Launch4j, but I have been running into problems when I try to execute the EXE. Here is the error log I get from Launch4j: ...
0
votes
0answers
38 views

How do I create interactive grass like this?

I would really like to create grass that reacts to the player's movements, so when they walk through, it moves away from them, just like this: https://www.youtube.com/watch?v=5Gc-Ue9_xgk https://www....
0
votes
1answer
15 views

Top-down 2D push angle velocity

I'm trying to determine the angle NPCs are pushed in when the PLAYER collides with them, like how 'Retro City Rampage' and 'Shakedown Hawaii' do when you bump in pedestrians. Here the PLAYER (green) ...
0
votes
1answer
23 views

Can I use different Tile/Sprite Sizes on the same Tilemap?

My partner and I are creating a 2D RPG with D&D elements with Unity. I am very new to Unity and making games in general, apart from 2 games which I created with Java and the rougelike tutorial ...
0
votes
1answer
13 views

Changing the 3D model of the Unity ARkit face tracking demo

I was able to get the Unity ARkit face tracking demo working with an iPhone X to animate a face model in realtime: I then tried to get it to work with my own 3D model, and imported the FBX file with ...
0
votes
0answers
27 views

How can I move and rotate an object along with another using vector math?

How can I move and rotate an object along with another using vector math? This is using Godot 3.1 using a KinematicBody2D as a ship with a ...
0
votes
1answer
19 views

Can't Create High Definition Render Pipeline Asset in Unity (Create > Rendering Doesn't Exist)

I've upgraded my project to Unity version 2019.3.0a11. It complains and can't load scripts, mostly because it can't seem to load the original HDRPipeline. I want to make graphics display properly. In ...
0
votes
2answers
67 views

Implementing a main loop with rendering in a Windows Desktop Application

I'm writing the beginnings of a small game engine in Visual C++. What I have so far doesn't seem to be updating the rendering each frame, but I don't understand where I'm going wrong with it. The ...
0
votes
3answers
34 views

Player going out of boundaries

So, I been following up the Space shooter tutorial on Unity, I had an issue where the project was acting up with an alpha version, so I was able to get a version that worked on a old release and ...
2
votes
2answers
61 views

Sort buttons in unity 2D

I've a list of buttons that I create using XML stored data. To achieve it, I've created a Prefab. These buttons are created correctly, and now I want them to be ...
0
votes
3answers
57 views

Instead of using yield wait for seconds can I use a UI button for async?

the code below is the code I use to load my game scene ater the intro animation plays. The way it works is that it preloads the game scene because it is big enough it takes time to load and activates ...
2
votes
0answers
33 views

How to properly interact with game objects in Unity3D? [closed]

I am trying to make a game where player will be placed in the scene and the goal is to explore it. He can interact with game objects that player can find in the environment, like picking object, ...
0
votes
1answer
33 views

Character doesnt move along with his rotation

Decided to change my character movement from transform.Translate to a rigidbody movement, the only problem is that my character is not moving to where he is facing, also it falls really slowly in the ...
0
votes
0answers
39 views

chunk based collision

I have been trying to figure out why my collision tiles act so strange; I put I collision tile above a normal chunk based tile but it seems to not work - the collision tiles seem to appear in the ...
0
votes
2answers
42 views

Extending control remapping script to work with mouse buttons

I have created a default key map for my game, however I have also included an option in the settings where the player can change the key bindings. My issue is if the player clicks on the button for ...
0
votes
0answers
47 views

Why do these textures tile rather than just overlap?

It might help to provide all the details, so here is the YouTube tutorial which sparked my question. There's a prefab of the background tile called "Tile Background." This prefab has the default ...
1
vote
1answer
69 views

How would I run a VR game that depends on external hardware?

I have a VR game idea which is being built on Unity with external hardware (Arduino, Gyroscopes, etc). I have thought of ways to connect the Arduino to Unity but what I am now struggling with is ...
0
votes
0answers
18 views

Unity Model causes screen to go black

So ive been having this problem for a while and i have no idea whats causing it or how to fix it. Some objects in my scene causes my camera when looked at to turn black as you can see from the gif i ...
0
votes
1answer
37 views

Errors when building game to any platform

As a newer Unity user, I've never had this problem before. I looked around on the internet and didn't find any help except to reimported all my assets which did not help. I get these errors when ...
-1
votes
0answers
60 views

Behaviour modifiers on classes

I am trying to make a simple game where you have a weapon and you can attach things to the weapon that changes the behaviour of said weapon. But how do you design code for this behaviour overriding/...
0
votes
0answers
32 views

Approach in implementing the web browser game

Im Phil and try to figoure out the best approach for my app. I was searching Stack for my question but I didnt find a completely answer. Assumptions: It will be multiple user who can see in real time ...
0
votes
1answer
37 views

Which is a better way for moving 3d objects in OpenGL?

I'm learning OpenGL, and I'm a bit confused. I've just learned about projection and modelview matrices which can be used for moving things. This is the first way, which is convenient if I want to move ...
3
votes
1answer
79 views

Multiplayer oriented game engine object (C++)

for a personal project i started making a 2d game engine in C++ that uses sfml. The idea is having base "game object" classes from which a game will inherit. Right now i have: Game_engine class ...
0
votes
0answers
12 views

MonoGame - Model not rendering properly

I'm trying to render a model made in Blender. I export it to .fbx and import it in the content pipeline, load and draw it, but it displays like this: And this is what it looks like in Blender: Code ...
1
vote
1answer
38 views

Edit existing editor inspector?

I want to write custom inspector for one of my scripts. All I want to change is input method for one of the strings to popup (so instead of writing whole string everytime I choose it from premade list ...
0
votes
0answers
30 views

How do I apply chain lightning effect and logic to multiple enemies in 2d xna/monogame? [closed]

My game is in pixelart and I want to know how to apply cool lightning effect and the algorithm to cast the spell on multiple enemies. It is 3/4 top down perspective.
-1
votes
1answer
24 views

How to rotate a point around a pivot by changing the axis

I've been stuck on this forever now because I don't understand math in the slightest and when people talk about matrices they just give the table and don't explain how to actually go through each step....
0
votes
1answer
52 views

How to start building the racing levels in unity? [closed]

I had an idea of making more fun less redundantly designed level for a racing game, i have core mechanics and ui of the game sorted out but i m confused where to begin with the levels and how do i ...
0
votes
2answers
59 views

AABB Collision Detection Confusion

I am trying to understand and implement AABB collision to learn simple 2D game physics. I'm following a tutorial and its method is a bit different to other websites. It uses the center of the object ...
0
votes
0answers
25 views

Text Pooling Optimizations

In my game I have created popup text for gained points when enemies are killed. it pops up wherever the enemy was and will say something like "+32" float up a bit and fade away at the same time. ...
0
votes
2answers
37 views

In Unreal Engine 4, how do I get the component's “game object” via C++?

I have an ACharacter instance with a weapons component that inherits from UActorComponentattached to it. I'm currently writing ...
0
votes
0answers
19 views

Inclusive vs Exclusive voxel bounding box

Let's say I have a few voxel at (1,1,1) and (2,2,2), I would like to know if would be better to consider that the smallest box that contains both voxels is either (1,1,1) to (2,2,2) or (1,1,1) to (3,3,...
-1
votes
1answer
208 views

Fastest Software Gamma=2.2 for RGB?

With gamma=2.0 you can use that Carmack's inverse sqrt hack or a lookup table. Yet all standard graphic formats mandate the use of gamma=2.2, and SVGA framebuffer also requires it. Unfortunately, for ...
0
votes
1answer
17 views

Can a Unity button detect a tap AND send that tap through to objects below it?

I'm trying to make a "highlight frame," like a flashing box around a button for use in the game's tutorial. When the frame is tapped, I'd like it to register the tap (so the frame can be dismissed) ...
0
votes
2answers
40 views

How to add multiple transforms to a collection?

I have an array of Transforms: public Transform[] monsterOne; I can put a child's transform in this array using this code: ...
0
votes
2answers
30 views

How to access specific child indices (directly, not using tags or searches)?

I have a game object whose prefab is structured a very specific way. It is a conveyor belt. I intend to arrange them end-to-end and animate them all at once using a script. Right now I am trying to ...
0
votes
0answers
28 views

Blitting multiple SDL_Surface texts on top of an empty SDL_Surface results in strange outlines

I'm trying to create a single SDL_Surface that has multiple lines of texts stacked on top of each other using SDL2. When I create a single ...

15 30 50 per page