0
votes
1answer
81 views

Unity: Object is underneath another object but shouldn't be

I have a simple collision detection program. The red object is controlled by the user and the yellow object is always moving up and down: However, when the objects are supposed to collide, the red ...
0
votes
1answer
5 views

How to create a state based traffic signal?

I want to create a traffic light for a Unity3D game. I will model it in blender. What is the best way to control this light in a unity scene? One way I could think of is to change texture of say ...
0
votes
2answers
52 views

Do I need TCP socket?

My game uses UDP sockets to stream updates between server and client and I've also made a reliable channel that resends messages if there's no response and makes sure same message isn't processed ...
0
votes
1answer
43 views

Second pass in multipass effect is ignoring

I am trying to render my vertecies in 2 passes, but seems I am doing something wrong, because only one pass applying. I cannot make the second one work despite that second pass is applying. Here is ...
0
votes
0answers
4 views

LibGDX with Parallax Camera, unable to accurately select objects

So, basically I borrowed the ParallaxCamera test that LibGDX provides and got the camera set up rather nicely. However, I noticed that when I specify a speed other than 1, my game objects shifted ...
0
votes
1answer
79 views

Encoding Float to RG/RGBA and Blending

Encoding a float value inside a RG or RGBA texture is very interesting and useful but it is also become quite useless when you use blending as the result and the values might be altered because of ...
0
votes
0answers
6 views

Looking for 2D engine in Linux environment for top down style game

I'd like to start getting into game development and wanted to know what tools/engines would best fit me. I am working in a Linux environment and my programming background is C/C++/Java and some Perl. ...
5
votes
2answers
6k views

Is it possible to use C++ with Unity instead of C#?

The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?
1
vote
2answers
42 views

2D platform collision

I have went over and over in my head for the past month trying to get a simple platformer together. My problem is collision. So far from every tutorial I've found this tilemap based collision needs to ...
2
votes
1answer
1k views

Calling an android method from Unity3D with a JAR plugin

I am developing a game with Unity only for Android platform and I am requiring to share content of my game through an intent so I have implemented a JAR plugin according to several tutorials with this ...
0
votes
1answer
170 views

libGDX new TextureAtlas(filename) and new Texture(filename) drawing stale image data

I'm trying to draw an image using libgdx but no matter what I do, libgdx seems to insist on drawing a portion of an image I had loaded and used in an earlier game screen. In my current game screen ...
0
votes
0answers
7 views

How can I get float values using glReadPixels? [Android NDK es3.0]

