0
votes
0answers
3 views

Using shader for cubes

I am trying to use a shader to get an effect like this. Notice how every cube has exactly the same lightning as every other no matter where it is on the screen if you look closely the lightning is ...
0
votes
0answers
8 views

PHP - MySQL database not updating from php IGM calculation

On my server I have a php script that calculated an amount for in game money, but the SELECT and UPDATE query are not doing the right thing. In my database I have two columns: | Name | Now | ...
0
votes
0answers
16 views

Projectile Delta Movement

I'm running into an issue where I can't get the Projectiles to travel in the right direction, I'll admit my trig is a little rusty, anyone know how below might be improved? I am trying to get the ...
0
votes
2answers
16 views

Designing a multi-level game

I want to know to code structure of a game that has different levels to choose from on the main screen. More precisely, I want to know how does the main loop hands off the rendering to another loop ...
0
votes
1answer
24 views

How do I derive an appropriate acceleration value for my game?

I am creating a Flappy Bird clone from this tutorial. I have a question about acceleration in libgdx. The author assigned the bird a constant acceleration vector in the constructor of the bird ...
0
votes
1answer
29 views

Logic for enemy chasing main player

I'm making AI to tell a minion to chase and attack the player. I played Magicka, and the minion follows the player in a nice curved manner (left image), rather than what I currently have (right ...
0
votes
0answers
10 views

Google Play Games: onSignInFailed() and onDestroy()

