All Questions

0
votes
0answers
8 views

My GameObject keeps spawning when it shouldn't

I'm trying to instantiate a new gameObject when the current gameObject gets to a select point. The problem comes when the program gets to the second if() statement. It sets the floorsSpawned to 1 and ...
0
votes
1answer
7 views

How to decrease the size of a distance?

I made a code for the character to be teleported to the place where the mouse cursor is, if the distance is less than or equal to 350. Blueprint: I happen to wish that if the distance were greater, ...
0
votes
0answers
7 views

How does mmorpg store data?

I want to use sql database in my server.exe. lets say 1000 users online. And players will change their datas when they play. And server need to save these updates. But how ? i think there two way: ...
0
votes
0answers
7 views

Windows 10 GPU Engine Performance Counters - Phys / Eng Meaning

For performance tracing of intermittent degredation in performance I wanted to use the Performance Counters available in Windows 10 1809 under GPU Engine -> Utilization percentage. This particular ...
0
votes
0answers
6 views

Where is the part of the code of the mouse click in the TopDownCharacter blueprint?

I have a project where by pressing the B key, the character after a time interval is teleported to a point on the map. I can do this. It turns out that I imposed conditions so that at the end of the ...
0
votes
0answers
12 views

FPS Character Controller movement - Any value in reverse engineering movement formulas?

from what I know character movement in popular FPS games tend to be non-linear, but the easing curves change between games as each has its own signature formula. Typically I image the physics engine ...
0
votes
1answer
12 views

Framerate Dependant Steering Behaviour

I've been studying steering and flocking behaviors, if not directly from Craig Reynolds work on Steering Behaviors For Autonomous Characters (http://www.red3d.com/cwr/steer/). I understand the basic ...
0
votes
0answers
28 views

Quaternion rotation is inverse of what I expect

I'm trying to learn quaternions and decided to implement my own quaternion class. To test it I made a couple vertex shaders, one that gets a model matrix (calculated from the quaternion) and another ...
0
votes
0answers
7 views

Animation approach recommendations

Being a novice in game dev I can't find a clear answer on how to decide what way to implement an animation is the best for different scenarios for 2D game. With Unity I can implement animations ...
0
votes
0answers
8 views

Getting location / bounds of centered text

I want to show a dialog box where the user should answer a question. It would look like this: The question is aligned horizontally. I don't show the entire question text right away, but it builds up ...
26
votes
6answers
5k 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 ...
4
votes
2answers
1k views

Why is SpriteBatch.end() generating null pointer exception in this code?

I am getting a null pointer exception using libGDX that the debugger points as the SpriteBatch.end() line. I was wondering what would cause this. Here is the offending code block, specifically the ...
0
votes
0answers
12 views

Physics.CheckSPhere is not working

I try to use Physics.CheckSphere to check if a coordonate is empty. I use three for loop to cycle threw a 2 x Y x 2 chunk. The problem is that it return true if the corner is touching the coordonate ...
2
votes
1answer
83 views

How to make procedurally generated terrain look realistic

I generated a terrain using a technique from this blog post, everything worked well and I got the wanted result. This is what my generated island looks like: As you can see the terrain have a polygon ...
-1
votes
0answers
13 views

How can I apply two tranformation matrices to my spritebatch.Begin?

I have a 2d camera and a scaling matrix in my game. My question is how do I include both of them in my spriteBatch.Begin? From what I understand I can only use one transformation matrix for each ...
1
vote
1answer
32 views

How to know if two surface are in the same direction?

In my code I creat a Mesh that are composed by multiple tile. those tile can have edge that are shared, and I need to know if the normal of the tile that have shared edge have the same direction, ...
0
votes
1answer
34 views

makeing a quest system in a html clicker. need help making repeatable quests and quests being done

So i have a pretty good clicker quest system in place( click/ use spells/collect stuff etc) but im having a hard to making it a reward system. The reward should only go off once then the quest should ...
-1
votes
1answer
44 views

How to turn a delay in attack speed?

I would like the delay that defines the interval in which the warrior deals damage to an enemy, was calculated based on a number of attacks per second and not a delay. Explaining best, I'd like to ...
1
vote
3answers
187 views

Is it possible to avoid global data in a Multi User Dungeon (MUD)?

I am currently designing a Multi User Dungeon (MUD). For those who do not know what it is, they are the ancestors of MMORPGs. There is no graphics, everything is played in a console by typing commands....
27
votes
2answers
7k views

Why do some games show lights shine through walls?

In some games, I see lights shining through walls, even if I set video quality on high levels. A couple of examples of games I recently played are Borderlands 2 (missile explosions) and Call of ...
8
votes
3answers
9k views

How to perform collision detection in 3D space?

I've got to write, what can be summed up as, a complete 3D game from scratch this semester. Up until now I have only programmed 2D games in my spare time, the transition doesn't seem tough, the game's ...
0
votes
0answers
14 views

Coroutine constantly updating animator transition

I have a problem for a while now and I am running out of ideas: I have a made a coroutine used to implement animations in the attacks, something like this ...
0
votes
1answer
27 views

Detect collision point [duplicate]

I'm writing a 3D rigid body physics engine, I am using OpenGl for simulation. Only convex objects are considered. My question involves how to detect the point of ...
2
votes
0answers
36 views

Unity playing run animation but retaining a t-posed model in the background

I downloaded a character in Mixamo without any animations and then proceeeded to download a separate FBX with animation then without any mesh, so I have 2 FBX files. I then proceeded to add the ...
1
vote
1answer
14 views

How can I play and stop a Visual Effect Graph effect through script?

Can anyone please give an example lines of code one could use to play/stop a VFX through C# script.
1
vote
1answer
415 views

How to delete Unity Hybrid ECS Entities?

