All Questions

Filter by
Sorted by
Tagged with
6 votes
2 answers
3k views

Emulating the use of video memory (the Space Invaders fortress problem)?

I'm a veteran programmer, but I'm new to Unity and game programming (although I've made games in the past, but not with an engine). The first game I'm making is an exact Space Invaders clone, but I'...
user avatar
0 votes
0 answers
27 views

Python GLFW and PyOpenGL: How to update a VBO from a thread while rendering at the same time

I'm really new to this community. I'm sorry for any mistakes in advance.I'm making a game like minecraft with GLFW and OpenGL. The problem is, I just can't render a VBO while I update it from another ...
user avatar
1 vote
1 answer
75 views

Set SpriteRenderer tile to extend from a different side

I have a SpriteRenderer that should represent a never-ending tile floor. The idea is that we have a factory floor in an idle game that can grow forever. I got two components: Top part consisting of a ...
user avatar
  • 113
0 votes
0 answers
11 views

Minecraft Mod Textures not showing

So when I created a minecraft mod and tried adding a item and block(I was using Intellij)The texture wont show and instead there was the famous black and pink thing,is there a fix to this some people ...
user avatar
0 votes
0 answers
13 views

How to generate front and back faces in two different target in a multitarget deferred render

Is there a one pass method when using multitarget rendering for drawing the scene in front culling in one target and the same scene in backculling in anoher target within the same shader? In other ...
user avatar
  • 37
0 votes
0 answers
46 views

How to refer to a saved visual scripting variable in Unity?

I have a AoT Dictionary called AlphabetWidth that I fill with data I generate when my game starts. I mark this variable as "saved", as described here I generate the dictionary data inside ...
user avatar
  • 163
0 votes
1 answer
58 views

Why does the player rotate nonstop?

...
user avatar
0 votes
0 answers
16 views

How to utilize stacking blocks under the player object(cylinder) by using rigidbodies in unity3d?

I am working on a hyper-casual game project which is very similar to Matching Cubes. Initially, I was using transform to stack blocks under my cylinder(player object). But in the game there will be a ...
user avatar
1 vote
0 answers
79 views

How to calculate geometry term from "Multi-Scale Global Illumination in Quantum Break"?

In presentation "Multi-Scale Global Illumination in Quantum Break" from SIGGRAPH 2015, on slide 105, they present concept of geometry term, which is used to help with light leaks in volume ...
user avatar
  • 111
0 votes
0 answers
59 views

Movement diagonally is not consistent

I am making my own game and this is the first time i'm doing so. so I hope you can forgive stupid mistakes. Im making this in C++ and using the SDL2 framework. Currently, I have a character on my ...
user avatar
0 votes
1 answer
36 views

Why rotating backwards is too fast, even if I set the time to 3 seconds?

The rotation is very fast. It takes less than a second and for sure not 3 seconds. Maybe it's better to do it without using a coroutine? Or something in the ...
user avatar
0 votes
2 answers
47 views

LWJGL With Modern OpenGL

I have a question. I am following ThinMatrix's tutorial on YouTube which is about making a 3d game with lwjgl. He uses OpenGL v3.0 and higher. However, my built-in graphic card supports only OpenGL ...
user avatar
  • 3
0 votes
1 answer
46 views

Multiplayer game - Player position updates transmission pattern

I'm building a very basic 3D multiplayer game using Three.js and Socket.io where all the player does is move in an environment. Considering there will be ~ 100 players in a single room and all data ...
user avatar
0 votes
0 answers
50 views

How to stop the agent when target is unreachable

I want my player characters to stop when the target is unreachable. Please watch this video. As you can see in this video, the agents don't stop when the target is unreachable. This is my code: ...
user avatar
2 votes
1 answer
75 views

How to animate a 2D top-down fish?

Recently I've been trying to create a controllable fish character. The game is 2D and top-down. My two approaches are: Skeletal Animation, which is versatile but looks too robotic. For example, no ...
user avatar
0 votes
1 answer
49 views

Unity coroutine not yielding sometimes

I'm making a 2D platformer controller and I want to implement a coyote time and buffered jump, the way I implement both is by setting a bool to true when either action is enabled like this: ...
user avatar
0 votes
1 answer
22 views

How to reference an object that was not destroyed from a previous scene in the inspector

In a game I'm working on, I have a button on the pause menu that allows me to mute and unmute the background music. The toggle button, in the inspector, references the audio manager object and calls ...
user avatar
0 votes
0 answers
31 views

Can I upgrade Unreal 4.27 to 5?

I tried to get Unreal 5 directly but I couldn't, the only option on the table was unreal 4.27, can I upgrade to 5 after 4.27 or do I need to consume another 20 gigs for 5?
user avatar
  • 101
0 votes
0 answers
31 views

How to inspect code relating to specific content like villagers?

I’m trying to make an add-on for Minecraft Bedrock edition. I was following the tutorials but have a quick question: how do I see the code of certain stuff so that I know how to edit it? Some of the ...
user avatar
0 votes
1 answer
26 views

Anchored Pull Function Breaks at Low Framerate

To start, I'm not working with an engine and am looking for some help fixing the math behind the function I created. Say we have anchor, ...
user avatar
0 votes
0 answers
25 views

Unity - How to completely disable auto refresh everywhere (in favor of manually compiling them)

Question: Is it possible for me to create a custom script that will fully disable auto refresh everywhere within Unity (not just on script changes; in my case, asset creation/deletion in addition to ...
user avatar
1 vote
1 answer
43 views

Game Maker Studio 2 - Pixel Distortion

I am new to game development and am trying to learn how to use Game Maker to create pixel art games. I've created a demo game with 16x16 pixels art style, the room size is 1024 x 768 and the viewpoint ...
user avatar
  • 13
1 vote
1 answer
30 views

Drawing a filled ellipse in Unity

For my Unity puzzle game, I am looking to draw elliptical "shadows" under certain letters in a Text Mesh Pro text field. These shadows will have varying widths depending on the width of the ...
user avatar
  • 163
0 votes
0 answers
29 views

Sparse voxel octree LOD

I am trying to create a sparse voxel octree in Unity but I am having troubles wrapping my head around how they work. Could anyone explain to me how I can populate an octree with noise-generated points ...
user avatar
  • 1
0 votes
1 answer
37 views

Argument out of Range Exception on click of button that calls a function that doesn't use an index

Currently writing a script that builds a HUD for testing some functions in a project. It automatically builds buttons, one of which works, while the other gives the error indicated in the title and ...
user avatar
0 votes
1 answer
34 views

Custom Recipes in Minecraft Modpack (other Error)

I want to have a new Recipe with crafttweaker, which using machines from the create mod, for Netherrack like this Im playing Mc 1.16.5 At the moment I tryed this code in \scripts\MyRecipes.zs: ...
user avatar
0 votes
1 answer
25 views

Custom Recipes in Minecraft Modpack

I want to have a new Recipe with crafttweaker, which using machines from the create mod, for Netherrack like this At the moment I tryed this code in \scripts\MyRecipes.zs: ...
user avatar
1 vote
1 answer
58 views

In Unity 2021.3, is there a way to search my project files for all prefabs that have a specific component attached to them?

If many of my prefabs have an ExampleComponent.cs attached to them, how can I use Unity's built-in search to find them? If such a search isn't possible, what are ...
user avatar
0 votes
1 answer
44 views

Sphere rolling shader like ice cream

now I can make cylinder shape with shader. But what I want to do is like picking up ice cream with an ice cream scoop. How can I do this?
user avatar
0 votes
1 answer
20 views

How to make the transform rotate backwards but in FixedUpdate instead in coroutine?

First time I tried this method: ...
user avatar
0 votes
0 answers
31 views

How to separate player state on shared object?

I'm new to game dev and I'm learning about quadtrees for planet rendering. I'm curious on how do I separate player state with quadtrees. For example I have a ship A that's getting close to a planet, ...
user avatar
0 votes
0 answers
17 views

Help with export height map from Qgis to Unreal 5

I am doing a project where I want to export real world terrain map from QGIS to Unreal 5 where I want to do a visualization of the area. My problem is that I can’t figure out the correct scale, ...
user avatar
0 votes
0 answers
12 views

Able to Build Unreal Project, Unable to Open Unreal Project

I was attempting to rename an Unreal tutorial project and for sake of consistency wanted to change the name of the uproject and .sln file to match, figuring I could just change them back if it broke ...
user avatar
  • 101
0 votes
0 answers
39 views

PhysX Skeletal Animation

I am developing a game and using OpenGL for graphics API and NVidia PhysX for the game's physics. Recently I implemented skeletal animation from this site. The objects are read using assimp which ...
user avatar
  • 23
0 votes
0 answers
19 views

Playing sounds while animating in Unity

I've wanted the animation to play a sound and instantiate a gameObject when it was at a time I could have done it by using an if to check whether it is at the second I want but I want a faster way of ...
user avatar
-2 votes
0 answers
35 views

How to rotate towards a target but only on the y axis?

I tried this and it's rotating facing to the target but also on the x and i want it to rotate only on the y : ...
user avatar
2 votes
1 answer
38 views

Unity ScrollRect: Pass scrolling through to parent ScrollRect when reaching limits

I have a nested ScrollRect, or more specifically a scrollable list inside one of the items in another scrollable list. Think of it as a scrollable menu with one of the items including a scrollable ...
user avatar
0 votes
0 answers
24 views

How can i use a class for either vector3 or transform in the same variable in a mono script?

I created this class, which is attached to an object with some colliders: ...
user avatar
0 votes
1 answer
35 views

Box2D bodies order inside the world

I'm working on a small platform game using box2d. When I create the game's objects I store them inside a vector. One for dynamic bodies and one for static bodies. ...
user avatar
0 votes
0 answers
25 views

Creating an infinite scrolling background in Unity with Cinemachine

I'm new to Unity, so apologies for any oversight. I have been trying to use the following code to create a parallax effect and an infinite background in Unity. It's from the following video: https://...
user avatar
1 vote
1 answer
19 views

Large Text in Unity Inspector

I'am building a game using the webcam where I have to step back from the screen for testing. Thus I would like to display a single value in the inspector using a larger font. Is there a possibility to ...
user avatar
  • 121
0 votes
0 answers
67 views

Smooth lerp towards a moving target

I stumbled upon this function that lerp towards a moving target with exponential correction which works really well. The original author mentioned integrating the target position. Can anyone explain ...
user avatar
  • 11
0 votes
0 answers
22 views

In Unreal Engine, how do I rotate an actor in-place along an arbitrary axis?

Consider the following cube actor. How do I rotate it in-place along the axis specified by the vector v? My use case for this is in the UI, the player would be ablet to rotate an object using the ...
user avatar
  • 209
0 votes
0 answers
12 views

Is there any way to compile a python script to web like unity webgl [duplicate]

I've been working on a game in pygame for a while and decided it was too much of a hassle to compile it to all the operating systems. So, naturally, I turned to the web. While I am well aware that you ...
user avatar
0 votes
1 answer
37 views

Why is my character controller deacceleration not working?

I want my player to deaccelerate when he stop not just stop in place. Here is my code: ...
user avatar
  • 127
1 vote
1 answer
38 views

How to get data from a Scriptable Object into a Prefab template

I made a Unity Prefab where about 5 things vary. I then made an invisible GameObject where I use Visual Scripting to hardwire the 5 differing items, in order to create the various GameObjects I need. ...
user avatar
  • 163
0 votes
1 answer
25 views

Why do I get this error: "error: video system not initialized"?

The error occurs when I call keys_pressed = pygame.key.get_pressed() Here is the full code: ...
user avatar
0 votes
1 answer
21 views

Testing if instantiated prefab is colliding with environment

I'm trying to generate a number of prefabs in a scene where that scene will have procedurally-generated terrain objects. I have tagged each of the terrain objects with ...
user avatar
  • 1,368
0 votes
0 answers
26 views

How to limit camera rotation angle

I want to rotate my camera horizontally around the object 360 degree and want to limit my vertical rotation from -45 to 45 degrees. I have found some solution over internet but none of them are work ...
user avatar
  • 7
0 votes
0 answers
19 views

CreateWithShader can only be called from the main thread

Note: I encounter a strange problem. I know that as the title suggests I have to create shader/material in main thread but the same code is working with other data without using the main thread. I ...
user avatar

15 30 50 per page