c++ code: float* data = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat float* result = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat for (int i = 0; i < texWidth ...
0
votes
0answers
12 views

How to calculate spherical harmonic coefficients for indirect diffuse?

After reading the article "An Efficient Representation for Irradiance Environment Maps", I'm a bit confused as how to calculate the spherical harmonic coefficients. I'd like to generate these ...
0
votes
0answers
6 views

Source SDK 2013. Binded key doesn't drop weapon. Please help!

I'm having a problem with weapon drop system in my Source SDK 2013 Single Player Mod. I've followed this guide from VDC https://developer.valvesoftware.com/wiki/Adding_a_Weapon_Drop_System After ...
0
votes
1answer
51 views

Why is each column being shifted down the X value of the column in my 2D Data Structure?

I have a two 2-dimensional arrays. One of which stores characters from a text file, and the other stores pointers to instances of Blocks. For some reason, in either of the arrays (I'm not sure which), ...
2
votes
1answer
31 views

GLSL 2D Silhouette

I'm trying to render a silhouette of any entity behind foreground objects to indicate their position to the player. Here's an example of what I want to achieve, from Hyper Light Drifter: From what ...
0
votes
0answers
8 views

SpriteKit How to Slowdown Game with RepeatForever Actions continuously running, similar to Matrix Dodging Bullets Effect?

I'm trying to slow down my _gameLayer Node by 0.5 when the player collected a slowing down timer and I want to see all the nodes inside _gameLayer is running at a much slower speed. However when I ...
1
vote
1answer
56 views

Make a triangular mesh from of a map defined by points that follow the coast lines

I have a set of points which follow the coast lines of a world map. I would like to somehow triangulate so that I can render the continents filled in. The points seam to be in order so that if you ...
0
votes
0answers
13 views

xna multiplayer movement

So I have a tcp sockets network setup with the ability for clients to connect to the server. I'm currently trying to do movement. And iv discovers that tcp is terrible for sending out the x and y ...
0
votes
0answers
9 views

LibGdx scaling properly

I've mad use of view ports and they do what they say they do, but the problem is I'm not able to get it to scale the whole world with it. The game is for android which it looks nice on but desktop is ...
0
votes
0answers
7 views

Player rotation issues (Player returns to default forward rotation after releasing keys)

So basically what is happening is that my player rotates and faces the direction that he is currently being steered toward (which is wonderful). But after I release, let's say the A key, meaning he is ...
1
vote
1answer
120 views

Unity - How to save variables for Android Game?

This is my current code, it only work into unity, when i test it in an Android Device it don't save the variable public class Click : MonoBehaviour{ public UnityEngine.UI.Text proiettiliTotali; ...
0
votes
2answers
319 views

Cocos2d-x 3.0 animation frame by frame

As I know animations are actions. Now I need to play animation frame by frame. Say I have an animation from N frames. each frame should be played after t delay. Now I want to play animation frame by ...
0
votes
1answer
36 views

Libgdx - How to change GestureListener pan finger sensibility?

I implemented GestureListener in my Overlap2dStage to pan the camera when the player drags its finger over the screen. But I also have some actors that extend InputAdapter to detect when the user ...
0
votes
0answers
4 views

UV texture mapping with perspective correction works for 50%

So, I've been trying to get the UV texture mapping down with perspective correction. The triangle rasterization seems to work. The interpolation seems to work too. It's just the perspective ...
0
votes
1answer
120 views

Incomplete mesh using DrawIndexedPrimitives after rotating mesh

Through help on this site I was able to draw the triangles of an unrotated, nonscaled nontransformed mesh created in Blender and exported to OBJ, accurately imported through Assimp and rendered in XNA ...
0
votes
2answers
40 views

Libgdx - How to rotate a single ShapeRenderer object

So, looked at a couple of questions similar to this, led me straight into dead ends. I have an object drawn out in ShapeRenderer, and I wish to rotate only that one object. I have tried ...
-2
votes
0answers
12 views

How can I get the position of a grouped object?

I'm trying to figure out how to get the position of grouped objects, is it even possible? all I'm getting is nil whatever I try. I am creating falling balls on my screen and would like to remove them ...
0
votes
0answers
7 views

Can't clip a sprite that has a custom shader in NGUI

I am using NGUI. I have an "NGUI Unity 2D Sprite". This sprite has a material with this shader: Shader "DM/Ripple Shader" { Properties { _Color ("Color", Color) = (1,1,1,1) ...
0
votes
1answer
30 views

Efficient method to export a lot of pre-rendered sprites from 3D models

I have a lot of 3D Characters and I wish to use them in a 2.5D game as Sprites; in doing this I have to render them from a fixed camera angle and since each should have its own atlas file containing ...
0
votes
2answers
63 views

Ball oblique impact physic in Java?

I know Q3 + Q4 = 90 I searched internet and many physic topics, but not found how to calculate this values in Java? (I found V3 and V4 but not found Q3 and Q4) So how can i calculate V3, V4, ...
0
votes
0answers
18 views

How to handle game widget destruction as a result of an event?

I have a simple hierarchy of containers and widgets like buttons, line edits and labels. Every node in this hierarchy is a Widget, specialized with a subclass to make custom behaviors for each type of ...
0
votes
1answer
58 views

Backgrounds for a game [duplicate]

I am writing a 2d game, I have designed the characters but I would need backgrounds, i'm looking free cavern backgrounds for a free game, advice ? thanks in advance
0
votes
1answer
112 views

Solitaire Game: Transferring Cards Design in C++

So, I'm working on a Solitaire game. I already created a the classes: Card, Pile, Stock. Each work as expected on it's own. My question is: What possible design for managing moving card(s) between the ...
1
vote
1answer
96 views

How do I publish to Google Play if I'm under 18?

I've finished my first Unity and want to release it on the Google Play store but can't because I am under 18. The main issue is that Google Wallet requires you to be over 18. How could I work around ...
0
votes
3answers
54 views

Which is the best method implementing a background scrolling for game in libgdx?

My question is very simple I am new to libgdx development, which is the best approach implementing a background that is to make the background move in y direction 1)My First approach is drawing the ...
0
votes
0answers
35 views

Must have game engine? [duplicate]

So I been working with android studio to create apps, and thought that I would try out a game, am I reading this correctly that I can not create the game in android studio and I must use a 3rd party ...
0
votes
0answers
17 views

I only have experience with Flash/AS3. What should I develop a game with? [on hold]

I only have experience with making games in AS3/Flash. The reason I ended up with this experience is because I started off as an animator. I love being able to animate everything on a Flash timeline ...
0
votes
0answers
20 views

2d Platformer Player with set of Items [duplicate]

I need some help on what is the easiest way to implement this feature. I had created a 2d platform game. the main character has a sword. so I had some set of frames for its animation. currently I need ...
0
votes
1answer
63 views

Where in old code would you know what to include to compile the complete program? [closed]

I got the source code to a couple of outdated games that I was trying to either clean up, or use the tools they did to create a new game from the same engine. I am just not quite sure about how to ...
1
vote
1answer
42 views

XNA C# Texture Atlases

Fairly new to XNA and not an expert on C# either. So I was following a tutorial, specifically this one http://rbwhitaker.wikidot.com/texture-atlases-1, and there is a bit of code I am unfamiliar with. ...
0
votes
2answers
148 views

Java libgdx Game Screens and rendering tile map [closed]

I'm working on a 2D tiled game with Java and libGDX. I'm having problems implementing gamescreens. I'm trying to set the screen to gameScreen and start rendering tiles, but I'm getting a nullpointer ...
0
votes
1answer
102 views

How do games such as aa Game have high levels in the structure of their code

How do games such as aa Game have high levels in the structure of their code? I mean if we want create a game with high levels, should we create and use a class for each level? I do not want code from ...
0
votes
1answer
103 views

What degree do you need to become a game designer,programmer,developer.etc [closed]

I was wintering what degree do you need in order to become a game designer,programmer or developer. P.S i mean people who work for companies such as riot or ubisoft,etc
2
votes
0answers
49 views

OpenGL enabled Java game not detected by Fraps

Recently I found out that I could enable OpenGL hardware acceleration in my java game with the line System.setProperty("sun.java2d.opengl", "True"); Initial tests showed a big boost in performance. ...
1
vote
1answer
53 views

In the game loop, apply dt before the loop starts, or after it finishes?

Say I have a Game class with an update loop that receives a time increment dt by parameter. I was wondering if it's better or customary to apply this dt before the loop starts or after the loop ...
0
votes
0answers
71 views

How is a game like Simcity or any other RTS programmed? [closed]

I've programmed a couple of programs where things are deterministic and happen after some input (keypress or whatever), in let's say 'steps'. But, what about something like simcity? There are many ...
1
vote
0answers
75 views

2D Parallax Scrolling

I'm trying to implement parallax scrolling and have a partially working equation (from a book I've read) but it doesn't fully align to the screen. I also want to stick purely to integer maths. I've ...
1
vote
1answer
92 views

DirectX 11 - Get the world matrix of my camera

I'm relatively new to the world of 3D games programming and I am not sure if I am understanding some key concepts correctly. Right now I have created a sphere that is 2.0f in radius which surround ...
1
vote
1answer
69 views

Unity free look camera on two axes. How do I do it?

I'm new to Unity and c# but have programming experience... I have a a simple "game" in Unity that shows one sphere orbiting another. How do I allow the camera to be moved by the user in a "free ...

15 30 50 per page