All Questions

Filter by
Sorted by
Tagged with
-1
votes
1answer
12 views

What is a Frame and Frame Per Second?

I'm new to the unity Editor, trying to understand Unity scripting. What is frame? I can't tell from how it's used whether "frame" is a function, or a measure of time. I see this term used in ...
0
votes
0answers
21 views

For storing enchantments, which is more efficient?

I am making a game, and I decided to totally copy Minecraft's enchantment system. Other enchantments you might see are ones I am adding to my game. I have a few candidates for storing enchantments. ...
0
votes
0answers
4 views

How to add a flash light to a particle explosion

I've an explosion effect using particle system. Explosion occur on air, so I want to add a "flash" light effect when explosion occur (that light sky and terrain ). Can you suggest me best way to ...
1
vote
0answers
16 views

Techniques to mitigate microstuttering when the FPS is above 60fps and vsync is off

The problem with first person shooters is that your input is important, and coupling it with VSync ruins it. The following frames per second data when rendering with OpenGL shows: 60-100 fps: ...
0
votes
1answer
25 views

Unity2D force of an impact

I'm in a front of a math problem ! I dont know how to name what I am searching for... Force, Impact ? It's easier to explain with an image for me. We have two gameobject with collider, A and B. They ...
1
vote
1answer
33 views

When do you use StartCoroutine and when Invoke?

I am confused. Both seem to do the same thing: Delay a method. Both Invoke and StartCoroutine allow you to call a method by name (string). ...
2
votes
0answers
21 views

Mimicking enemy boss movement of Wonderboy in Monster Land

I want to imitate the movement of the "Death" boss enemy in Wonderboy in Monster Land. At first, I thought it just moves with a sine wave, but it's not. The up and down movement is erratic. I ...
0
votes
1answer
10 views

SetIKHintPosition and SetIKHintPositionWeight seems to have no impact

I have recently been exploring Unity's inverse kinematics, to further polish the interaction between our rigged avatars and props. I have made a sample project, using PuppetMaster's basic humanoid ...
0
votes
0answers
21 views

Part of the back side of a transparent object disappears

I did some blending and culling to get the image below. As you can see, it is messed up. On the right side of the image, only the front side of the mesh shows. On the left side of this image, it ...
0
votes
0answers
13 views

Disposing objects when changing screens

I'm making my first game with LibGDX and Box2D, and I've realized that the memory used increases when I change screens. It starts from 150MB and progressively reaches 850. How should I deal with this? ...
0
votes
1answer
18 views

In Unity how do I make a button call everything suscribed to the “onEndEdit” event of an InputField?

How do I make a method (that is going to be called every time that a button is pressed) to call everything subscribed to the "onEndEdit" event of an InputField? I expected something like this: ...
0
votes
0answers
7 views

PIXIJs V5 boilerplate implementation [on hold]

I'm looking for a good and modern starting point project that uses PIXIJS V5 and ES6 with Object Oriented Programming. I found this page: https://github.com/pixijs/pixi.js/wiki/v5-Boilerplate but all ...
0
votes
0answers
7 views

Unity detect tap on object or area with Raycast turned off on the object

I have a large dial which can be rotated by touch. I have a circular crosshairs at the top to show which number is selected. I have had to turnoff the Raycast Target...
0
votes
0answers
26 views

How to do Colored Lights in CIE XYZ/LUV-like Space?

I've a 2d background, some sprites, blitted onto it. And over all that in the final pass I draw colored lights, to make projectiles look cooler. Basically I apply a classic lightmap, which is colored ...
0
votes
2answers
56 views

Modify the effect of a card being played

I'm trying to recreate a simple card game. Each played card has an action (draw extra cards, peek at draw stack, eliminate an opponent card, etc). Once played, it goes on a stack, and the card effect ...
-3
votes
0answers
24 views

Open .AB files as an image? [on hold]

Hi is there any way to open an .ab file as an image? The .ab files were from a game .obb file.
0
votes
0answers
14 views

Depth Mask Shader

