0
votes
1answer
46 views

How to search for a visible player?

I've an enemy static tank with a "rotable" cannon turret. I would like to rotate it in the player's direction . How to implement it ? I've thought something like void Update { SearchForPlayer(); ...
0
votes
1answer
54 views

Do I need to use a game engine to make a simple game function on other platforms? [on hold]

I'm a complete beginner really enjoying learning how to code (currently in Python) and my first games will be very simple, mostly text based, but I'd like them to run on friends' phones and computers ...
0
votes
2answers
43 views

Blinking object

I'm trying to make an element (3D object or UI element) blink in such way: There is a timer which counts down 10.0f seconds to 0.0f. In 10.0f to 9.9f range the object should fade out from opacity 1 ...
0
votes
2answers
34 views

Authoritative Server for single player but with leaderboard

I made a Fps single player, timed survival with a leaderboard ( a bit like devil daggers and others). I know would like to create a server that will prevent cheats such as avoiding collision or ...
-1
votes
0answers
20 views

how to move with update trajectoryPointCount [duplicate]

I am a new game developer, I am making a game, but I have a problem, I don't know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! enter code here ...
1
vote
1answer
67 views

Tile base Farm Simulation in Unity

I am thinking of creating a sprite base 2d top down farm simulation game. The game uses tiles and I was wondering (conceptually) what is the best way to handle the farm tiles. Each tiles should have ...
-1
votes
0answers
22 views

Performance issues: is static batching possible in Unity for runtime-generated meshes?

In order to profile a sub-system of my game, I set up the following test in Unity 5.3.4. I create a simple equilateral triangle on the fly and then I instantiate it 10 thousand times, at random ...
0
votes
1answer
25 views

How to refer to a object that has just been hit by a ray cast?

I would like to use RigidbodyConstraints.FreezeRotation;in order to freeze the rotation of an object that is picked up. The problem is I don't know how to refer (or call) the currently selected ...
0
votes
1answer
17 views

GLSL uniform array with size set by another uniform

Will the follwing GLSL code work? #version 330 uniform int size; uniform float[size]; void main() { //do something }
-2
votes
0answers
32 views

How to share code with other team members? [on hold]

So, me and a friend have decided a while ago we want to get into game development. Now here we are, we understand C++ and want to begin development of games. So since we don't live together quite ...
2
votes
1answer
23 views

MonoGame renders texture in an almost compressed looking way

I was working on a game in MonoGame, which I have been doing for quite some time now. As I was implementing UI, I was noticing some sort of weird scanlines. Investigating further, to my surprise my ...
0
votes
0answers
30 views

Unable to translate the object such that it looks like it is moving

This is the code I'm using in the display function to translate the object. ` while(a<500.0) { glPushMatrix(); glTranslatef(a,0.0,0.0); glScalef(0.5,0.5,0.5); ...
0
votes
1answer
35 views

Having trouble setting a game object as a child of another. What is wrong here?

So I'm trying to raycast on mouse click if it hits any thing make that object a child of the sender (in this case the parent). Below is my code... public class PhysGun : MonoBehaviour { private ...
18
votes
8answers
7k views

Couldn't all games avoid post-start loading?

Just like giant open world games load massive maps dynamically, couldn't we load separate maps, menus, and virtually any interface or 3D setting via that same dynamic loading method? Without changing ...
4
votes
1answer
91 views

What causes seemingly random triangle artifacts in OpenGL?

When switching version of OpenGL from 4.5 to 4.4, I suddenly started seeing these weird random triangles flickering over my scene They move around somewhat randomly and are always pointed towards ...
-1
votes
0answers
16 views

Draw sphere in windows form application [on hold]

Can I draw a sphere "using Microsoft.DirectX.Direct3D"? I have the mesh class but I am trying Mesh mesh = Mesh.Sphere(); but its not working. Can someone demonstrate?
0
votes
0answers
95 views

Box2dMapObjectParser isometric map - bodies have wrong position and size

I'm using Box2dMapObjectParser to load Tiled objects layer onto my IsometricTiledMapRenderer'ed TiledMap. It works OK with a UnitScale of 1 but the position is wrong and some shapes have weird ...
0
votes
0answers
28 views