I just had an error while testing my game, this is an update that I'm working on and it's never done this before (and I've launched this game on various devices literally hundreds of times, so it ...
1
vote
0answers
14 views

Implementing rule engine so Mud engine supports D&D, Pathfinder and other rule sets

I am currently building a Mud game engine and have quiet a bit of it done. I am now starting work on building out how characters interact with the world around them, such as dialog, battle searching ...
0
votes
1answer
19 views

XNA draw texture/font and DrawIndexedPrimitives at the same time

When i Draw a texture2d or a font with spriteBatch and also draw GraphicsDevice.DrawIndexedPrimitives, the frame is draw weird SpriteBatch spriteBatch = new SpriteBatch(GraphicsDevice); BasicEffect ...
0
votes
1answer
29 views

Help with understanding “transform.root.GetComponent<>” in Unity

I'm reading through a tutorial for making an RTS in Unity, and in certain scripts it wants you to make a Player field and then OnStart(){ transform.root.GetComponent}. I am not quite getting what that ...
0
votes
1answer
18 views

Set Non-Looping Animation Time to Seconds

I have an animation that does not loop. It plays for the default duration (n seconds), then stops on the last frame. This is exactly what I want to have happen, but I want it to play for m seconds, ...
-1
votes
1answer
24 views

explaining simple math equation for calculating top, left

I can't visualize that simple equation: int left = birdSprite->m_X - birdSprite->GetImage()->GetWidth()/2;
0
votes
1answer
15 views

Cross-platform multiplayer game in JavaScript [on hold]

I want to start creating a simple multiplayer, JavaScript based, cross-platform game. Think about it as a two player mario where players can shoot each other. My question is what is the best way (or ...
0
votes
1answer
26 views

Animation works, but Unity doesn't realize it

I have an animation which plays once, and it played once just fine. I want to Invoke a method as soon as the animation finishes. I have been researching and experimenting for over an hour now, but ...
0
votes
0answers
11 views

Update Sprite Sheet

Every time I overwrite my sprite sheet with additional sprites, I have to reattach the textures to all of my animations. Is there a way to update a sprite sheet without affecting the sprites on that ...
0
votes
0answers
31 views

How do you ensure that the graphics still look the same with multiple artists? [duplicate]

There's warning that this question may appear "subjective". But it isn't. I hope you won't misunderstand me. Many different artists have many different styles to do something particular, especially in ...
0
votes
1answer
15 views

Add Existing Animation

I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
-2
votes
0answers
53 views

RAII and modern C++ in game dev [on hold]

Are the use of the RAII idiom and of the modern C++ principles adapted to game development in general ? Automatic memory management on the stack Smart pointers References Or, can these features ...
0
votes
1answer
23 views

Drawing 3D cubes with xna

I managed to draw a 3d cube using triangles like this: protected override void LoadContent() { basicEffect = new BasicEffect(GraphicsDevice); VertexPositionColor[] ...
1
vote
1answer
8 views

EditorApplication.SaveScene followed by EditorWindow.Close throws InvalidOperationException

I'm making a really basic custom editorwindow that has a textbox for a scene name, creates a scene with that name and closes itself. Trimmed down to the essence it looks like this: public void ...
0
votes
0answers
14 views

Arrange Jumble Word into English Word

Actually I want to make a Game. Game is very simple. There are 5*5 matrix with Jumble words and player needs to arrange those words into proper English Word. I have done small part of ...
2
votes
0answers
17 views

How to save file in assets so it can be properly loaded in Android Studio?

I am following a guide on creating a replica of Flappy Bird. - http://www.kilobolt.com/day-6-adding-graphics---welcome-to-the-necropolis.html The step I am having trouble is loading the texture from ...
0
votes
0answers
22 views

Is there a way to implement agent simulation for a city builder in Java? [on hold]

The agent simulation will be used in a city builder for things like traffic or people who will have jobs, homes and they will have to travel via computed routes. Is there a way to implement something ...
0
votes
0answers
6 views

Mac build not working, closes upon opening [on hold]

I made a Unity2D game. And built it mainly for standalone windows. Now, when I try to build a standalone for mac. It simply opens, and a second later, it closes it self, without showing anything, no ...
7
votes
2answers
500 views

Unity 3d 4 players Only 4 buttons can be pressed at a time

Only 4 buttons can be pressed at a time, so players cant move sometimes Each Player Has their own Controls i Change, Up Arrow and the other ones for each player---v InputsV-V-V public string ...
0
votes
1answer
30 views

Creating a separate renderer for entities in a 2D game

I'm making a 2D shooter game. As of now, every entity "draws itself", meaning every renderable entity has a draw function. I know it is better if rendering is handled separately, but how can I achieve ...
-1
votes
0answers
41 views

What is a game? [on hold]

What is a game? Is anything "fun" a game? Is it purely a subjective term? (I know there is subjectivity, but is there also a black and white answer to go with it?) Does it have to have mechanics, ...
1
vote
0answers
27 views

Farseer: Friend/Foe Collision - cannot push foes but friends

we are using Farseer in our project and I try to find a setup to achieve the following quite complicated collision behavior: Friendly Units can push each other aside. However, the push should be a ...
0
votes
1answer
17 views

Android OpenGL: Use several Textures for one Animated Sprite

Good evening. I'm programming an Android Game. To reduce the amount of textures that need to be loaded (OpenGL ES 2.0) I've created several spritesheets of size 1024x1024. Some frames of the same ...
0
votes
1answer
16 views

Scaling issues with mobile devices

Okay, So I know there are many questions about this and I looked around trying to find an issue like mind but I couldn't. So my issue is that I am trying to figure out how to fill the screen with ...
0
votes
0answers
18 views

Does Scala need to use LWJGL or something else? [on hold]

I'm trying out scala because of it's really neat features and its open source. Do I need to use LWJGL or something else for OpenGL development?
1
vote
2answers
65 views

2D Boat controlling physics

I'm working on a top-down 2D boat game with Unity3D. I couldn't able to understand how to implement physics of rudder controlling. My physics knowledge is not enough to think how rudder dynamics work. ...
0
votes
0answers
11 views

Image turn to white issue in WP8 [on hold]

I am using Unity 4.6 with new UI system. Please take a look at a normal dialog and the bug dialog below: When I press play button on normal dialog, the game will go to Main Scene, after that I ...
0
votes
0answers
14 views

Implementing projectile motion on Android's canvas [on hold]

I'm going to Implement projectile motion on Android's canvas with an image like ball or something but I really have no idea how can I exactly do it. I know these formulas: X(t) = speed * Cos(alpha) * ...
1
vote
1answer
60 views

Tiled Rendering - Projection matrix

I'm trying to figure out how to perform tiled rendering of my 3d scene (OpenGL). The motivation is to cut the scene up into several textures, combining them into a single image for saving at a very ...
1
vote
1answer
19 views

Permeable objects in Box2d

In Box2d, can I make a static object to be permeable by dynamic objects? Can I simulate something like water in a way that it lets rigid bodies to dive into it but at the same time pushes them off ...
1
vote
0answers
49 views

Discard Transparent Pixels in Z-Buffer

I am building a 2D game using sprites. I'd like to use the z-buffer to aid with shading. For that I need Unity to write only opaque pixels to the z-buffer (aka depth buffer). In Unity, sprites are ...
0
votes
0answers
39 views

Updating sprite Rect each frame

I have made a struct which sets 4 variables that define a rect void setDestSize(int width, int height) { Width = width; Height = height; } void ...
0
votes
0answers
31 views

How do I extract 3d data from the Maya c++ API correctly

My model doesn't show up in my Direct3D 11 application with animation. So, either I am loading the model incorrectly, or I am extracting the data from Maya incorrectly. I know the mesh data is ...
0
votes
1answer
15 views

Set world boundaries in box2d

So far I've seen the only way to set boundaries on box2d world which is to create rectangular shapes and place them at the edges of the screen, is there any other way? Perhaps I can set boundaries ...
0
votes
4answers
86 views

What are real world uses of secondary key bindings?

I'm currently wondering if there's really a reasonable use that would justify making the effort of implementing secondary key bindings? If you don't know what they are: They allow multiple controls ...
4
votes
1answer
49 views

Multiple Scripts versus single script

I have (methink) a simple question regarding attaching scripts to a GameObject. Is there any performance loss if I attach a script to a GameObject for each action to be performed (such as movement, ...
1
vote
0answers
19 views

Sprite animation with “overlapping” animations?

I'm trying to implement my own sprite animation system, and so far I've got it working quite nicely. I store each animation as a "take" which basically denotes the row of the animation in the sprite ...
-3
votes
0answers
26 views

Easiest way to create game avatars [on hold]

What tools are available for creating 3D models (human and humanoid avatars) for RPG and shooter games? And while we're at it, does anybody know a website where you could find already made avatars?
0
votes
0answers
11 views

Android View (Splashscreen) Vanishes after phone woken up from sleep

My game uses OpenGL ES 2.0 and I have a splashscreen which uses a standard Android View. This plashscreen is shown on top of the GLSurfaceView and then simply removed once everything has been loaded ...
0
votes
0answers
32 views

UV Mapping Best Practice for Architectural 3D Assets?

What would be a commonly preferred method of UV mapping for architectural 3D meshes that are being used as game assets. What I'm talking about are segments like walls, floors, ceiling, corners, etc. ...
2
votes
2answers
138 views

How can you subscribe to Unity input events, instead of polling for them

Been trying for days to figure out if there is a way to subscribe to keyboard/mouse events in unity. Instead of having to poll for them every frame and make my own events. Right now I poll through ...
0
votes
1answer
39 views

Background Music in Puzzle Math Game

Can someone suggest, recommend or directly link me on a site that offers free background music for an education puzzle game? I honestly not good in picking up a background audio that suits my puzzle ...
0
votes
0answers
17 views

How to convert OpenCV camera capture to Irrlicht texture without killing fps?

I am looking to include images captured from the users webcam into my application so I've been looking into using OpenCV to capture from the webcam and then render it in Irrlicht. I've created a basic ...
0
votes
1answer
41 views

How do I draw long tiled paths in 2D? (Eye of the Beholder style)

I'm using artwork from the following page: http://opengameart.org/content/first-person-dungeon-crawl-art-pack As you can see with the first artwork, the grass field is long. The floor also goes into ...

15 30 50 per page