How can I use this in Unity to render something only at a specific depth, for example : I have small boat on the water surface but I see water surface inside boat.
0
votes
1answer
32 views

Unity get component throwing NullReferenceException only in standalone build

I'm having a very frustrating issue with GetComponent(). ...
0
votes
1answer
30 views

Animator from another gameobject keeps disappearing from script on play

I am working on a gun script and it worked fine until earlier today when I made a change to the script and it stopped working. I put it back, but for some reason now the animator object attached to ...
0
votes
0answers
15 views

Unity particles rendering on top of camera space UI

I'm using LWRP in Unity 2019.1.12f1. The UI is in Screen Space - Camera. The shader used for the particles is Lightweight Render Pipeline/Particles/Unlit (Transparent, Premultiply). Any ideas?
0
votes
0answers
14 views

Indicator for multi objects?

I'm trying to make indicator detect a certain objects in my scene. Where every arrow point at separate object. for example, face with two eyes. my script will look for those eyes"dead_point" and clone ...
0
votes
1answer
19 views

Find optimal placement for label/sticker on a simple polygon with holes

I'm working on a real-time archviz renderer and I need to place a label/sticker/decal on walls, which have openings. So one way to think about this is a simple (possibly concave) polygon with holes. ...
0
votes
0answers
13 views

Unity Space invaders with top 3 players [on hold]

I'm about to create a simple Space Invaders game but I have a difficulty on it, I have to create like a Top3 weekly, from all the users and get the top three most scored users, this is easy, is a ...
0
votes
0answers
28 views

How can I mod Crusader Kings 2 to prevent vassals from declaring Holy Wars?

I would like to have a playthrough where my vassals cannot declare wars. I have set "vassal_wars_law_2" to all my subordinate kingdoms, and yet, this regularly happens: I think that to prevent this ...
0
votes
2answers
37 views

How can I calculate all the tiles visible to a camera in 2D?