How to split a screen in half using LibGDX without scaling?

I am currently working on a racing game with libGDX and I need to split the screen in half for a two-players mode. (Player 1 in first half and Player 2 in second half). I already have Camera1 that ...
1
vote
0answers
34 views

Minecraft Crafting GUI weird bugs

I'm writing a Forge mod for Minecraft 1.8. When I'm pressing the 'z' key a 3x3 Crafting grid should open. In the KeyInputHandler I call @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent ...
0
votes
0answers
12 views

Check collision between List of bullets and List of characters XNA [on hold]

I have a problem with collision between List of bullets and List of characters. My hero class that run on all bullets in List of bullets. foreach (Bullet bullet in S.bullets) { ...
0
votes
0answers
15 views

Rotating a button in Unity UI by -180 on the Y and it stops working

The title says it all. if I rotate my button by -180 on the Y axis i cant even click on it. If for example I rotate it 180 on the Z axis everything is fine. Why does this happen and how can I fix it ? ...
0
votes
1answer
20 views

Call a BlueprintImplementableEvent from c++ in unreal editor?

I created a custom actor: BPTest.h: #include "GameFramework/Actor.h" #include "BPTest.generated.h" UCLASS(Blueprintable, BlueprintType) class ABPTest : public AActor { GENERATED_BODY() public: ...
0
votes
0answers
24 views

Faster ways of rendering to a texture what is viewed by a camera in a given specific moment (Unity)

What I want to achieve is to render to a texture what is viewed by a camera in a given specific time or frame, and then stop rendering to the texture, delete the camera and stay with that texture for ...
-1
votes
0answers
27 views

count sprite frames of spritesheet

I create following spritesheet: var someSprite = game.load.spritesheet('someSprite', 'img/someSprite.png', 32, 32); Every frame is 32x32 and the .png is 32px/96px (3 frames). How can I count the ...
0
votes
0answers
54 views

Multiplayer through blocked Firewall Ports?

im currently trying to develop a little game. I thought it would be a great idea to implement coop multiplayer, only lan. So i took kryonet and created a server. On my home wlan it works great im able ...
0
votes
1answer
22 views

More efficient using invokerepeating or update?

Im fairly new to unity development and I am working on repeating an enemy. I currently have the functionality working correctly in which I use invokerepeating to spam an enemy. Now, I have an if ...
0
votes
1answer
20 views

Collision causing FPC to go haywire

I have created a first person controller as an enemy in my game (Zombie), my character is an Archer using Arrows as projectiles fired using: if(Input.GetButton("Fire1")) { shotForce += ...
3
votes
1answer
43 views

Upgrading Unity from 5.1 to 5.3.4 has broken game, specifically models made in Blender

I recently decided to upgrade Unity after putting it off for some time as I have a rather sizable project started in 5.1. I knew there would be some hurdles, however, I have had very little luck in ...
0
votes
0answers
54 views

How to update projectile trajectory point?

I am a new game developer, I am making a game, but I have a problem, I don't know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! Here is my code: ...
0
votes
1answer
40 views

How to save slider button positon on saved value.?

I am new to game dev. I have below code and it`s work good. I can change volume using this code and with AudioSource slider script. I also saving this volume state using playerprefs from 0-1. My ...
1
vote
2answers
93 views

Room generation with external walls and doors

I am looking to implement a means to generate rooms with outer walls with windows and doors from prefab game objects in Unity. The idea is that a group of tiles is defined as a room which I then ...
1
vote
2answers
40 views

Maths ? coordinates rotating around coordinates

could you geave me a tip please, a redirection to what is the "simple" math I need to learn and understand for the rotation of an object (its coordinate x, y) around an other object (an other x, y), I ...
0
votes
0answers
21 views

Animation is slow on iOS Device and fast in Unity editor?

I had made a Settings popup in the game and animated it like scale animation (from 0 to 1) values. It is appearing very smooth and works good in the unity Editor, but after building to the device it ...
1
vote
0answers
36 views

Swept AABB vs AABB Calculation Error

I'm having issues running simple AABB vs AABB collision detection. I'm able to successfully detect collisions without checking with velocity. But for some reason my code keeps prematurely firing ...
-1
votes
0answers
34 views

Racing game with known car shapes

I am developing a car racing mobile game. I would like to know if I can design cars that look like real ones...for example is it ok for me to design a car that looks like VW bettle? I will name it ...
0
votes
0answers
11 views

Unity3D - Get smooth speed and acceleration with GPS data

I'm using Unity3D and I created simple distance, speed and acceleration calculator using latitude and longitude of last position. I'm calculating last distance, speed and acceleration in each GPS ...
0
votes
1answer
30 views

How to get an game object to instantiate lower than where It's created?

When I press the collider where my allies spawn I want for them to spawn a little bit lower when I instantiate. I have tried to use Vector 3 and GetComponent, but It gives this error: ...
0
votes
1answer
30 views

How flat-file and databases compare in games development? [closed]

Typically games built with a goal of being easily modded often store data in plain text documents, such as Rimworld. I can't see why an entire database system would be implemented just to read a few ...
-1
votes
0answers
18 views

How can a math degree play a role in Game Developing? [duplicate]

I apologize if my question sounds vague. I am honestly confused on how to ask my question in an appropriate manner. I just recently started my adventure towards getting a BA in mathematics and plan ...
0
votes
1answer
20 views

NGUI sprites become blurry on android

I have this screen in the editor made with NGUI and 8 sprites: But when I build it for android and open the game the same sprites on the screen looks blurry I don't know what could be causing ...
1
vote
1answer
41 views

Procedural generation of evenly distributed random points (2d)

I am coming here because I've have a performance problem with my current implementation of an algorithm. I am the idea of Voronoi diagrams to distribute patches on an infinte 2d layer. For a Voronoi ...
-3
votes
1answer
47 views

Why do I have to do minus-equals for the x-coordinate but plus-equals for the y-coordinate?

I found a simple script in C# in Unity5 to make the camera follow the mouse: xRotation -= Input.GetAxis ("Mouse Y") * lookSensitivity; yRotation += Input.GetAxis ("Mouse X") * lookSensitivity; ...
0
votes
1answer
53 views

Streaming player voice (client -> server) without (minimal) noticeable voice breaking

I recently started to jump into voice streaming for my RPG game, for players to communicate by a central server point. I use TCP packets to communication from client->server and from ...
0
votes
0answers
35 views

XNA Access violation from KernelSoundEffectInstance

Some users (but not all) are reporting a periodic crash in my XNA game. They say it's happening every 15 to 20 minutes. I am unable to replicate this myself, so I asked users to send me error logs. ...
1
vote
1answer
40 views

Fade to first level, on click

Good evening all, about to pull my hair out because I cant figure out why I keep getting this error. The problem is this, I need the player to click on the start button, then, the screen will fade to ...
-3
votes
1answer
41 views

Making Multiplayer game on IOS [closed]

I'm making a multiplayer game for iOS in Swift and I'm trying to find information about how to set up the multiplayer side of it. I already have the actual game created. I would like it to be the same ...
1
vote
0answers
43 views

Libgdx stops all sounds when there are lots of sounds

I'm making a 2D game for Android using Android Studio with Libgdx in Java. I have a class, called SoundPlayer, which holds an ArrayMap. The key is the name of the sound file and the value is the sound ...
0
votes
1answer
22 views

using Mathf.Clamp in Vector3 to restrict object drag

I'm making a checkers game and I've got a movement controller working to move the pieces. I want to restrict the drag to be within the board. The center of the board is 0,0 so the far left side's x ...
-2
votes
0answers
56 views

1-star review attack on Google Play [closed]

A user by the name of "Connor James" has created multiple accounts to rate my game 1-star. I have flagged his reviews to Google as spam but they still haven't been removed... What should I do? It is ...
0
votes
1answer
13 views

InputProcessor without stage

I have a GameScreen where I'd like to have a pause button. I've tried using an Image with a listener, but since my GameScreen isn't a stage, I can't use that in the inputProcessor. So my question is ...

15 30 50 per page