All Questions
54,003
questions
-1
votes
1
answer
43
views
Adding a color picker to a Scriptable Object
I made a Scriptable Object, and added a bunch of fields to it: string, Vector3, Sprite, etc.
So far, so good! I'd like to also add a field with a simple color picker in it, that allows me to set the ...
0
votes
1
answer
20
views
Unity gameObject character stuck in T pose for scene but animations work fine when playing game
I want to put a sword in his hand but it is difficult in that T pose.
I have a nice idle animation from Mixamo (model also from Mixamo) that transitions to walk which is working fine.
My other model, ...
0
votes
0
answers
17
views
Calculating bone transformation matrix for vertex skinning
I have an issue with calculating transformation matrices for animation mesh deformation using glm in c++
I have a class Bone which does the basic calculation which does have a current local position (...
0
votes
1
answer
43
views
Empty room list on region change
I am using PUN2 for my game and I am using the OnRoomListUpdate() function to sync my UI with the rooms that are available to players when they are in the lobby. ...
0
votes
0
answers
49
views
Quaternions around a moving Sphere
I'm using quaternions in my code to move my game camera around an object in 3D space. When stationary it works great and really simplifies the code. Unfortunately when the object starts moving I can't ...
0
votes
0
answers
13
views
State machine animations not playing after an Anim montage is played
I’ve encountered a problem with my animation setup which is as such;
I’ve created a state machine in which I created a state that within It I’ve set up a " layered blend per bone " that I ...
0
votes
0
answers
55
views
How do I respond to AABB collisions?
I'm coding a physics engine in Javascript. Forces, Gravity, Friction, AABBs are taken care of. Now, the big question: how do I respond to AABB collisions? Right now, when an object collides, it prints ...
0
votes
1
answer
20
views
SDL2 and TmxLite (Tiled) (Reading the actual TILE data from the layer)
I am trying to make use of the Tiled Map Editor for my SDL2 projects. (By using the TMXLITE parser from Fallahn on Github) https://github.com/fallahn/tmxlite
...
0
votes
1
answer
57
views
Sometimes player moves too much
I'm working on a simple platform game.
I have the player - a dynamic body, which moves by ApplyLinearImpulse.
Generally it works very well, but sometimes the player ...
0
votes
1
answer
44
views
My character becomes small when moving
When I move, my character becomes small, I don't know why though. Here is my code: the first one is to go right, and the second one is for going left.
0
votes
1
answer
22
views
Raycast collision not working
I've tried to do a gun mechanic for my 3d game but when I tried to write ray cast it didn't work only layer that is printed is 0 even though it shoots and gets stopped by an obstacle here's the ...
1
vote
1
answer
42
views
Syncing chest content in a host-client multiplayer setup
I'm modding a FPS game by adding a 2 player co-op multiplayer to an otherwise completely single player game.
One game instance acts as the host and I try to implement the synchronization of the ...
0
votes
1
answer
66
views
How to detect if hit by raycast from object with name/tag
INTRODUCTION:
In unity, I want to make a dynamic, object use system. Where the main player camera shoots a raycast when left mouse button is clicked and if an object that can be used for example a ...
0
votes
1
answer
30
views
Help swapping out one player character for another
recently I’ve been working on a system that would allow the player to swap out one character for another with a touch of a button.
So far I’ve just been trying to focus on switching to one character ...
0
votes
1
answer
30
views
Box2D make dynamic body fixed on the y axes
I working on a game project using C++ with SMFL and Box2d.
I'm basically recreating the game "Jump and Hover", a simple platform game.
In the game ther is an platform thats "hovering&...
-1
votes
1
answer
30
views
Problem with my walking in gamemaker
Hello I am making a game with my friend and I am the scripter and I wanted to sort out walking he is coming to help me tomorrow. So when I click to go left I go right here is my code
Here is my code ...
0
votes
1
answer
45
views
Where did the Composite Collider go?
Some of my GameObjects have 2 Sprites nested under them, like how Cat and Snake are nested under Sprites:
The "Cat + Snake" parent GameObject has a Composite Collider 2D and a RigidBody 2D ...
0
votes
1
answer
39
views
Get all images from folder and set them in a list?
How to Load images from folder and set them in a List?
...
0
votes
1
answer
9
views
Finding GameObject with Tag, excluding this object and its children
I am new to Unity. I'm trying to create a combat game.
I want to access different game objects by tag through the FindGameObjectWithTag method, but I want the ...
0
votes
1
answer
34
views
How to execute functions through the console of a running server build
If I mark the "server build" check box in the building settings, build and then run the .exe, the game or in my case the server, will run as console with no graphics.
But what if I want for ...
0
votes
1
answer
43
views
What are some "clean" ways to go about reusing the same collection of variables?
I have 4 GameObjects, a character controller script, an enemy manager script, and a damage system script that I would reuse for several different situations in the same way for each. Currently I put ...
0
votes
0
answers
16
views
Firebase OTP credential verify doesn't work with phone number
I have 2 functions, the first function works correctly. The second one, when I put the OTP and want to verify the code from my SMS it doesn't work, it only creates a user in my Firebase database but ...
0
votes
1
answer
33
views
Cube Mapping vs Spherical Mapping
I am currently researching the difference between Cube Mapping and Spherical Mapping.
Wikipedia says the following:
In the majority of cases, cube mapping is preferred over the older method of sphere ...
0
votes
1
answer
64
views
24bit float to RGB
There's solutions to convert float to RGBA but I would like to encode a float depth value in RGB format and save the three components in three separated unused alpha channels and recompose when needed....
0
votes
0
answers
16
views
How to display the Composite Collider to a player
I have a GameObject with a Composite Collider on it. There are 2 nested GameObjects under it, each with a Sprite:
I am making an educational game, and for pedagogical reasons I'd like to display the ...
2
votes
2
answers
45
views
Animating a line around an image for Unity app
I would like to animate a line around an image, starting from the top right going clockwise around the image and then show the check mark.
The animation should be possibel to stop and restart.
There ...
1
vote
1
answer
56
views
How to make an object move and rotate the same amount as another obejct
INTRO:
I am trying to make a camera move around in a fast moving, rotating in all axis, spaceship.... This person has achieved exactly what I need to achieve if that is a good reference for you (go to ...
0
votes
0
answers
35
views
How to quickly calculate the number of tiles between buildings in a tile system
my friend and I are currently working on a city builder game like Anno/Cities Skylines but with some own ideas and tweaks. (of course, on a much smaller scale)
Currently, we are struggling a bit with ...
0
votes
2
answers
70
views
Passing a method as a parameter of another method
I'm working on a game project in Unity with a point and click interface and I'm trying to make a method that moves the player towards a target object and invokes another method depending on what the ...
0
votes
0
answers
32
views
Animation retargeting: local nodes?
I am re-targeting the animation of my model.
In my glb file, I replaced the inverse bind matrices with proper new matrices.
Now, when loaded in Blender, I get the model right in rest pose. Bones are ...
0
votes
1
answer
35
views
How to make a character walk in GameMaker
I am making a game with my friend and I'm sorting out some scripts. When I was writing the script for walking, I got the error message below. What did I do wrong?
Here is my code:
0
votes
1
answer
32
views
In pygame I am trying to add the text as an integer and it keeps crashing, why?
I am trying to convert the string as an integer when I am using the font.render() function but it keeps saying different things like it has to be a unicode or ...
0
votes
1
answer
31
views
Refresh resource folder during runtime
I am directly download some object file (3D Models) inside resource folder and the using Resource.Load I am loading those model in unity. This work perfectly but the problem is I have to refresh the ...
0
votes
2
answers
76
views
How to structure a loop so that a variable goes from 0 to 20 and then back to 0 again... indefinitely (until an outside variable changes)
I am working in Unity using Visual Scripting - but am looking here for general advice for looping algorithms!
I made a While loop that continues as long as a boolean glowactive is true. It's under a &...
0
votes
0
answers
22
views
I am trying to make a multiplayer game, and my 2d sprite shows up when I click play normally, but not when I press build and run?
When I press the play button at the top of the screen, I can see my sprite, but not when I press build and run.
Why is this?
(enter image description here
0
votes
2
answers
126
views
Game loop c++ implementation
I'm starting to develop some simple 3D game. The basic topic for a start is the game loop.
There is a solution:
...
-1
votes
0
answers
53
views
How do I make different backgrounds in my game to randomly change
I'm creating a 2D game where there are different backgrounds. I need to know about a feature where the different backgrounds can repeat one after another randomly.
I created different backgrounds in ...
0
votes
0
answers
21
views
Problem while adjusting my browser-based game to resolutions lower than 1920X1080
I have recently developed an online 2D poker game for desktop environment that runs in web browsers. The game was built using HTML, CSS & JavaScript on client side, for the optimal screen ...
0
votes
0
answers
30
views
Unity Editor 2021.3.3+ full screen in editor mode
How do you make play mode take up the full screen in Unity Editor?
N.B. There are various scripts for making the editor Maximize take up the full screen (without the unity top bar), but these do not ...
0
votes
1
answer
38
views
Java Netty cannot connect to the server
I am creating a simple 2d multiplayer game supported by the Netty library. The server is located on my local computer. I have a problem: why are some clients unable to connect? I tested on several ...
0
votes
1
answer
25
views
Save Resource Usage when Player is inactive
I have a windows standalone player which is running on surface laptop. As you know it works on batteries so i want to add a feature of power save/resource save when the player is inactive? Is there ...
1
vote
1
answer
37
views
LibGDX Invalid animation during actor rotation
I have a problem with the animation when setting the actor's rotation. Every now and then the server sends an updated actor's rotation position. The client uses interpolation to smoothly update the ...
0
votes
0
answers
18
views
Handling missing animation transition
My problem is in the animator, when an animation parameter is triggered, there are some unexpected cases that there is no animation transition from the current state to the state I want to go to, ...
0
votes
0
answers
15
views
Selective baking with Progressive lightmapper
The documentation for the Progressive Lightmapper states that it:
[...] allows you to bake selected portions of lightmaps, which makes it faster for you to test and iterate on your Scene.
Is it ...
0
votes
1
answer
66
views
Lowest quality PC development?
Okay, so I have a little bit of experience with Unreal Engine and Unity, but I am much more of a backend guy and C# is my language of choice. The difficulty I am having at the moment is that while it ...
0
votes
1
answer
55
views
0
votes
0
answers
30
views
2D sidescroller water surface shader
I am implementing a little 2d fishing side-scroller as a hobby. Here is a screenshot of the work-in-progress:
I have implemented a underwater distortion effect in a GLSL fragment shader, but I have ...
0
votes
0
answers
29
views
Unreal Engine 5 foliage paint not working
I just learned unreal engine 5 and right now is trying the foliage paint.
So I'm having difficulty of making the foliage paint to work, here is the video:
https://youtu.be/oWrE8-JBdOo
as you can see, ...
0
votes
0
answers
36
views
Unity Coroutine freezes game even though no loop
Every time I call this function that starts the coroutine Faint, it freezes the game. I do not understand why this freezes the game though, because the coroutine does not have any loop.
...
0
votes
0
answers
24
views
Need to see if you clicked a rectangle in a grid. (Pygame)
Basically, I created a grid with this:
...