All Questions

-1
votes
2answers
87 views

How to use the zoom gesture in libgdx?

I found the example code for the GestureListener class, but I don't understand the zoom method: private float initialScale = 1; public boolean zoom (float originalDistance, float currentDistance) { ...
-1
votes
1answer
66 views

Stop diagonal selection in my Match-3 game [duplicate]

I have a matching game where the user drags their finger over items to select them. The problem is, i only want the user to be able to select items by dragging vertically or horizontally, not ...
-1
votes
2answers
257 views

How do I make a 2D platformer AI aware of its allies?

I'm trying to develop a 2D platformer AI that is aware of its buddies and tries to not overlap with them. However, I always end up with an "snake": I dont want them to be so robotic, but instead ...
-1
votes
2answers
95 views

Camera movement bug

In my game, the player's movement script and the camera's movement script are separate. Both of them use "W", "A", "S", and "D" to move. The camera can also use "Q" and "E" to rotate around the ...
-1
votes
2answers
167 views

Unity score on touch adding up incorrectly

I'm currently working on a game where a user can click an object and this should increase their scored by 1. Unfortunately it seems to be increasing it by more than 1 sometimes and I can't figure out ...
-1
votes
2answers
67 views

LWJGL Jumping Down [closed]

I'm currently building a little game using LWJGL, and I got a Game class which contains my game loop, instances etc... And a Player class which contains a constructor (for x and y coords), logic ...
-1
votes
1answer
161 views

lerp z rotation towards mousepointer

I am trying to get transform.rotation.z to chase the mouse pointer at a rotation speed. But I get a very weird results and can't figure out what I am doing wrong. var mp = Input.mousePosition; ...
-1
votes
1answer
51 views

XNA spritebatch drawing order

Im new in this and im making XNA game. I have problem with spritebatch drawing order. To be explained : i click button to open inventory and i need all drawing to be behind my inventory layout. But ...
-1
votes
0answers
114 views

What's wrong with my tileMap implementation? [closed]

I need to implement a 2d platformer and decided to use a tilemap. I found this tutorial and tried to implement the second solution. The text says: Decompose movement into X and Y axes, step one at a ...
-1
votes
1answer
77 views

problem with texcoord at post effect (quad rendering)

I have this shader: float4x4 View; struct VS_INPUT { float2 Position : POSITION; float2 TexCoord : TEXCOORD; }; struct PS_INPUT { float4 Position : SV_Position; float2 TexCoord : ...
-1
votes
1answer
59 views

Combine textures with coordinates [closed]

Is it possible to add one texture to another texture, at specific coordinates? Like if I want to add a small texture(16x16) to big texture (1368 x 768) with coordinates ( 100, 100) so the small ...
-1
votes
2answers
313 views

How do I draw tile in a side-on perspective? [closed]

All the tutorials I've found regarding using tiles in game engines refer to games with an isometric or top-down view, much like this: I want to make a "beat em up"-game, where the view is tilted. ...
-1
votes
1answer
126 views

Opengl Obj with multiple textures. Jpg texture don't display

Hi i have problem with jpg textures. DDS is working good but jpg is not. This is my function to load JPG texture. In debuger i see that this works but i dont see anything. char * a =(char *) ...
-1
votes
1answer
135 views

Why are the coordinates interchanged in Monogame?

If I use XNA Gamestudio, I can draw a sprite on a specific position like this: spriteBatch.Draw(Texture2D, new Vector2(PositionX, PositionY), Color.White); But in Monogame, I must change the ...
-1
votes
1answer
213 views

Grid based Collision Detection between circles [duplicate]

I am working on a 2d arcade game where I have 5 types of circles with different sizes: The ship, the missiles, and 3 types of monsters. This is what it looks like: Currently I'm using brute force ...
-1
votes
1answer
130 views

Live capturing from Unity-like application

I need such thing for non-game application: A city-like 3D scene, containing a few people. People walk, run, stand, ... May be cars also. Around the scene some cameras are located. And I need them ...
-1
votes
1answer
70 views

Are there copyrights for board game Risk and can I make the game, or similar, for mobile? [duplicate]

are there copyrights for board game Risk? It's popular and with lots of versions floating around, so I don't know if someone has rights or just for specific version. I'm not planning to make money ...
-1
votes
1answer
113 views

Animating values using splines

I'm trying to create a system similar to Blender's f-curves or Unity's animation curves (google it, I'm not allowed to post more than two links yet). It's basically a 2D spline where time is on the ...
-1
votes
1answer
51 views

