All Questions
0
votes
0answers
8 views
(Unity C#) Rotating an object over time to a RaycastHit.point vector
I am trying to rotate a game object (a weapon) to point towards where the centre of the player camera is focused. I am raycasting forward from the centre of the camera (centreCast) and also from the ...
-1
votes
0answers
5 views
I need some good Blender to Unity animator character controller tutorials
Finding a good 3rd person tutorial has been a real pain for me.
I'd perfer to find
3rd person controller
No root motion
Vertical AND Horizontal movement
works with Unity 5+
optional
Blender model ...
0
votes
0answers
4 views
Unity animator remove bool state for entire transition
i was creating animaton for my character , and i want to modify something to make the character look better , but unfortunally i need to remove the bool first from entire transition in the animator , ...
0
votes
0answers
12 views
Spritebatch for Font and Texture
When I am using the same spritrbatch to draw to font and texture at once, it is kind of misbehaving, like texture is not getting drawn or font is not getting drawn, Why is it happening?
For example(...
-1
votes
0answers
9 views
Calculating thrust
I have an entities' x and y and to go to some point A, I need to apply some thrust.
I have my position vector vx and vy.
How do I know the value of thrust I need to apply.
If I fail to explain this ...
0
votes
0answers
5 views
Triggering an animation key manually added to the automatically generated animator controller on a button
I have a canvas parenting a panel, parenting some buttons. all the buttons have their own animators that i have automatically generated by clicking "Auto Generate Animation" in the button's Inspector ...
0
votes
1answer
11 views
VBO Performance issues
I'm making a 2D Tile based game in OpenTK at the moment. Performance was really bad (laggy and slow) with direct drawing, so I switched to VBOs. The performance hasn't changed, it might even be slower ...
1
vote
2answers
125 views
Are there well known algorithms for efficient map knowledge?
The question subject's is a little confusing, but I had no better way to express my train of thought. I'm working on an RPG at the moment, and I have a question. Using SARSA (State-Action-Reward-State-...
1
vote
1answer
23 views
I need my timer to go up every 30 seconds
I wrote code for a jackpot to increase from one date to the next, and it works beautifully. The client wants the numbers to stay put for a while, and then increase.
This is the code:
if (...
0
votes
0answers
10 views
How do I avoid scaling the animation when scaling the object?
I have made an animation in the Unity animation window. When root motion is disabled, the animation works, but when root motion is enabled, the object goes upwards instead of downwards as specified in ...
0
votes
0answers
15 views
How to do lazy initialization with an ECS?
I'm trying to use the ECS pattern. My problem has to do with initialization.
In my example below, the bounds of the sprite cannot be computed until the sprite is actually loaded from disk. Once ...
0
votes
1answer
37 views
Calculate distance from the centre to the edge of a cube in OpenGL
I'm trying to calculate the distance between a central point on a cube and anywhere on the surface of the cube, depending on the location of a second 3D point.
I have two vertices in 3D; Q and P. Q ...
0
votes
0answers
10 views
UI text in Unity with Google VR
I am trying to make a UI text in the left upper corner that shows wins and losses. However, it doesn't appear. I have tried to make it world space and drag the canvas so it becomes a child of the GVR ...
-1
votes
0answers
13 views
Kinematics - One Dimensional
How much force is required to throw an object of weight 1 kilogram/2.5 pounds in air(vertically upward) to reach alteast a height of one meter/one feet?
1
vote
1answer
13 views
DirectX 12 and Feature levels
As far as I know the DirectX12 SDK that comes with the Windows 10 SDK can only be used on a Windows 10 machine. Although I'm not entirely sure about the runtime and the use of future levels (which ...
-1
votes
1answer
26 views
UnityEngine.Camera doesn't contain definition for “active”
So I'm just trying to create a simple script in C# which will allow me to switch between two cameras, named Camera1 and Camera2. But I have run into the error UnityEngine.Camera doesn't contain ...
0
votes
1answer
35 views
Storing wins and losses locally in Unity
I am writing here as I have made a game in Unity where I want to store how many wins/losses a player has. The way I am thinking to do it is by putting 2 counters; One for every time a player wins, and ...
-2
votes
0answers
15 views
How create multiplayer turn based game in unity
I want to create game like poker by unet in LAN
In my game 3 player connected to server then server send number of cards to each player and player see own Scene contains Own Cards
like below picture
...
0
votes
1answer
17 views
Setting up a singleton class in Unity3d
I have spent a long time (4-5 hours) digging around as to why my version of the Breakout Unity Tutorial was not working. There where repeated errors of
NullReferenceException: Object reference not ...
0
votes
0answers
13 views
OpenTK Y is completely inverted
Hello I am using c# and OpenTK.
For some reason i have the map y inverted.
The map is supposed to be like this:
But OpenTK render like this
I have been trying to set x or y negative but it is not ...
-4
votes
0answers
27 views
ERROR : Null reference exception
I wanted to access two variables named "blocksleft" and "blocksLeft" declared in two different scripts named "LoadLevel_02" and "LoadWinMenu". So I grabbed them in the scriptnamed "DestroyBlue". But ...
-1
votes
0answers
11 views
How to design an algorithm for AI to move a circle around the canvas arbitrarily?
Suppose I have a circle on the canvas and I want it to move by itself automatically. I don't want the circle to jump from one position to another but I want it to move slowly arbitrarily and better ...
0
votes
0answers
16 views
Problem with farm tractor physics on Unity 5
I have added tractor mesh and physics for it. The objects inspectors and tree are:
When I start "game" the result is strange:
GIF
Why? Hinge joints are working like spring joints and tractor is ...
0
votes
0answers
17 views
Object refrence not set to an instance of an object. (Only sometimes)
i have been working on a 2D SpaceShooter game on Unity in C# language, at first i was following the tutorial, but after it ended, i decided to expand the game, and change it the way i desire it to be. ...
0
votes
1answer
20 views
ERROR : Destroying assets is not permitted to avoid data loss
I want my gameObject named lvl_01 to destroy when I click left or right arrow key but it's keep showing this error "Destroying assets is not permitted to avoid data loss" instead of destroying that ...
0
votes
0answers
35 views
mobile card game prototype
We are currently planning to develop a mobile trading card game (something similar to Hearthstone). Coming from a web-development background, I do not have any experience in mobile development so have ...
0
votes
0answers
22 views
How to render many times the same mesh efficiently in WebGL without instancing?
I'm using WebGL and I want to render the same mesh many times at different locations. I know that there is the drawArrayInstanced and drawElementsInstanced in WebGL 2 but I think only Firefox supports ...
-3
votes
1answer
23 views
How to code C# to allow one tap to cause the character to jump for Android device in 3d game
Is there a native unity 5 to implement one tap to have the character to jump.?
My game is 3d and I want to tap anywhere once or in the character.
I found a MobileTiltController as part of the ...
0
votes
1answer
15 views
DirectX Tessellation Cracks
I have the following simple patch function in DX11, but I keep getting rips, and when I look at the wireframe its clear that adjacent edges are not getting the same tessellation factor. The ...
1
vote
0answers
26 views
Is this a correct way to solve contact?
Hi there,
I'm learning the impulse based physics engine these days. Can someone please check my image about solving a contact( a sphere resting on ground) , and please let me know where is wrong.
...
0
votes
0answers
16 views
How should I embed a command-line AI to a game using pygame
Disclaimer: I am a novice in game development
I built a command-line AI of a tic-tac-toe game and I'm now trying to build a game with graphical user interface. I choose pygame because the AI is also ...
1
vote
1answer
26 views
Help Needed with Shaders
Ok, bear with me, I am a beginner with Google Cardboard programming.
What I have been doing is looking at the TreasureHunter sample app from Google's page and (with the help of documentation and other ...
-1
votes
1answer
45 views
How can I put my Java game in my Weebly Website?
I'm making a Java application (not applet), a game, which I want people to play through my weebly website because problems came for most of my friends PC's like the assets aren't appearing and the ...
16
votes
1answer
957 views
What gamepad functionality can be assumed?
When I offer gamepad support, the simplest solution seems to be to assume XBox controllers and use a library that maps the most frequent gamepads to a similar layout.
Now if I want to minimize ...
0
votes
0answers
41 views
which games provide api for ai bots?
I want to learn writing AI code for playing games. I am searching for games that provide official api to write bots for them that can play the game.
I would prefer games with C++/Python api as these ...
0
votes
1answer
35 views
Difference between column- and row vector matrix multiplication (vector transform)
Let's say we have a 4-by-4 matrix A which represents some transformation.
We can use this matrix to transform a vector in two ways.
Ax by assuming x is a 4-by-1 column vector.
xA by assuming x is a ...
0
votes
0answers
19 views
“Analogue” Control of animation
New to animations and need a little bit of education :) I have a model of an object that has a generic animation. I would like to control that animation using an analogue trigger on the controller, ...
0
votes
0answers
8 views
Loading Unity Scene Asynchronously stacking hierarchy window with scene names
I am making a unity game in which I have a scene which loads other scene asynchronously. When looking the hierarchy window I came across this
Anyone can suggest why the scene themselves are present ...
0
votes
1answer
26 views
show hide button in unity using c#
I have 15 buttons on my screen at onClick event am fetching the button and hiding that button using
EventSystem.current.currentSelectedGameObject.SetActive(false);
now at the end i have to show ...
-1
votes
1answer
64 views
what should I learn to become gameplay programmer? [on hold]
I recently started learning C++ in college but I'm confused if I'm in the right direction to become a gameplay programmer or not. Currently I'm a newbie and have zero knowledge about game programming. ...
0
votes
0answers
20 views
I am creating an android application.But I get error inflating class button,which is only for signed apk
11-25 08:57:55.823 14307-14307/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.vr.sdk.samples.simplepanowidget, PID: 14307
...
0
votes
1answer
35 views
NullReferenceException in StartCoroutine method
Maybe it's a repeated subject in the community but other answers didn't solved my question...
I tried as the tutorial: http://answers.unity3d.com/questions/11021/how-can-i-send-and-receive-data-to-...
0
votes
2answers
49 views
A* movement implementation not working properly
I'm working on a RTS project and I'd like to use the A* Project by Aron Granberg to navigate around obstacles, etc.
The problem is that the correct path is displayed in the scene, but the unit just ...
0
votes
3answers
40 views
Continuous button input with Pygame
I'm trying to write a "hold button" function. I seem to be able to print on the press of the button, but not continuous printing when I hold the button, like I expect it to.
I have tried two ...
1
vote
1answer
40 views
LibGDX - how to change FreeType Font color and screen coordinates
How can I change my FreeType Font color? I want to set custom color. I tried do this by using Color color = new Color() but don't work.
And second: can I change my screen coordinates? I use two ...
0
votes
0answers
20 views
How to make a Physics.Raycast detect a FPSController?
I am trying to make an AI that spins around until it sees the player, but it can only see walls and other objects, but completely ignores the FPSController. I tried adding a cube to the controller, ...
0
votes
1answer
22 views
Determine “bounding box size” (not scale) of model in MonoGame
I'm working on integrating some the 3D models I import into my physics system by trying to take their "size" and use that as the side for objects within my physics system. When I say size, I'm ...
0
votes
0answers
13 views
Box2D : rotate and set position to a static body with another origin
I try to rotate a static body of a PolygonShape, from another origin, and set the position regarding this new origin.
Why ? Because I create bodies from TiledMapEditor object. And origins of objects ...
0
votes
0answers
26 views
What kind of education should a hobbyist video game designer get? [on hold]
I’ve taught myself programming (JavaScript / C#) and know Unity. I am starting to make small, simple games for fun. I would like to gradually transition from hobbyist to serious indie developer. Could ...
0
votes
0answers
11 views
Filtering the target for lights
I'm in process of writing my own 3D engine in WebGL using assets of one popular game. I do not use any existing graphing library(no Three.js or others), I operate with pure WebGL calls. I managed to ...