0
votes
1answer
59 views

Implementing time step in main game loop

So ive read both http://gameprogrammingpatterns.com/game-loop.html and http://gafferongames.com/game-physics/fix-your-timestep/ and I kind of understand how I'm supposed to do it, but some parts are ...
-4
votes
0answers
35 views

sombody hase a good sprite for a heart? [closed]

I am searching for good sprites of hearts, its not for a lifebar it needs to be a love heart becuse i'm making a game based around valentine. And it needs to be a heart from 64x64 pixels.
-1
votes
0answers
25 views

Make Camera follow target only on Y Axis? [closed]

The script (attached to Main Camera) below makes the camera follow a specific target smoothly. But it follows the target on the x and y axis. What changes do we have to make so the camera follows the ...
0
votes
1answer
56 views

ARMv7 vs FAT in Unity Android Build Settings (release multiple valid APKs)

If I select ARMv7 instead of FAT (ARMv7+x86) in the Android Build Settings of Unity5-Free, the APK binary drops to half size. FAT => ~20MB ARM => ~10MB (Tested with an empty scene, no assets, ...
0
votes
0answers
45 views

How do games detect that they are pirated? [duplicate]

I recently found out that the Serious Sam developer uses in-game piracy punishments and that made me research about it. I found there are more games like that, but I couldn't find anything on how the ...
0
votes
2answers
36 views

How can I make libGDX text buttons look like clickable buttons?

I have this problem with my game where UI build a nice menu and other stuff with TextButtons and labels, but it doesn't look nice because it's mostly displaying the text of the buttons (which don't ...
-2
votes
2answers
34 views

How can I differentiate 2 triggers in script?

I have two boxcolliders with triggers, and when I use the function OnTriggerEnter, even if I enter the first or the second trigger, it does the same thing. And I want a trigger to do a certain thing ...
0
votes
1answer
19 views

Unity - Instantiated prefabs do not adapt to UI Layout

I have a small container, where I want listed a series of buttons. I try to fill them at Runtime like this: using UnityEngine; public class FillWithGearData : MonoBehaviour { public Transform ...
4
votes
5answers
734 views

In Unity, how do I correctly implement the singleton pattern?

I have seen several videos and tutorials for creating singleton objects in Unity, mainly for a GameManager, that appear to use different approaches to instantiating and validating a singleton. Is ...
-2
votes
0answers
33 views

Rebuilding Unity Project from DLLs? [duplicate]

I have lost my Unity project which was on my hard drive. Fortunately, I have found some files that were associated with my project. See here. Now, I have successfully converted Assembly-CSharp.dll ...
0
votes
0answers
14 views

Why do I get 3 lines of log at Monitor.exe when using Debug.Log in Unity?

I'm debugging a real device. In a GUILayer.Button I've put a single Debug.Log() message, like in this code Code: if( GUILayout.Button( "Click to Test." ) ) { Debug.Log( "XAVI Clicked!" ); } ...
-2
votes
0answers
41 views

Switching 2D Game Engines [closed]

Currently I am using Unreal Engine for 2D because of blueprints, I was wondering if Unity has something as good or better like Unreal Engine's Blueprints?
0
votes
0answers
64 views

Modern OpenGL and SpriteBatching

I tried to find tutorials regarding SpriteBatch done in Modern OpenGL 3.0+, but failed to find any good resources so far. So can anybody please provide me a good resource/tutorial to achieve ...
-3
votes
0answers
17 views

Need a Sprite creator program for Ubuntu [closed]

Is there any program to create 2D sprites for games with Linux support?
0
votes
0answers
11 views

Unity Creating XCode build causing too many XCode Changes When using GIT ( SourceTree )

I am using Unity 5.2.1f, XCode 7.2 and SourceTree. There are multiple developers working on the same project. After we updated to Unity 5.2.1 and Xcode 7.2, it always shows too many changes in the ...
0
votes
0answers
16 views

Different Cell size in a Unity3d New UI grid

I want to create a Grid in which few cells are tall, few are wide, it’s not a homogenous grid. How Can I do by attaching a Grid Layout Group component to the parent of cells? I am using Unity 5.3.2 ...
0
votes
3answers
37 views

How to access UI elements in a canvas in UnityUI

I am looking for elements on a canvas (a textfield and a slider); so I can retrieve values and pass them to a function. But so far I can't figure out how to access them; I can see the methods of the ...
1
vote
1answer
33 views

Problems managing collision filtering

I have my character fixture and body(is a tank), so when I press the screen it throws a rocket(which also has a body and a fixture) that the player can controlll touching the screen. My game also has ...
0
votes
1answer
55 views

How could I access game data from a dev machine at runtime from a mobile platform?

When working on a game on a mobile platform, having read/write access to game data (assets, configuration files) stored on the dev machine at runtime would enable building of tools to quickly iterate, ...
-1
votes
0answers
32 views

Making Computer Sprites and Backgrounds [closed]

THIS IS NOT A DUPLICATE I AM ASKING ABOUT COMPUTER SOFTWARE NOT HAND DRAWING My question is how can i make computer sprites and backgrounds with a computer software. I tried to use adobe without ...
0
votes
1answer
44 views

How to make a ball hit many tiled circular objects in LibGDX

Hey guys I've been learning to make games with LibGDX. I did a tiled map in Tiled and the rest of code in java using Android Studio. I could make a ball bounce on the flour using Box2D, but I can't ...
3
votes
1answer
100 views

“Industry Standard” JSON formats for game assets [on hold]

This question is inspired by my venture into the Phaser game engine but seems to apply to any engine that uses JSON for its asset format. Phaser relies on PhysicsEditor to export and create the JSON ...
1
vote
1answer
42 views

Simplyfing/dissolving octree to simple boxes by adjacent octants with similar traits

I am looking forward to create a navigation volume to be utilized by AI actors. The approach I am trying to tackle here is to first generate an octree and associate with respectable flags/data (type, ...
-1
votes
0answers
20 views

Unity Menu Template [closed]

Is there a Unity Asset or free project that offers a menu template similar to this one? I tried searching but I only found templates for professional games...
1
vote
1answer
39 views

How can I create a spacial grid? [closed]

I just created a tile map for my game, and its a side profile game. The game looks sort of like Terraria, where there is blocks you can place and break. I want the player to be able to collide with ...
0
votes
1answer
14 views

Libgdx: move img from one point to another?

I'm trying to make an image move towards another point. I only have the current X/Y and the destination X/Y + Speed. That's it. public void Draw(SpriteBatch batch, int goalX, int goalY){ destX = ...
-1
votes
0answers
57 views

Rebuilding Unity Project? [closed]

I have lost my Unity project which was on my hard drive. Fortunately, I have found some files that were associated with my project. See here. I have successfully decompiled the DLL's to C# with a DLL ...
0
votes
0answers
17 views

how to temporarily turn off/on multisampling for an OpenGL ES 2.0 render context in Android?

In my OpenGL ES 2.0 Android app, I render to an EGL surface with >= 2 samples; I obtain this surface by passing: EGL14.EGL_SAMPLES, 2 as part of the attribute_list argument for egl.eglChooseconfig() ...
-4
votes
3answers
43 views

Get bullet movement direction?

I have two objects, A and B, at two different points. I want B to fire at A. B's shot moves so far x and y every frame. How do I get the angle it needs to travel at as two numbers, one representing ...
4
votes
1answer
87 views

Does distant and large objects use up a lot CPU usage?

Okay I'm new to Unity, and I'm making a space sim pc game. You know, space is huge, light years of distance between stars. Even if I set 1 AU (150,000,000 KM) as 1 unit, 1 light year will be 63,000 ...
0
votes
0answers
45 views

Unity 5 Command not being sent

I have a client server build in Unity 5. I want to send a command from the client to the server with a GUI button click, this is for testing purposes. So on my client all I want is to click a button ...
1
vote
1answer
45 views

Darkness Emitting Light Source Unity

I was wondering if it was possible to create a light source in Unity, one that "sucks" light from the environment. Negative value does not seem to work in Unity, as pointed out by many. It is quite ...
0
votes
2answers
51 views

Unity sprites rendering problems on Android

I'm creating a simple 2d game for android, with normal sprites and animations. The problem is that when I open the game on my smartphone (Samsung galaxy trend plus), The sprites are rendered this way: ...
6
votes
0answers
93 views

Design patterns for live coding/script reloading [closed]

I would like to make C++/Lua combo and write scripts for a game with live script reloading. What design patterns should I be aware of so not to cause me unnecessary pain? For example if I have a ...
0
votes
1answer
50 views

Port forwarding client and server?

So, lets say i have a client and server sending information to each other. Do i have to port forward both the server and the client, or do i just port forward the server? If i have to do both, is ...
4
votes
3answers
127 views

A* in 2D game. corner pathfinding issue

the issue I'm having will be best described with pictures more so than with code, so lets have a look if you will. So all the mobs followed the player and started attacking him, but as soon as 4 ...
-3
votes
0answers
24 views

Java opengl error with getting JFrame and Display to work together [closed]

I tried adding Display to JFrame but get an error any help would be nice. code: public class window{ Loader loader = new Loader(); StaticShader shader = new StaticShader(); Renderer renderer = new ...
-2
votes
2answers
130 views

How do you define and draw rectangles in OpenGL?

I am very new to OpenGL and I am not sure one the basis of how to create and draw objects. So how would I draw simple rectangles in a window using OpenGL? My understanding is that I need to define an ...
1
vote
1answer
48 views

Problems making a smooth character rotation

My character has an angle rotation, when the player touches the screen it automatically face to the place that the player touched, using atan2(y,x) and Math.radiansToDegrees methods, but I want it to ...
-1
votes
1answer
51 views

How to create a seemingly infinite text-based map in Python

I am looking to create a text-based map in which a player could (hypothetically) move through out infinitely. I was thinking I could do this through class objects defining towns / dungeons / etc. and ...
0
votes
0answers
23 views

Libgdx tiled map collision scale problem

I followed Dermetfans tutorials on youtube to make a collision tile map for use in Libgdx and I think I have some scaling problems related to the camera. I'm loading the map and the bottom left corner ...
1
vote
2answers
80 views

Technical names for camera styles in 2D games

In 2D gaming, the camera movement method has a lot do with the play style of the game. I'm not super familiar with the technical terms for camera styles, so I'm going to describe them in hopes ...
-1
votes
0answers
20 views

simple sprite files sequence viewer? [closed]

I wonder does anybody know where can i find simple sprite animation viewer? I mean just to view animation of sequence of separate png files. (NOT editor or sheet viewer/maker). also i m looking it to ...
1
vote
0answers
23 views

Farseer Engine Texture To Polygon Center of mass bug

I am new to Farseer Engine used with MonoGame so I decided to do some test with the API to see the results and learn. If I understand, in Farseer the Position property of a Body object is located at ...
1
vote
0answers
83 views

One big asset file or many small asset files?

I'm working on a game and I'm wondering if it is better for performance and memory usage to have one large file containing all my assets (the assets are in a custom format) with a look up table at the ...
0
votes
0answers
30 views

how can I load a sprite to a sprite variable in my script?

I want to add to my Sprite variable x2 a sprite in my code. Here's my code: Sprite x2; void Start () { x2 = ? } how can I tell the code to add a certain sprite to that variable?
0
votes
0answers
37 views

Proper 2D game engine architecture? [closed]

I have made a game engine in C++ before, but it was bad. The game logic was tied to frame rate, everything was. It could only run at one resolution, I had a central "Game" singleton, and used a lot of ...
0
votes
0answers
43 views

Game loop architecture using WPF(MVVM) and C#

Could i get some suggestions on how to implement a game loop whilst using WPF(MVVM) and C#, I am a professional developer and understand the technology well. The game loop usually contains a Init(), ...
0
votes
1answer
23 views

How can I add an IsTrigger propriety from code? Unity

I made an gameobject in my script and i made it a rigidbody, and added it a boxcollider, but I dont know how to tell the program to make it a trigger. Here's my code until now: multi = new ...
0
votes
0answers
22 views

Disable OpenGL NVidia Driver Optimization During Development

I've noticed while looking at gDebugger that sometimes what I dispatch as draw calls never actually show up in the logger. I assume that there is some driver level optimization going on here; so is ...

15 30 50 per page