-1
votes
0answers
60 views

Why does this code update my object's position so fast? [on hold]

I was working on make my object appearing in the screen in random position. So I used Vector3.Lerp as it was mentioned in this question. I modified the code a bit as I was getting too much error and ...
-1
votes
0answers
32 views

Having an issue with generating chunks in a voxel engine [closed]

I am working on a voxel engine and I started doing some worldgen. I generate chunks on a different thread, because it causes too much lag to put on the main thread. When I start playing the chunks ...
0
votes
1answer
52 views

Why does this code not update my object's position?

I am trying to move the object in my frame in Time.deltaTime. I have not taken care the speed yet but the problem is, the object is almost at position (0,0) after I have multiplied the x & y axis ...
0
votes
1answer
37 views

Rotating a 3d vector around an axis using sines and cosines

I am trying to represent a 3d cone light's direction using only 2 variables. Right now I represent it with two points (6 variables) but I know that the direction in 3d space can be represented by two ...
1
vote
0answers
27 views

Lag when drawing single Texture multiple times in libGDX [closed]

I am building a game where you are basically drawing little dots on the screen with the help of the accelerometer. I am using a single instance of an Actor where I store the coordinates that needs to ...
0
votes
0answers
22 views

How to rotate a sprite from sprite sheet (sequence of rotating frames) using keyboard in Java [closed]

I am making a game for my HW project. Right now, my tank can move forward(right arrow), backward (left arrow) and fire when moving left or right. I currently have a Tank class which receives the ...
0
votes
2answers
45 views

Undefined reference error when trying to access a component using ECS [closed]

I'm trying to access the x and y values from PositionComponent in my MovementComponent but I get this error and I just can't figure out why I get this. in my Entity class I've got a function ...
0
votes
2answers
60 views

What is the best practice for handling touch events on different GameObjects in Unity2D?

First of all I want to describe what I have in my scene. 1. Joystick. 2. Main character that has link to joystick and handles touch events from joystick. 2. Buttons. 3. Other GameObjects that must ...
1
vote
2answers
76 views

How to determine this kind of vector?

Take a look at the picture. I've got a camera(brown) and its ray(red). As I know ray has a direction and unlimited length(if you don't set it yourself). But now I need to determine ray's vector ...
0
votes
0answers
15 views

select a audio file from sdcard or playlist [closed]

I just want to select a audio file from my sdcard or playlist by clicking on that audio file or by adding check box facility,i don't want to play that audio file.please help me how to implement this ...
0
votes
1answer
66 views

Render system should know entity manager?