the basic or important thing that i need to learn from C# [closed]

I started to learn C#, and it's really big and have many things, but i want to learn the important things that can i use to programming my game. any advice ?
-1
votes
0answers
51 views

Draw object to screen without being affected by rotation / zooming [duplicate]

I have a 2D game, with a camera that follows the main player. In the game the camera may also rotate the view around the player / zoom in or out on the player. Let's say I want to add a mini-map to ...
-1
votes
2answers
166 views

Models are not rendered correctly. OpenGL

I'm working on my university OpenGL project and as a base of it I'm trying to combine several OpenGL tutorials, mainly tutorials from http://ogldev.atspace.co.uk/. The problem I have is that models ...
-1
votes
1answer
45 views

java Game: Rendering issue! [duplicate]

Hi I am making a java game in were you can build land. At the moment you can build but not destroy. So I want to be able to destroy. I have an array of the tiles. I think I might need to do something ...
-1
votes
1answer
159 views

java building game : snap to grid

I am making a game in where it's topdown and you can place blocks how can I have a snap to grid game so its like you place a block and it snaps to a grid so you cant place squares on top of eachother. ...
-1
votes
1answer
853 views

Loading TextureAtlases using AssetManager in LibGdx

I want to use AssetManager in LibGDX to load my TextureAtlas. But I am not getting it. I have actually one large 2048 x 2048 px image, that I am creating in Predator. and then I am using the regions. ...
-1
votes
1answer
95 views

Can not seem to adjust the speed of my Car

I'm programming in C++, rendering in OpenGL and using GLM for matrix/vector manipulation and I have implemented very (very) basic car controls; ignoring many forces that are present in reality. Since ...
-1
votes
1answer
169 views

why are there draw rate and update rate in fixed time step game loop?

http://www.gameprogblog.com/generic-game-loop/ Java boolean onLoop( Game game, GameState state, GameInput input, Graphics2D gr ) { long nanosElapsed = state.tick(); updateTime += nanosElapsed; ...
-1
votes
1answer
115 views

Collision function calls before colliding

My Box2D contact listener class is calling post solve and beginning the contact function before colliding? This is causing my object to bounce back before hitting the ground. What could be causing ...
-1
votes
1answer
132 views

Show message to one player issue in multi-player game

I Needed to show message to only one person of the multi player game,i am using smartfoxserver to developed a board based game and in this game how to differentiate 2 players in unity c#,and also how ...
-1
votes
1answer
492 views

LWJGL font not rendering, even with depth test and texture_2D

