All Questions

8,324 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
-1
votes
1answer
817 views

move camera with button in unity c#

I want to move Main Camera with button. Here's my gameplay: Here's my scene: I want that when I click a button, main camera moves to right in another pic.
-1
votes
1answer
320 views

How to set building in sequence like COC game using tiles map in cocos2d-x V3.9?

i am developing game in cocos2d-x V3.9. i want to create base like COC game. set all buildings in sequence and it can't be overlap with each others. i want also make boundary for develop city view. ...
-1
votes
1answer
1k views

How to detect collisions of objects in two different arrays?(html canvas)

I am making a canvas game where you shoot at an endless amount of enemies. My problem is that the I am not sure how to make the objects from the bullets array collide with those of the enemy array. ...
-1
votes
1answer
371 views

How do I use Couroutines for spawning and spawn certain amount of enemy AI in the scene?

I have made a spawn function for spawning enemy AIs, and it didn't work well in my scene. I have the enemy AIs spawning in the update function, and it initially works fine, but it's spawning too many ...
-1
votes
1answer
37 views

Using Gimp and clone tool. Source selection selects center of four pixels

I am using gimp to make tilesets. When I use the clone tool and hold ctrl to select the source, the selection is in the center of four pixels instead of just one pixel. I don't know if I am doing ...
-1
votes
1answer
888 views

Project camera-to-pixel ray in world coordinates

I'm trying to implement a very simple ray tracing function but I have a problem with projecting the camera ray (from camera to pixel) to the world space. In the screen coordinates have the pixel ...
-1
votes
1answer
339 views

Coroutine doesn't continue after checking for bool

I have the following coroutine: ...
-1
votes
1answer
129 views

Obtain jump vector given time, distance and gravity

I tried for several days to solve my problem , but in the end I just gave up and I decided to ask , since the solution is beyond my knowledge I'm writing a 2d top-down game, in order to simulate the ...
-1
votes
1answer
64 views

Why I'm not getting any kind of output in SDL?

Here's the code that supposed to display the texture: ...
-1
votes
1answer
178 views

Refraction and transparency?

I need to do some refraction in a sphere. Do I need to make the object transparent first? Or just use refraction(refract) in HLSL DirectX?
-1
votes
2answers
404 views

How do I create a 3rd person camera in XNA?

Because other people are using too complicated code for me to understand, I decided to ask a question from an XNA noob. So, I'm using the spaceship thing that Microsoft use in their tutorials of Going ...
-1
votes
1answer
39 views

Why does iPhone games include a sound option?

Why does iPhone games include a sound option? It seems very unnecessary because the sound options (on/off, volume) are already on the hardware itself. Unless the player wants to shut out music, or ...
-1
votes
1answer
849 views

libgdx - Math for wall collision when adding velocity

I've created a game which spawns a random colored ball in the top or bottom of the screen and moves to random direction with this method. ...
-1
votes
2answers
685 views

How to sale a bitmap font in libGDX?

I'm trying to create a Minecraft like quotes on the menu screen of my game. I'm using BitmapFont to draw the text on screen but I don't know how to make that scale ...
-1
votes
1answer
1k views

How do I make my enemies to follow a path and allow them to collide with the player in Game Maker?

I am making a game in which enemies follow a path. These enemies should be colliding with the player, but it's not working. The enemy is walking the path. And, I want to make it so if the player ...
-1
votes
2answers
211 views

Inconsistent AABB collision detection

I'm making an endless jumper as my first game and I'm running into some problems with the one-way collision detection. Collisions are detected correctly most of the time but occasionally the player ...
-1
votes
1answer
111 views

Attack Targetted Enemy Only

I have a perfectly working targetting script and I want to be able to deal damage to my currently selected enemy. I have a targetting script which is below:? ...
-1
votes
2answers
704 views

Unity equivalent to cocos2D (and Sprite Kit) Actions?

Does Unity have an equivalent to the Actions feature/functionality of cocos2D and Sprite Kit; if so, what is it? cocos2D Actions: http://python.cocos2d.org/doc/programming_guide/actions.html http://...
-1
votes
2answers
373 views

how to create a play button and load game on play? Monogame

I need help with understanding how I can make my function work and load the game when pressing play. At the moment, when I press Play, it won't update or missing update o knowing the button is ...
-1
votes
1answer
285 views

[opengl]get world position after rotate object by pivot

I need to rotate an object around a pivot,so I use this theory: Translate the object to Pivot position Rotate the object Translate back the object from Pivot position everything works fine,I can ...
-1
votes
2answers
344 views

Using Vertex Buffer Object in OpenGL, how do I fix the display driver being blocked when my window loses focus?

I'm creating a 3D display for a big object. I've managed to display it with OpenGL primitives, but it is very slow. I am using C#, powered by the TAO Framework. I want to use the Vertex Buffer Object ...
-1
votes
1answer
355 views

SceneKit – White layer covering my tube

I have a simple tube node in my scene that isn't displaying properly. When I rotate it to face the camera, more than half of it is covered by some invisible sheet. When I rotate the tube enough, it ...
-1
votes
1answer
592 views

Fix buttons on screen

I've added buttons and SKCameraNode for my player. I got problem. When player moving left/right/jump all buttons dont follow for him. UPDATE class GameScene: SKScene, SKPhysicsContactDelegate { <...
-1
votes
1answer
340 views

HashMap or LinkedList

I'm working on a 2D game for Android using LibGDX in Java. In my game I got lots of enemies, bullets and other stuff. I hold a hash map, which every cell holds a reference to an array list of that ...
-1
votes
1answer
414 views

OpenGL/GLSL matrix in uniform block confusion

