2
votes
0answers
37 views

Dialog/event system in Java/libGDX

I hope that I'm posting this correctly as I'm new to the site, feel free to correct me if I'm in the wrong spot. As for my issue: I'm working on an 2D side-scrolling platformer game in libGDX, and ...
0
votes
0answers
3 views

UNITY3D - Orthographic Camera not render SHADER (2D GAME)

I have a problem with camera render, see the video please :) (note.: sorry for the music) http://youtu.be/BB8rXIzIWVU In Camera "Perspective", i can see the effect of shader: In Camera ...
1
vote
1answer
644 views

Geometry shader and triangle adjacency

I'm currently trying to change my project to use GL_TRIANGLE_ADJACENCY instead of GL_TRIANGLES. Following this question, I have managed to construct my index buffer fine, but when it comes to the ...
0
votes
0answers
7 views

Need help with torque and velocity [on hold]

I made some basic movement code for my player in C#. Here it is: public class Movement : MonoBehaviour { public float rotationspeed = 100.0f; public float maxrot; void Update () { ...
1
vote
1answer
13 views

How to write a custom map canvas and project coordinates on it?

I am writing a game with Objective C ( xcode ) and I need to use the users location service to mark their position on a map but since I need to create my own map component, I am not able to use the ...
0
votes
2answers
1k views

How do I create a message box that fires a callback on button press?

I need to create a message box with an "OK"-button. When the user touches the button, it should execute a callback. I'm new to this and couldn't find any articles in the docs.
0
votes
1answer
9 views

How to transform a matrix's local space position into another's local space

When looking at an example to learn how to do per pixel collision, I came across this: // Calculate a matrix which transforms from A's local space into // world space and then into B's local space ...
0
votes
2answers
501 views

Cocos2d: Moving background on update: offsett issue

working with Objective C, iOS and Cocos2d I am developing a vertical scrolling shooter game for iPhone (retina display models with 640 width x 960 height pixel resolution). My basic algorithm works ...
2
votes
1answer
24 views

Underwater Shader Animation Help

I found an underwater (distort) effect and I got it to work but somehow I cannot make it animate given the offset here: Fragment Shader code: uniform sampler2D fbo_texture; uniform float offset; ...
0
votes
0answers
9 views

How to make multiple characters with similar design [duplicate]

I am making a 2d platformer RPG game and I would like to create a character creation system that allows you to create your character as you please in the beginning. Since I want at least 10 different ...
5
votes
6answers
3k views

How can I create animated card graphics like in Hearthstone?

In the game Hearthstone, there are cards with animated images on them. A few examples: http://www.hearthhead.com/card=281/argent-commander http://www.hearthhead.com/card=469/blood-imp The ...
0
votes
0answers
6 views

dynamic body jumping out of water object

In my game I have my main object, a jetski, which will dive down into water, when the screen is touched. I managed to code the jetski diving down, with Box2d and some buoyancy forces. But when the ...
0
votes
0answers
7 views

added more characters on the same map Tile with slick2d

i have one problem, i don't know how to add more characters on the same map. I tried this but don't work. PS:I want to add enemy import org.newdawn.slick.GameContainer; import ...
0
votes
0answers
2 views

DirectX11 Line list axis

I tried drawing axis x, y, z. But, I couldn't see anything after rendering process. Before then, I found axis. When eyes(in app camera) are near at axis, I can see the axis. When eyes are far from ...
-1
votes
0answers
4 views

where can i find ios game assets and app icons? [duplicate]

I'm making a game for ios - and publishing it. And like most solo developers i dont have a designer, so im looking for a sites where i can find: sprites app icons (icons like what's displayed on the ...
0
votes
1answer
63 views

UDK: Playing two audio tracks simultaneously

I have some environmental music playing in the background, but when I try to play another track (door opening sound effect) at the same time the background music stops playing. How can I play two ...
0
votes
0answers
3 views

The Pixel Shader unit expects a Sampler configured for default filtering to be set at Slot 0 […]