I'm trying to get into Unity's Hybrid ECS feature. Creating and Manipulating Entities has worked fine so far for me, but somehow I can't find a viable option to delete Entities which works 100% of the ...
0
votes
2answers
42 views

Getting notified about a change of a public variable in a script

I have a script attached to a GameObject. In this script I have the variable public int Rotation If this value is changed, I need to do some calculations. I ...
0
votes
2answers
41 views

Bullet is not instantiating properly in Unity

So I'm trying to make a simple weapon where I just instantiate a bullet at the Shoot Point's gameobject position. For some reason when I press down on my mouse the bullet just flies up. Any ideas on ...
2
votes
1answer
265 views

How do I render Hindi text in Libgdx?

How do I render Hindi text in Libgdx using any font? For example, I want to render the word "प्रकार". Here is what I have, so far: ...
0
votes
0answers
20 views

how to create a curve movement of slider in unity

I am trying to create a curved (not circular) movement of slider. Here is my demo images for reference: I have watched some tutorial but those are for circle images. I want to make this movement ...
1
vote
1answer
30 views

What is the connection between these LibGDX concepts?

In LibGDX, what is the connection between these concepts: stage, camera, viewport, batch (spritebatch), projection matrix, tiledmap? Currently my game has 3 stages: UI stage entity stage tiledmap ...
0
votes
0answers
30 views

How similar can my game be to a AAA game? [duplicate]

(This is just an example so take it lightly) Say I want to make a 2D game heavilly inspired by a AAA game. For example GTA V. The names and story remains the same. except everything is in 2D but ...
0
votes
1answer
44 views

Capsule to Sphere Collision

For my Maths unit at university, we have to manually calculate if a sphere is colliding with a capsule collider. The information I have to go with is this; You have the following Sphere: LadyBird3 -...
1
vote
1answer
25 views

Unity Colliders - How do I detect nearby objects without my detection ranges detecting each other

How can I get both colliders' types in a trigger overlap message like OnTriggerExit2D(Collider2D other)? Example: ...
0
votes
2answers
64 views

Overlap detection does not work correctly when there is more than one warrior colliding with the tower

I have a project where warriors are generated and they follow a route. In this route has a tower, when a warrior overlaps that tower, it takes 5 of it life, and he does it every 1 second. Code of the ...
2
votes
1answer
50 views

OpenGL Textures: Texture contains color lines when object is further away that some distance

I tried searching on the web but couldn't find a reason for this. When I render an object close to the camera, the object and texture renders fine. But further away from a fixed distance, it starts ...
0
votes
0answers
13 views

How to move sprite on z-axis in 2D Unity

I am making a 2D game and I am having trouble in setting up a sprite movement. Here is a picture for reference what I want to achieve: Now car is moving forward (I have done that using road and car ...
0
votes
0answers
31 views

Rotating A two point around circle?

Currently I M Working On 2d Game in my game problem is when i m click leftarrow and right arrrow point are not rotated?? Code: ...
2
votes
0answers
50 views

How can I make a tendril flame like aura visual effect?

I am a bit new to UE4 and I'm trying to get a tendril flame like aura like the picture below. Does anyone know how I would go about this? Should I use post processing or particles?
-4
votes
1answer
68 views

How can I execute a C# script even if my game is closed?

I've made a game with Unity and I want to execute a C# script that runs even the game was closed. I searched a lot but didn't find anything.
1
vote
1answer
37 views

Using a setTimeout to Jump

I am trying to make a jump function. I am making a game in html5 canvas with Javascript. I have gotten the player to move. When making the jump function I decided to use a timeout to reverse the ...
0
votes
1answer
67 views

PyBox2D car moves uncontrollably

I am trying to program TopDown Car using python and Box2D (similar to this tutorial: http://www.iforce2d.net/b2dtut/top-down-car ) The steering is so far limited to thres states of wheel rotation, ...
0
votes
1answer
13 views

AudioClip generated by an external process and loaded into the editor has no samples

I'm working on a custom ScriptedImporter -- let's call it LmmsImporter -- that loads project files from the LMMS sequencer as <...
0
votes
1answer
19 views

Unity WebGL Build: Why it shows only Empty Folder?

i'm trying to built my game, made in Unity 2018.3, and i'm trying to built it in WebGL, but the problem is this: built was succeeded, but the Folder is still Empty, and here is the problem occured: ...
1
vote
1answer
56 views

Is there a way to set a shader define in Löve?

I know I can use shader:send() to change variables, but is there a way to set/change a #define?
1
vote
0answers
44 views

Bullet physics convex hull center of mass

I am trying to make a convex hull collider for bullet physics. I am using BulletSharp.CompoundShape and BulletSharp.ConvexHullShape. This is model of a chair in unity with rigidbody and convex mesh ...
0
votes
2answers
119 views

How can a variable have two values at the same time?

Just to clarify, I do not want to know how to make a variable display 2 values ​​at the same time. I want to know how this is happening in my project. In the Level Blueprint I have a timer that ...
0
votes
0answers
30 views

How can I move the character to the center of the screen when the user clicks with the primary mouse button?

I am a newbie at this and I'm just trying to learn how to do different things. I am wanting to move a character sprite in a horizontal line, toward the center of the screen when the primary mouse ...
0
votes
2answers
2k views

Unity - How to get nicer shadows from distant point lights?

I get too unsatisfying results for shadows when using a point light that is far away. (The quality settings are maxed.) The scene: The result: The light: What can I do to get better shadows?
0
votes
1answer
25 views

unity 3d loading data from json problem

i am trying to practice on loading data from json files my problem is about when i try to load the sprite path from the json file to load the image icon from the floder that contain it, i manged to do ...

15 30 50 per page