in an ecs based game architecture, I think the entity manager is a "high-level" system, and the render system a "low-level" system. When I move my entity (that means I edit the position component of ...
0
votes
1answer
40 views

Developing game progress screen

I'm developing an application for iPhone which contains a screen where the user is able to track his progress. Something like so, as seen in the Two Dots game: Currently I plan on creating this ...
0
votes
0answers
35 views

Faction system in C# [closed]

In an RPG type game how would one go about handling a faction system? I was thinking about making a faction class that contains an int value that would determine how much it likes or dislikes another ...
-1
votes
0answers
56 views

Galaxy wide procedural NPC with local generation (3rd question edit) [closed]

I'm looking for a procedural technique to fake dynamics NPC with local procedurality, if possible complete with travel, genealogy, etc. Trying to be as complete and dynamic as possible. With dynamic ...
1
vote
0answers
47 views

Phaser noob: Why is my Phaser game jittery? [closed]

I'm just getting started with HTML5 game development, and I'm very impressed with the quality of Run Pixie Run and bunnymark in both desktop and mobile, so I've started making a game using Phaser ...
0
votes
1answer
78 views

Insufficient memory on creating vertex buffers

I'm building a voxel world generator with XNA where the voxels are rendered as polygonal cubes. The world is divided into 1024 chunks of 32x32x256 cubes each (as 32 chunks by 32 chunks), and each ...
0
votes
1answer
19 views

Texture2D.SetData Method Overload

Been reading up on various methods in the XNA framework, and found this one. I've done some Google searching, but I can't seem to find any information on how to use this particular method overload. ...
0
votes
1answer
33 views

Unity Button Without an Image?

I want to create a button whose clickable area is only specified by a BoxCollider with Unity's new UI (similar to how you would do it from within NGUI). I can't get a Unity Button to work without the ...
0
votes
1answer
60 views

Make camera move constantly upwards in box2d world

Im using libGdx to develop a 2d game, which has the following: The world moves in an upward direction by having a camera follow the player's y position. The user only controls player's x movement, ...
0
votes
1answer
48 views

Unity Player Prefs Deserialization not working in web build but is working in the editor

for some reason i can deserialize in the editor just fine with player prefs but when i make a web build it simply doesn't work. and since there's no real console log, i can't get any useful feedback. ...
1
vote
0answers
28 views

Unity Render Texture Artifacting

I'm having weird black artifacts appear on my render textures when they are transformed while the game is running. I am using a ScrollRect as a scrolling container for buttons (the buttons are just ...
0
votes
0answers
35 views

How Do I Implement Modern Smooth Animation Methods and Shapes? [closed]

I have noticed new methods of animation and drawing arising, while I can explain some or come up with algorithms for others. For example, I was watching a video by pewdiepie and I noticed the ...
0
votes
0answers
25 views

How to draw multiple large background images using libgdx?

I have developed a basic lunar lander-style game using Slick2D and dyn4j and am now redeveloping it using libgx for various reasons. I am having problems drawing the background (i.e. everything, but ...
0
votes
0answers
14 views

Disappearing model - vertices not rendered [closed]

I have a quad that has been drawn with OpenGL 3.2+ (using VAO's etc) but when I applied the matrices in the shader it only becomes visible between some Z values (between -0.8 and -1.25). The fact that ...
0
votes
2answers
67 views

If I released a game engine under GPL v3, can I specify what parts of their code can be released under their own license?

I have a few questions about what users of my engine could copyright in their own project. The way the engine would work would be that it would be a standalone program in Java that would load all of ...
0
votes
0answers
8 views

Fill color in moving object without flickering [duplicate]

Here is my code in which moon is moving around earth but now i want to fill moon and earth with color and also want to remove flickering in the moon while moving. Please help me, i will be very ...
-1
votes
0answers
41 views

Octree Malfunction [closed]

I am trying to build an Octree for collision detection and collision response. What I do is that I divide into octants my scene to optimize collision detection. The problem is, once an element moves ...
-1
votes
0answers
75 views

How to manage a 5000 players battle in real-time [closed]

I'm doing some research about how mmorpg works to support massive battle (four, five thousand players). Here I refer to EVE Online. I know that regions can be separated and isolated with portails and ...
0
votes
0answers
17 views

AssetManager and Pixmaps

I've been reading about AssetManager here: https://github.com/libgdx/libgdx/wiki/Managing-your-assets. Apparently assets are reference counted (with load and unload). I am wondering about Pixmaps. ...
0
votes
1answer
14 views

Saving Scores on iOS and Android devices using Monogame

Quick question. What is the best way to save a game score in a mobile device (iOS and Android) using Monogame (example game Flappy Bird score)? You can also list ways and approaches of saving scores ...
-1
votes
1answer
62 views

What's the optimal balance of story and combat in a game? [closed]

A good movie must balance the action and storytelling so that it keeps the pace without boring the audience with too much story. Now the questions is how should the action and story be balanced in a ...
2
votes
1answer
81 views

How can I create a screen-space distortion effect?

I am trying to create a screen-space distortion effect using shaders. This image demonstrating the effect I'm after is from Nvidia: Let's consider that I have access to the background texture. How ...
0
votes
0answers
21 views

Anything like AutoLayout for Processing?

So I'm making a game for Android using Processing but I'm having trouble with my buttons not being in the same position when I change the size of the screen, and I'm aware that you can use AutoLayout ...
-1
votes
0answers
15 views

Find transform from vector to vector in Directx11

In order to draw a line i need trasnform matrix to draw vertex buffer properly. So, i 'm trying to find good way to find such transform. First, that i thought about was to find axis by taking cross ...
2
votes
0answers
33 views

How can I generate isometric sprites based on a 3d model? [duplicate]

I'm wondering about the following: I'd like to create isometric sprites for a game that I'm currently developing. Rather than asking an artist to draw numerous sprites (which will be quite costly), ...
13
votes
4answers
2k views

Should a socket server and game server be separate processes?

Assume a simple standard client/server game. For the server, is it worthwhile to have a separate process that listens for connections and messages from clients and sends the data via local sockets or ...
3
votes
2answers
61 views

How can I draw curves above a mesh surface?

I am making an animation of a deformed sphere that represents some aspects of the wave function in a hydrogen atom. I am starting with an octahedron that i push through a tessellation shader. The ...
0
votes
2answers
80 views

32 bit or 16 bit textures

I'm trying to build some 2d character with Photoshop and Spine. By now, I have created some of my characters using 16 bit color depth images in Photoshop. Now, I wonder whether I have to use 32 bit or ...
0
votes
1answer
27 views

How to disable depth buffer in Directx11

For now i know what i must use OMSetDepthStencilState. In the beginning i must create two states and change them every time i need another. For now i have this and it doesn't work, i.e. objects ...
-2
votes
0answers
58 views

Guessing game - 3 Levels [closed]

I have a problem while making a guessing game which should contain 3 levels - every level should have a different range. For instance: For level 1 range [1-20] For level 2 range [1-50] For level 3 ...
0
votes
1answer
41 views

Drawing a Line in 3D using DirectX 11

I had a lot of problems to draw a line in a 3D and had a weird results.. The 3D Lines are projects in 2D and that's so weird. They only work with that view matrix configuration: XMVECTOR Eye = ...
0
votes
0answers
28 views

How to create Game levels in LIBGDX android game [closed]

Can anybody Guide me. I need to Create Game levels in LIBGDX android game that I have created using kilobolt zombie bird tutorial that is here ...
0
votes
0answers
10 views

MonoGame iOS .m4a song files load exception

On previous MonoGame iOS projects I have successfully loaded songs as raw .m4a files without using the content pipeline since .mp3 has a hefty license cost. A few days ago I updated to the latest ...
0
votes
0answers
24 views

How do i view minecraft forge commands in eclipse and how can I “learn the syntax” of making a mod? [closed]

I started learning Java a while ago and I have a decent understanding of the language (Im about half way through Herbert Scheildns Java a begginers guide book) I really wanted to code a minecraft mod ...
1
vote
1answer
60 views

How can I make Network.RPC call a method with params object[]?

Why do I need to do this? The game I'm working on fully conforms to a component style design. Every component that a game object uses is placed on the object and is disabled/enabled based on it's ...
0
votes
2answers
20 views

libgdx spect ratio not working on android

I have this method: public final float aspectRatioHeight(float originalW, float originalH) { float newHeight = (originalH / originalW) * (Gdx.graphics.getWidth()-20); return newHeight; } To ...
2
votes
2answers
76 views

Entity/Component System - Unique Behaviour

So, I decided to see what the Entity/Component system of game development was all about. I really liked it. So, I decided to implement my current game with it. My problem: Unique Behaviour with the ...
-1
votes
1answer
50 views

Very basic question [closed]

I am trying to reverse gravity for my very first game. I am very new to programming. so I must ask, what does "Invalid token '-some character-'in class, struct, or interface member declaration" ...
0
votes
0answers
23 views

Isometric game development on Mac using C++ [closed]

I am looking into trying to develop an isometric RPG that runs on Mac. I have never done anything with game development but I am fairly proficient in C++. Are there certain libraries I should look ...
0
votes
0answers
31 views

Subjects to learn to become a professional game programmer? [closed]

After learning bits and pieces and watching some game dev tutorials in java over a few months I finally realized I wanted to become a game dev. I've been wandering around for about a year looking for ...

15 30 50 per page