I don't understand the error. The full output is : The Pixel Shader unit expects a Sampler configured for default filtering to be set at Slot 0, but the sampler bound at this slot is ...
0
votes
1answer
40 views

Can I use physics in Isometric map based games?

I am trying to use physics in my game which is an isometric map based strategy game that the player deals with a city full of buildings, roads and people in it. I am writing the game with Swift and ...
7
votes
1answer
1k views

How to occlude lights in Unity3D?

First off, I own Unity Pro. I've been looking in to occluding lights when they aren't being viewed for a while now to improve performance. The main methods I ran in to were using BecameVisible() and ...
0
votes
0answers
10 views

Using coroutines to instantiate larger GameObjects in Unity/C#

We are making a scroller type game for mobile platforms and we got pretty far (Beta is already out). Now we are adding some additional content and are starting to experience a noticable lag when ...
0
votes
1answer
48 views

unity animation not starting

I have written the following code: public class TargetAnimation : MonoBehaviour { Animation anim; public AnimationClip Open; // Use this for initialization void Start () { ...
2
votes
1answer
28 views

What causes SDL2 error 0xc00007b when running my game on other people's computers?

I made a game using SDL2 and made it available for download. However, I first tried to install and play it on a different computer, to no avail. I made sure to copy all the .dlls and install all the ...
1
vote
1answer
310 views

Cocos2dx+Chipmunk: Fully elastic collision between moving bodies

I'm using Cocos2dx and the built in Chipmunk physics engine, and currently I've got my PhysicsBodys' materials set up with: Density=0 Restitution=1 Friction=0 in order to get fully elastic ...
0
votes
0answers
5 views

applyForce as long as display is pressed

In my project I have my main character body. I want it to move down on the y-axis as long as the screen is pressed. I tried it with public boolean touchUp(int screenX, int screenY, int pointer, int ...
0
votes
0answers
21 views

BOX2D games slow down after adding some bodies [on hold]

My practice game is working fine. But when I add bodies in the game (multiple times using a loop) lets say 20 bodies at a single touch, game tends to slow down. As it gradually starts to see in slow ...
0
votes
1answer
13 views

Black screen when launching on phone

I am coding a game in libgdx. While adding the background I used the html module to watch the results fast and easy on my computer. But when I try to see it on my phone I just get a black screen. My ...
0
votes
1answer
58 views

Rotation and timer at the same time

I have a project where I flip a card after 5 seconds, then I want to start a countdown timer of x seconds. After x seconds the card flips again. I found a good example for the timer here, but that ...
0
votes
1answer
312 views

How to compute matrix transform local/world on OpenGL

I'm developing an OpenGL program where each object / entity contains m_WorldPosition, m_WorldOrientation, m_WorldScale and m_WorldTransform (Vector3, Quaternion, Vector3 and Matrix4f). The problem is ...
0
votes
1answer
11 views

How to rotate libGDX particle to face the direction of movement

I'm creating spark particle effect so I created simple horizontal spark texture. Here is what I currently have If I change rotation property, I get this But i want to rotate particle to face ...
0
votes
2answers
264 views

What's the most efficient way to deal with in-game messages in Allegro 5?

I have a little 2D game made with Allegro, and I want to introduce strings during gameplay. For example, I've just made it so a key is needed to open a door, so I'd need some tutorial text to appear ...
2
votes
2answers
2k views

Game-oriented programming language features/objectives/paradigm?

What are the features and language objectives (general problems to solves) or paradigms that a fictive programming language targetted at games (any kind of game) would require? For example, obviously ...
0
votes
1answer
14 views

Move an enemy towards the player in pygame

I set variables for the distance between the enemy and the player along the x-axis and y-axis. My plan is to move the enemy along the hypotenuse formed by y and x-axis line at a constant speed. The ...
0
votes
0answers
8 views

Web Player build is not playing on web. Why? [on hold]

I have been developing a web player game and after completing the build process in build settings I clicked on that build file then I found that the build was not playing on web and was showing some ...
1
vote
1answer
236 views

Cocos-2D asteroids style movement (iOS)

So I have a CCSprite subclass, well call this Spaceship. Spaceship needs to move on a loop, until I say othersise by calling a method. The method should look something like - ...
0
votes
1answer
32 views
+50

TypeError: R[o5R.F6s] is not a function in changing states in phaser box2d

i build my game using phaser.2.4.3.min.js and phaser.2.2.2.box2d.min.js When trying to change states this error is being raised TypeError: R[o5R.F6s] is not a function and i can't seem to figure out ...
0
votes
0answers
7 views

Unity WebGL or WebPlayer? [on hold]

The last time I tried WebGL (a couple of months ago), it ran at 30x lower framerate than webplayer, took forever to build, and had increased build size. Since then, I haven't seen significant work ...
0
votes
1answer
41 views

Updating object positions after screen moves. Is there a better way?

I am making a top down 2D shooter using SDL2 for fun and I ran into a problem. I have a whole list of enemies each with their position on the screen stored in an array. Now you only see a portion of ...
0
votes
1answer
37 views

Increasing friction or Adding force relative to transform position in Unity 2D?

Back again with a quick question! I have a few basic platforming mechanics going on in this scene. I have a prefab platform with an animation that loops back and forth between two different x ...
2
votes
1answer
505 views

UDK: Animating characters with weapons

I imported a custom character and a pistol model to UDK and both work, but the pistol doesn't appear with the animation of the pistol when I shoot or reload... Also, the character doesn't change its ...
-2
votes
0answers
19 views

Rendering a 3d object in c++? [on hold]

First off my question is how can i draw the rendered object onto the screen in c++ fast enough to run a 3d game. I already know the math to draw it just not how to draw it. I need to be able to draw ...
0
votes
0answers
11 views

Is it possible in Unity to Flip a 2D Sprite Without Flipping the Object it is Assigned to?

I 'built' (followed a tutorial) on a collision detection system, and when I flip the object to go left and right the collision messes up. So I have three options; find a way to modify the collision ...
0
votes
2answers
117 views

Game lags when my player collides with a specific object (solution known, unsure how to implement)

I'm developing a game in Android using LibGDX (although this is more of a JAVA problem than an engine problem). My aim is to have my player bounce off one spring onto another that will eventually take ...
0
votes
1answer
17 views

Approximating strength and hardness of alloys

I do not have any formal education in metallurgy, but I am trying to make a game mechanic based on it. I need to be able to alloy together different metals and alloyable materials such as carbon in ...
1
vote
2answers
251 views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
0
votes
0answers
10 views

Unity - drawing halos behind everything else

I would like it so that the halos created by the draw halo parameter in spotlights are drawn behind all other meshes etc, currently it does this very weird thing where halos are sliced in half by ...
0
votes
0answers
8 views

Cross-platform game to be wrapped into a native iOS/Android app

I need to build an app like Lumosity (https://play.google.com/store/apps/details?id=com.lumoslabs.lumosity) that is native app and have some game screens. So the question is: Is there a way to build ...
1
vote
1answer
132 views

Mix multisample and non multisample rendering in Directx11

is there a way to mix multisample and non multisample rendering in Directx11? It seems that when I create a multisampled render target I always get a multisampled rendering, regardless of the value of ...
0
votes
1answer
34 views

Implementing a modal dialog from scratch with C++

Right now I'm implementing my modal dialogs in windows with a separate message loop after popping up the dialog. This straightforward an approach won't work with other systems that don't have message ...
0
votes
1answer
18 views

Create a WebGL native plugin

I am trying to create a WebGL plugin and I read in the docs here: http://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html But I'm not sure I understand. I created a file in ...
1
vote
2answers
924 views

Matrix rotation wrong orientation LibGDX

I'm having a problem with matrix rotation in libgdx. I rotate it using the method matrix.rotate(Vector3 axis, float angle) but the rotation happens in the model orientation and I need it happens in ...

15 30 50 per page