I am creating a basic tile-based 2D game ~mostly from scratch in Java, however all I need is pseudo-code for how this could be achieved.  My problem lies in the fact that my world (stored in ...
0
votes
2answers
33 views

How to limit camera pitch (x rotation) between two angles

I use this script rotate the camera on its local X axis: float v = verticalSpeed * Input.GetAxis("Mouse Y"); transform.Rotate(-v, 0, 0); Right now this lets ...
0
votes
0answers
11 views

Unity cloud build speedtree textures incorrect type after build

So I finally (after a few days) got unity cloud build to work. When I build it using the unity editor everything is fine. However, when the cloud build service builds it I get some odd textures for ...
0
votes
0answers
5 views

Difference b/w Facebook instant web hosting and AWS/heroku [on hold]

I have been learning multiplayer HTML5 game development and used Node Js. The tutorial I followed taught me how to host your node js server in Heroku. But now I want to upload my game to Facebook ...
25
votes
7answers
7k views

Is the Microsoft recommendation to use C# properties applicable to game development?

I get that sometimes you need properties, like: public int[] Transitions { get; set; } or: ...
0
votes
0answers
6 views

Slick2D noClassDefFoundError for StateBasedGame

I'm trying to write a 2D game using slick2D, and I thought I set everything up correctly, but I'm getting this error: ...
0
votes
2answers
40 views

How do I position a mesh just outside the camera view?

I want to slide in an object into view, coming from the right of the screen. In order to achieve this, I need to position the object next to the camera view, so that it is still not visible, but ...
0
votes
1answer
11 views

Unity UI glitches while loading

I have the following scene canvas elements: ...
0
votes
0answers
16 views

ue4editor.exe GPU selection

Even though I set ue4editor.exe to use integrated graphics on my laptop, it somehow ends up using the discrete nvidia gpu; is there a way to set the preferred gpu with the unreal suite?
0
votes
0answers
7 views

Assertion error when using .setFixedRotation

I'm new to Java and coding. I'm trying to create a tower building game using Box2d for Processing. The premise is to build up a tower that has to resist a shot from a cannon. The tougher the tower, ...
0
votes
0answers
28 views

Pixel Shader Displacement and Lighting

I'm doing some displacement mapping on a grid. Ambient light works well as seen in the picture but I cannot get the directional light working. When adding directional light, grid is yellow in color. ...
0
votes
2answers
58 views

How to write a shader that only uses a bump map without a normal map

So I understand that for best results one uses a height (or bump) map and a normal map together. And I also understand that one can calculate a normal map from a height map using some sobel operator. ...
0
votes
0answers
12 views

Unity animation editor's object rotation is doing weird

When using the Unity timeline to create an animation or by using the animator itself, I am unable to properly rotate an object. Whenever I do rotate it, it will usually go something as follows: From 0 ...
0
votes
0answers
13 views

Is there a way to know if an ID3D12Resource is committed or placed?

I'm trying to find out if a ID3D12Resource was created with CreateCommittedResource or ...
0
votes
0answers
19 views

Unity Tilemap collider stopping player's movement [duplicate]

I am using tilemap collider to create collision between my world tilemap and the player, but sometimes when the player runs on the tilemap, it stops the player's movement and kind of makes it look ...
1
vote
0answers
9 views

Skinning, Bones, IK of character lost after Unity restart. Reproduceable

After i properly rig my character for skeletal animation with IK and everything works as expected but I quit my editor and restart, all bones are gone, IK does not correspond to the limbs and nothing ...
0
votes
1answer
81 views

How do I make the player gun stop firing when sprinting

I am trying to get the players gun to fire when the player is walking and the stop firing when the player starts to sprint. The gun will work just fine and ire when the player is walking, but it will ...
0
votes
1answer
13 views

3D title Rendering in Maya For babylon Js Game Engine

I created a 3D title in Maya and applied color through lambert and rendering with mental ray. Problem is when the coder is rendered in the game engine, it is looking very sad. The colors are faded ...
-1
votes
0answers
52 views

Grand Theft Auto Multiverse [on hold]

Punch kick punch punch. How can GTA fighting with other users be more like Tekken Force with a full range of fighting moves list winner takes the others stuff? Even farther how can a Battle Royal be ...
0
votes
0answers
11 views

Unreal: Where should I place a DLL so it will copied when packaged or zipped?

I'm currently using the FPaths::ProjectPluginsDir() directory to store a custom DLL for Unreal. However, when I build or zip the project, I need to manually create ...
0
votes
1answer
29 views

Character blocking when walking on cube edges

I have my character walking on a ground made of cube. (scale 1,1,1). There is no space between them. Also, I have a RigidBody with 15 drag and I'm moving with <...
1
vote
0answers
16 views

Unity calculate the size of a text box before text gets drawn so it can lerp to the next size

Im trying to make a dialog box image that lerps to the next size. In order to do that I need to calculate the size of the image before the text gets drawn. My idea is to use the legacy GUI stuff ...
0
votes
0answers
18 views

How do I draw a world rectangle as a GUI

I am showing a green pane in world space: I would now like to draw this rectangle as a GUI (world space) element in front of all other things instead. The GUI rectangle should appear in gameplay, ...
0
votes
1answer
54 views

When I exit the pause menu of my game the gun fires

When The player exits the pause menu in my game the gun will fire. I figured out that it happens when the player clicks when the game is paused. Basically i the player goes to the pause menu and ...
0
votes
0answers
8 views

How does the stateTimer parameter is initialized in this method getKeyFrame(stateTimer)?

I have been following the tutorial https://www.youtube.com/watch?v=1fJrhgc0RRw&list=PLZm85UZQLd2SXQzsF-a0-pPF6IWDDdrXt&index=11 I an not able to understand what is stateTimer in getframe ...
1
vote
1answer
72 views

Round to the nearest multiple of 0.75 in C#

How can I round a number to the nearest multiple of 0.75 in C# / Unity? The context is that I have a block and I want its position to be rounded at the nearest 0.75 multiple. For example: 0, 0.75, 1....

15 30 50 per page