I'm a bit confused about the proper way to send a matrix from my code (C++) into a GLSL shader. My matrix object is stored in row major format in memory. If I use the following shader code it works ok....
-1
votes
1answer
271 views

Bukkit - Loading chunks in a new world

I'm looking to make a large-scale PVP plugin. On a server network (MCBrawl), there is a game mode that spawns players in a world that I assume is randomly generated every time. I want to make ...
-1
votes
1answer
3k views

Unity AddExplosionForce to a Navmeshagent

I have a NavMesh agent and I would like forces to be applied to it during an explosion. Currently the NavMesh agent isn't interacting with the exploding object. The explosion occurs and agent takes ...
-1
votes
2answers
862 views

How to create a camera that follows the player?

I have a javascript game where I use a tile grid somewhat like this: var tiles = [ [0, 0, 0], [0, 1, 0], [0, 0, 1] ]; I want a camera to follow the player and ...
-1
votes
1answer
136 views

Enemy Retargeting

I am trying to make a game using NavMesh agent in Unity, where the enemies first attack the player and change their target to tanks when player spawns them. Then again retarget player after the tank ...
-1
votes
1answer
409 views

Unable to move mouse cursor while pressing keyboard button

I've a player to which I've attached character controller and two scripts - Controller and MouseLooker to control the player ...
-1
votes
1answer
1k views

Java - LWJGL OBJ Loader with Materials not rendering

So I successfully loading my obj file but I obviously want to get materials on it. I added the vt(texture) to the OBJLoader and the Model.render but still rendering textureless. I have exported the ...
-1
votes
1answer
359 views

How to optimize movement script using CharacterController component?

I've made a very basic character controller using a CharacterController component. I'm still a beginner so I keep learning new things. My problem is how to optimize my controller script. Also, I would ...
-1
votes
1answer
112 views

Combining Pause and Start Menu

I got my pause menu working by using this code: ...
-1
votes
1answer
75 views

This if statement doesn't end once triggered by touch

I have an if statement that successfully recognizes a touch, but continues executing after the touch has ended. ...
-1
votes
1answer
281 views

Change Andengine Text By clicking and typing a new text like native android EditText

I have a board in my game, with a name. I want to edit it on a button click (not by text.setText("text") method ) i want the user to enter a text and set it there. I couldnt find, how to change the ...
-1
votes
1answer
694 views

How to avoid mouse click over the trigger object?

I'm detecting mouse clicks if the click is happening over the collider but I don't want to fire mouse clicks if it is on the trigger object. How to I do this? Any suggestions?
-1
votes
1answer
93 views

Moving vector shooting at other moving vector

The following code creates an accurate shot to be made at a moving target from a stationary position. (ie a tower or non-moving vector). It works GREAT, but I need it to consider the movement of the ...
-1
votes
2answers
423 views

Why am I having these errors, when opening my Unity project in Ubuntu?

I'm experiencing some trouble with the Linux build of Unity. I suspect that my Nvidia driver is producing this error, but I'm really not sure. I have an Nvidia GTX 860M, and until 2 days ago, I was ...
-1
votes
2answers
147 views

Before I change position I want to check if the gameobjects are collinding

For starters I'm new to Unity3d. So my question is when I click on an object I want to change its position but without collinding with the other objects and I need a function to check that. I already ...
-1
votes
1answer
126 views

Different game resolutions on emulator and on a real device (which has the same resolution) on Windows Phone 8

I have a big problem with game resolution, when I'm running my game on emulator (which theoretically has the same resolution as my real windows phone device: 800 x 480). I'm making the game with ...
-1
votes
3answers
843 views

A method to create and assign a name to a GameObject (Unity)

I'm trying to create a function that takes in a name of an object in the editor and assigns this accordingly as well as the name of a sprite, rigidbody, etc. Basically what I have so far is- ...
-1
votes
1answer
62 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...
-1
votes
2answers
2k views

Libgdx coordinate system

I just started with libgdx and I'm still figuring out how the coordinate system work.The code below would draw the image at [0,0] without the Orthographic camera What I can't understand is why the ...
-1
votes
1answer
522 views

Quaternion.Lerp not working properly in Unity3d

I'm using Quaternion.Lerp to rotate a joint with a certain angle, but when I use the below code I find the joint rotating very far although I specified it to rotate ...
-1
votes
1answer
99 views

Right-side weapon rotate to face the mouse target

I have a 3D game looking from top to bottom where I move the mouse to aim at targets. I have a simple box (the player) with a sphere on its middle-front (that is the pistol) and a cylinder on its ...
-1
votes
1answer
2k views

Get current position of instantiated prefab

I wrote two little scripts to manage platform spawning. 1st - is attached to the Spawner gameObject. It's uset to spawn new platform. 2nd - is something like Platform Manager which not extend ...
-1
votes
1answer
1k views

How to use custom font in Phaser?

I am trying to load WebFont in Phaser. I have seen the Phaser example, but I can't understand what asset do I need, what function I have to call, & what ...
-1
votes
2answers
119 views

How to get a pleasant path accelerating to a point

I am having trouble moving an object to a target position with a maximum acceleration limit. If i just accelerate towards the target the object will fly in a doughnut a few times before hitting the ...
-1
votes
1answer
124 views

Cloning a gameObject which use properties similar to original gameobject

How to make clone of gameobject have the same properties as the original gameobject just placed right to it and the clone should fire exactly parallel to original character. Every property should be ...
-1
votes
1answer
3k views

Unity Ui slider volume control

I have the ui slider to control my volume, I have my slider to control all the volume of the game. I have make it so when the main slider change value all the other slider change with it but when I ...

15 30 50 per page
1
161 162
163
164 165
167