I'm running into an odd little problem here. I'm attempting to render a basic console over my LWJGL-based application, which should be easy enough through a decorator pattern of renderers (as in, one ...
-1
votes
1answer
165 views

Beginning android games, 2nd edition engine

I recently bought the book from Apress and have worked my way through it, unfortunately, it seems to just be dealing with side scrolling games and not Zelda-like top down games. I was wondering if ...
-1
votes
1answer
397 views

What's wrong with this Open GL ES 2.0. Shader?

I just can't understand this. The code works perfectly on the emulator(Which is supposed to give more problems than phones…), but when I try it on a LG-E610 it doesn't compile the vertex shader. This ...
-1
votes
1answer
805 views

libgdx intersection problem between rectangle and circle

My collision detection in libgdx is somehow buggy. player.png is 20*80px and ball.png 25*25px. Code: @Override public void create() { // ... batch = new SpriteBatch(); playerTex = ...
-1
votes
1answer
212 views

Using interpolation to traverse waypoints

I'm making an isometric turn based strategy. Characters can move between tiles and tiles only, so I made a function for moving one tile in any direction. Regarding path-finding, I implemented A*, ...
-1
votes
2answers
220 views

Pixel size for clips in retro NES-like game?

I'm making a retro videogame, currently I'm using 32px x 32px tiles for the map and 64px x 32px for the characters. However the game looks extremely small, I could increase the tile size to something ...
-1
votes
1answer
402 views

Box2D Static-Dynamic body joint eliminates collisions

I have a static body A, and a dynamic body B, and a dynamic body C. A is filtered to not collide with anything, B and C collide with each other. I wish to create a joint between B and A. When I ...
-1
votes
1answer
115 views

Render white background with Graphics in Canvas

I am developing a game that I would like the background to be white, and it just sticks to being black. Here is my render method: private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, ...
-1
votes
1answer
158 views

Texture doesn't draw correct

I'm writing a game using SFLM and Opengl but when I create a terrain i got some OpenGl problems. I use heightmaps to generate a terrain but when I load the texture on it the texture is not correct ...
-1
votes
1answer
132 views

FlxG.overlap() won't work

I need a collision detection that has no physics and it's FlxG.overlap(), right? But why it doesn't work? FlxG.collide() works for me but.. how can I remove the physics when I hit the monster with a ...
-1
votes
1answer
92 views

A custom method for events [closed]

Basically what I am trying to do here is to create an event system for a simple game engine I am working on. I'm trying to make this program as platform independent as possible with the C++ language ...
-1
votes
1answer
530 views

Different Attack Systems in RPG [duplicate]

I'm making a 2d rpg game with libgdx and java, and I'm wondering how I would organize different attack systems - magic, melee, etc. (it's not a turn-based rpg). I have a PlayerClass enum, a Player2D ...
-1
votes
1answer
454 views

Java moving image to where it is facing

I am trying to make an Asteroids type game. I searched and tried everything to move an image along its angle (as radiant). Using my knowledge of trigonometry I made the following calculation: x += ...
-1
votes
1answer
188 views

2D engine that uses Flash Platform classes? [closed]

I want to develop a 2D game for Android, but, I want to use Flash Platform's framework APIs, ex: Sprite, Shape, Graphics, Bitmap .. etc as I have already wrote my game in AS3 .. Is there a 2D engine ...
-1
votes
2answers
421 views

Move a player in the opposite direction they are looking

I'm looking to move the player in the opposite direction they are facing with a specified force. Rather than try to explain that better I created an image showing what I mean, I've tried reversing ...
-1
votes
1answer
830 views

Xna tile map collision

I finally found a tutorial on tile maps and loading them in from a file that I understand (http://circlessuck.blogspot.co.uk/2012/09/xna-tutorial-basic-tile-engine-part-2.html), however the tutorial ...
-1
votes
2answers
186 views

ParallaxBackground doesn't work well with sprite scaled

I'm trying to set a ParallaxBackground for my AndEngine's game. So I did this: Sprite montagne = new Sprite(0, 0, RM.montagneBackground, vertex); Sprite piante = new Sprite(0, 0, ...
-1
votes
1answer
216 views

Difficulties with zoom point

I want to zoom about an arbitrary zoom point. For example, if the player tabs on a place on his windows phone display, this place(position) should get the new center of his viewport. In addition, the ...
-1
votes
1answer
118 views

Trouble figuring out some attack/defense formulas. What should I change? [duplicate]

I'm working on something which requires a hunter to attack an animal. This is what I have so far. Attacker/Weapon POV Level - 1 to 50 Base - base attack level of the weapon Weapon Impact - ...
-1
votes
1answer
186 views

Recommended aspect ratio for android / smartphones?

I'm making a game for android and would do it in 720p, but the phones got all different aspect ratios. Also thinking about a ios and windows phone port later. When the aspect ratio does not match, ...
-1
votes
1answer
125 views

Smooth Ramp to zonal harmonics

I have written in blitz3D some code to generate arbitrary 2D lighting lookup textures and I'm looking for a way to compress them. The idea is that they look rather smooth and low frequency, there must ...
-1
votes
1answer
344 views

Using Shader causes triangle to disappear

The following is my rendering code. Private Sub GameRender() GL.Clear(ClearBufferMask.ColorBufferBit + ClearBufferMask.DepthBufferBit) GL.ClearColor(Color.SkyBlue) ...

15 30 50 per page