0
votes
0answers
6 views

2D collisions between 2 arrays

I'm trying to do collision detection between bullets and enemies in my game. But it's very unpredictable and sometimes it works, sometimes it doesn't (bullet goes straight through without doing ...
1
vote
0answers
15 views

Unity3d - Playerprefs not saving

Im trying to make a script to save the player settings like volume and field of view.It used to work before but it suddenly stopped for some reason.This is the script Im using(a part of it actually) : ...
0
votes
0answers
16 views

How to create a board with evenly spaced pieces in unity? [duplicate]

Creating a board should be easy but I am having a difficult time doing it in unity because of its world coordinates. I need to create a board that will have squares evenly spread out across the ...
-1
votes
0answers
21 views

How to implement camera GLSL shader in Unity3d? [on hold]

Hi I've just started learning shaders using this wikibook for Unity3d. I was searching web for cool shaders and came across this shader and I would love to implement the same in Unity3D. Could someone ...
0
votes
0answers
14 views

Remove sprite on touch [on hold]

Everything going well in this program but problem is related to remove sprite on Touch... code is here in coco2d 3.0 (c++) ...how can i remove generated sprite on touch??...help will be appreciated ...
0
votes
0answers
21 views

How can i write this code into cocos2d 3.0 in C++? [on hold]

-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch* touch = [touches anyObject]; CGPoint location = [touch locationInView: [touch view]]; NSUInteger i, count = ...
0
votes
0answers
23 views

From framebuffer texture to object space

I need to transform some points on a texture back to object space. What I thought up to now is: What I think I have on texture is just window coordinates normalized in the range [0...1] and the z ...
0
votes
1answer
29 views

collision in different layer

I have a game object called game object 1 on screen. It holds an image called red . when i drag an image called "animal" on a game object 1 collision happening fine and destroys the "animal" in same ...
0
votes
0answers
12 views

How can I scale dialog text in libgdx?

This is what I have and in this case for some reason only the back to menu button is scaled... public class GameOverWindow extends Dialog { private BitmapFontShader bitmapFontShader; ...
0
votes
1answer
87 views

Do I need to copyright my game before releasing it on the Android Play store?

I am developing a game on Android and I was wondering if I have to copyright it before putting it on the store (so no one can steal the idea)?
2
votes
2answers
34 views

How to do masking in Unity?

I'm trying to make a searchlight style punchout mask effect in unity 2d. I want to achieve this sort of effect: I made that animation in fireworks, using a white to black gradient circle masked on ...
0
votes
1answer
20 views

Batching and object's transformation

I'm trying to implement batching in my game (Sprite batching and 3D Mesh batching), I've read a lot of documentation about that but I don't understand something: When each object have is own ...
0
votes
0answers
33 views

A programmatic procession of a video image to apply a “SIMS” effect to it

I wonder if currently the following problem could be solved: We have a rectangular-shaped room, like many rooms in the buildings in the world. We have one camera in one of the corners of the room ...
1
vote
1answer
57 views

How do you handle irregular ovals in physics?

I am using a physics library based on the bullet physics engine. If I wanted to create an egg shaped object or a cylinder where the width differs from the depth (i.e. with an oval shape), how would I ...
0
votes
0answers
9 views

shifting turn in real time game using ios

I am trying to develop a real time game in ios but not getting how to shift turn that the users will likely to be real.I think it is not possible using php.So which will be better for that. Thank you ...
0
votes
0answers
12 views

How to put a rectangle around an ImageView in Android

I'm trying to make a rectangle have the same x, y, height and width values as an ImageView for collision detection purposes. Is there a way to do this?
0
votes
1answer
26 views

Infinite Jumper Snow Effect

I wish to achieve a snowing effect on my game. The game is made in LibGDX and im using ParticleEmitter. I created a snow effect in ParticleEditor which consists in a line which spawns snow flakes. The ...
0
votes
1answer
36 views

Word game - board implementation?

I'm working on a boggle type game for android, using libgdx. The user is presented with a 4x4 grid of letters and must find words by dragging their finger over the letters. Unlike boggle I want used ...
0
votes
0answers
7 views

[LibGdx]Moving a fixture on a body

I'm working with Box2D and I have a basic platform and a box bounces off of it. // Static Platform bdef.position.set(160 / PPM, 120 / PPM); bdef.type = BodyType.StaticBody; Body b = ...
0
votes
2answers
51 views

Tower Defense AI Path

I'm writing a tower defense game and I have most of the core parts done, except for having my enemy AI's follow a specific path. The path is not hard coded in. It should be generated from a tiled ...
0
votes
0answers
13 views

Gdx.graphics.getDeltaTime(); Returns 0

I am coding a game in Java using Eclipse and Libgdx. I am trying to make an object move until it reaches a certain random point. I am relying on delta time to make the objects speed the same on ...
1
vote
4answers
64 views

Check which object was activated first

How do I check which object was activated before the other? Let's say that there's door to open. To open the door you need to press firstly the second button and then the first button...but not the ...
0
votes
1answer
21 views

OpenGL strange rendering problem when buffers have different sizes

I have encountered a very odd error in my program, "odd" in the sense that everything the API says suggests that the error should not occur. I have a bunch of 2D un-indexed vertex data, and I want to ...
0
votes
0answers
50 views

Architecture of a simple game [on hold]

I am creating a simple 2D game in Android. When I started, I originally had all of the variables specific to each session of the game (score, level, etc.) as static variables inside of my game loop ...
-1
votes
0answers
19 views

Java external libraries [on hold]

Hello this is a pretty straight forward question but if you made a game (and sold it to people) using OpenGL or some other external libraries would you have to pay the people who made the external ...
0
votes
1answer
15 views

GameLogic Model as Property or Constants with lookup in other Models?

Basically imagine a game where the Player has a Weapon which has a BulletType/type of Bullet. Now Player, Weapon and Bullet are Models having properties and they would represent Instances in the ...
0
votes
0answers
8 views

LibGDX - Accelerometer Problems

I got some issues. I'm using LibGDX. When I hit an object, my Fighter is supposed to fall to the Ground. BUT, because of the Accelerometer, i can still move it up and down eventhough it died. The ...
0
votes
2answers
44 views

Clipping text in algorithm

I'm looking for an algorithm that can clip a text ( GUI Mesh text ) when it's length is over 20 characters. The problem is I have one background image(textured plane) (orthographic), where I want to ...
1
vote
0answers
23 views

Alpha Blending & HDR: How can I make my existing blending work with Linear Color?

I'm using semi-transparent particles with alpha blending set to One / InverseSourceAlpha. I'm rendering the "incorrect" way, in gamma space, with no srgb or anything. This looks great. Now I changed ...
0
votes
0answers
10 views

Android Eclipse Andengine [on hold]

Im trying to add a Game Engine on my project and that's AngEngine GLES2.0. My concern is that do adding/installing of it on my eclipse can damage my existing project? Also on my library there is an ...
0
votes
2answers
36 views

How to run multiple Lua scripts within the same lua state without conflict

I've been working with Lua for sometime and there is a problem that I could never solve it. First, I'm using a single lua state to have a connection between my scripts so they could transfer data via ...
1
vote
0answers
39 views

OpenGL seems to be getting its colour from the wrong array on some machines

I have a OpenSceneGraph application which displays a 2D mesh and allows the user to make selections on triangles and vertices and colour them. If you aren't familiar with OpenSceneGraph, it's basiclly ...
0
votes
1answer
80 views

How to prevent a circular dependency between an entity and its state?

I've read this question, and I think it has some good answers and discussion, but it appears to focus primarily on rendering. I have a different problem in the management of a game entity's state. ...
1
vote
0answers
36 views

Determine wheter an octree node needs to be continue

For collision detection (moving vs. non-moving) in my current project, I decided to implement an octree approach after the preselection. The only collision detection I'm currently using is a ...
1
vote
1answer
63 views

Using A*Pathfinding on terrain created by scripts?

I'm looking to use A* Path-finding as a method of navigating my game terrain. Trouble is, my terrain is built upon play using a script and A* grid does not detect this, therefore marking all nodes as ...
0
votes
0answers
31 views

How can I create a 2D camera with zoom and parallax scrolling that works on every Windows Phone resolution?

Mario game that uses parallax scrolling: http://www.youtube.com/watch?v=de5f3mvRyIY I want to create a Windows Phone jump-and-run game with parallax scrolling. The parallax scrolling should be like ...
2
votes
1answer
32 views

SpriteKit - How to jump to specific position?

I'm would like to achieve something like Object A will jump to position A in parabolic way. For example: I am able to make the object jump but i do not know how to calculate to make the object jump ...
0
votes
1answer
73 views

terrain not properly rendering

I'm extending the terrain quad with resources from various tutorials and have the following code: public class WorldTerrain extends TerrainQuad { public static final String NAME = "terrain"; ...
1
vote
0answers
32 views

Yet another libGDX resolution independance question

I am developping a Android smartphone game in LibGDX, and I am encountering issues about resolution managing. Most notably, I have no clue how to handle that in LibGDX. For now, I am developping ...
1
vote
0answers
55 views

UI rich Strategy/RPG UI - 2D Game Engine or UI Toolkit?

I'm on the fence regarding the graphics engine of my current game and hope for some advice. This is an UI heavy strategy/rpg. Although the game is played on a (simple) 2D map, it is largely turn ...
1
vote
1answer
74 views

why am I being unable to access public array of a class inside other class? [on hold]

I know this question has been asked before but my case is different(or i could not gather any kind of help from those) I am facing "NullReferenceException: Object reference not set to an instance of ...
0
votes
0answers
13 views

What are the steps that should be in mind when Modelling and exporting a Vehicle for Game [on hold]

I am new in 3D Game Development, I would like to know the steps that are included when modelling and exporting a Vehicle for Game In Details about all. I prefer 3Ds Max for Modelling the Vehicle ...
0
votes
0answers
29 views

Ray-Triangle Intersection Detection using Barycentric Coordinates

I am attempting to convert the algorithm from http://www.cbloom.com/3d/techdocs/fast_ray_tri.txt to java code, but my solution does not function correctly. The only intentional change I made was for ...
1
vote
1answer
48 views

How was/is playback of music handled on consoles such as the NES, Master System, Gameboy, etc?

So, I deliberately left out the SNES because AFAIK the music subsystem is basically entirely self-contained. However, on systems like the NES and Gameboy, while there are sound chips, there isn't any ...
0
votes
1answer
26 views

UE4: Apply texture on landscape based on angle

I am creating a material for my landscape. I know that one could for example use the landscapes heightmap as a mask to apply textures at certain heights, but I want to apply textures at certain ...
1
vote
1answer
40 views

Problem with Sprite not jumping off of platform (using rectangles for collision Detection)

When my sprite is on top of the platform, he stays on top of it, thanks to the rectangles I made for him and the ground he stands on. but when I click "jump" he does not jump most of the time. I need ...
0
votes
0answers
62 views

Designing a combat system in Unity [on hold]

I am working on a 3D RPG game using Unity and one of my next task is to design and implement a simple combat system. The combat system has multiple modes and allow the player character to attack the ...
2
votes
2answers
97 views

Implementing Mouse Lasso

I am toying around with a Boogaloopers clone (http://www.youtube.com/watch?v=zuaRi_fhdlQ). I have a small problem with the lassoing. Here's my current naive algorithm. The problem with this is that ...
1
vote
1answer
54 views

What is the appropriate way to implement wobble/balance mechanics in Unity 3D?

We are trying to implement a minigame where the player character sits on a bouncing ball, and needs to a) hit forward to move forward and b) hit left/right to adjust against the the ball's natural ...
0
votes
2answers
33 views

XNA graphics.PreferredBackBufferWidth's new value doesn't immediately change window size

I set the width and height of the window in my game constructor, and then pass the graphics manager to a class to check the value. In the game's initialize function, it doesn't seem to recognize the ...

15 30 50 per page