0
votes
0answers
41 views

Why does my world generation code perform poorly on large inputs?

I'm writing some code to procedurally generate some islands in real time. The idea is to choose some points for each chunk, and for each tile calculate the distance from those points, then combine it ...
0
votes
1answer
61 views

How does one structure a Player GUI

I am using Java and the Slick2D library. I've been testing around with ways to develop a Player Graphical User Interface (GUI) (to show armour, items picked up, weapons equipped, etc). The one ...
1
vote
1answer
76 views

Most effective approach when creating % chance of something

When dealing with % chance in a game what are the most effective ways to achieve this? When I use random.random()[python] or Math.random()[javascript] and use an if/elif/else conditional it seems like ...
-1
votes
0answers
22 views

Development time Question [on hold]

With no development experience, from the self learning or college phase (from what I understand you already start making games while your in college; could be wrong correct me if so) all the way to ...
0
votes
1answer
30 views

GameObject eulerangle rotation is off

In a game I am creating players can flip their character. So say the player does a front flip, it triggers an animation that plays to flip the car forward. I have the player as a child of another ...
-1
votes
0answers
31 views

Fade out / fade in scene w/ loading screen [on hold]

I've got a (very simple?) requirement I just can't get to work, even though it's been covered by numerous tutorials and how-to's on the web. Basically, I want to transition between individual scenes ...
2
votes
1answer
112 views

Could triangles be used for swept-AABB checks between positions?

I'm trying to understand swept-AABB collision detection. When checking for collisions between two positions of an object, I commonly see one of 3 strategies used: Rays: trace rays from parts of the ...
0
votes
0answers
11 views

no lwjgl in java.library.path - however as far as I can see, everything is linked correctly! [on hold]

I am very new to java but have been really enjoying it so far. Progress has been fast and I almost have a little demo game fully working. However when I export it (I'm using Eclipse) the .jar won't ...
1
vote
0answers
32 views

How to make expanding ring with constant thickness?

I need to generate this burst or (donut-shaped) pulse. I'm having a difficult time how to generate such shape. At first, I was thinking of scaling the image but that didnt work out because the line or ...
0
votes
0answers
5 views

LibGDX Child node is not following animation

So I'm trying to place a golf club as a child node of the hand of our "golfer", so it follows the animation the golfer has when the animation is invoked. However, once I hit "Check Swing" (the button ...
14
votes
4answers
4k views

Is it a bad idea to “map” the mouse position on the screen so that collision detection works regardless of resolution?

Consider a game who's default resolution is 800x600. Objects with collision masks are placed in a game world of size 800x600. The collision masks can detect when the mouse collides with them. Now ...
0
votes
0answers
20 views

How does the Unreal Engine transaction (undo/redo) system work?

I would like the transaction system to handle the create/update/deletion of some custom objects. Then I can proceed as follow: // Create custom object: ...
0
votes
0answers
15 views

Resizing orthographic camera while zoomed

I have a orthographic camera. With the help of this camera i'm able to render a quad onto the screen using screen-cordinates. Using the camera i perform the zoom in/out on specific mouse position ...
0
votes
2answers
49 views

Opentk Textured Full Screen Quad

I want to display a texture on a full screen quad. What I get is a completely green quad and after a week of debugging I cannot understand why. I am currently using OpenTK 1.1.2225 and ...
0
votes
1answer
41 views

Refraction and transparency?

I need to do some refraction in a sphere. Do I need to make the object transparent first? Or just use refraction(refract) in HLSL DirectX?
1
vote
0answers
52 views

Is it possible to create a homemade depth buffer?

Studying the case of isometric rendering, I'm facing a big and well-known problem : depth sorting. After many researches it seems that without tile mapping or 'height-leveling' it's impossible to ...
-1
votes
0answers
50 views

Implementing gesture detection in LibGdx

what I tried: public class PlayState extends State implements GestureDetector.GestureListener { private Protagonist bird; private Texture bg; GestureDetector gestureDetector; ...
-2
votes
1answer
63 views

How to add DontDestroyOnLoad(); to script?

I am new to game development. I have a script with audio source and one slider to adjust volume of audio. I want to keep my music playing through all scenes. I think I have to use ...
3
votes
2answers
120 views

10 weapon types, 2 proficiencies, rock-paper-scissors relationship?

I want to make a game where there's a total of 10 general weapon types. I want any given character to be able to be proficient with 2 of the weapon types. Looking at the fact that 10 is an even ...
5
votes
2answers
161 views

Is it safe to base a combo system in frames instead of time?

I'm building a prototype for a fighting game (not vs, something like Final Fight). I'm trying to define the data for the player combo tree and had a look around looking for inspiration and have seen ...
0
votes
0answers
19 views

Making my game scalable? [duplicate]

I'm quite new to games development and just recently I've made my first Java platformer. I've been using Graphics2D to draw my spritesheets, but I've heard this method isn't very good in terms of ...
0
votes
1answer
68 views

Is glxinfo saying that the 980 GTX doesn't support a 32 bit depth buffer?

I've been using the glxinfo command (glxinfo -v) to explore the supported framebuffer configurations. There are two values relating to depth, "depth" and "depthsize." According the source, it appears ...
3
votes
0answers
33 views

How to await async operations / coroutines?

I'm looking for a generic / reusable way to wait for coroutines and asynchronous operations to finish in Unity 5, similiar to C#5's await keyword. The simplest way I can think of is something like ...
0
votes
1answer
47 views

Parsing .OBJ to fit the gldrawelements() call. c++/opengl

I'm struggling trying to get this to work like it should. Ive been able to make an obj loader that fits the glDrawArrays() call, with uv and facenormals, but when trying to modify it to fit ...
4
votes
0answers
58 views

Diamond-Square algorithm output is random and noisy

I have implemented a rough interpretation of the Diamond-Square algorithm in C++ to create some semi-realistic fractal terrain, but the output just seems like a random y value at each point rather ...
1
vote
1answer
43 views

If statement works fine until I add a tag check requirement. Why is this?

I'm trying to add a tag check to an if statement but for some reason when I add said tag check it stops working. void Update () { Vector3 fwd = transform.forward; // Equivalent to the ...
0
votes
1answer
24 views

Unity5 build won't run on android 2.3.3

I made a game using one of the Unity tutorials on their site and now would like to run on my phone (LG P500). But when I try to run it on the device, it says "Failure to initialize: Your hardware does ...
-1
votes
0answers
13 views

Reverse CopyOnWriteArrayList [closed]

How to reverse already sorted (by asc.) CopyOnWriteArrayList, when Collections.reverse(list) gives out error for this type of list? By the way, I need to use CopyOnWriteArrayList.
0
votes
0answers
6 views

Use UMG to extend an FModeToolkit in Unreal Engine 4?

I have a custom FModeToolkit, I would like to extend it with UMG (ultimately with Unreal.js, but it should work with Blueprints). How can I do it? I try to add a UWidget to this custom FModeToolkit, ...
1
vote
0answers
48 views

How to make the Steam overlay work with WPF?

I have developed a game using C#+WPF and the game is currently on Steam (private branch until release). However Steam's overlay isn't working with WPF. Sometimes it tries to appear in the popups of ...
0
votes
4answers
84 views

How do I trigger just once and not multiple times if I the Player enters the Trigger? [duplicate]

I wanna trigger just one time and not multiple times. I have a Health System and I want that the Player takes damage from an GameObject if he enters the Trigger but it directly triggers like 65 times ...
0
votes
1answer
35 views

Given a rotated transform, get normalized (proper up, front) version

I am working on a game where you roll a wheel down the track. Now I am looking to implement a feature, where you could turn it left and right, but I cannot get the proper vectors through which to ...
0
votes
0answers
4 views

Device rotation for select elements only?

I'd like to change the orientation for the Heads Up Display, but leave the game play intact on device rotation. I'm using Phaser and Cocoon.io (cordova). I'm not sure where to start. Any help is ...
0
votes
1answer
36 views

Sprites blurred in Unity (filter mode set to point)

I'm new to Unity and I'm developing Android game. When I connect my phone with Unity Remote and launch game, all textured are blurred and they look awfull. Did some research and set Filter mode to ...
0
votes
1answer
61 views

Network interpolation wont work for local player

im currently developing a little duengon crawler. It should have lan multiplayer and it works great but i think im sending to much packets. Should i send packets over network, when a player moves in ...
-1
votes
0answers
37 views

How to iterate over 25 Sprite Objects (Unity 5 - C#)

I wanna show a minimap on the screen, http://i.imgur.com/nFr6sDK.png the minimap would look like this (bottom right corner, this was done time ago in Visual Studio). Have two problems with that, I ...
-1
votes
0answers
42 views

How to make UI tower placement in 2D tower defense like kingdom rush using Unity? [on hold]

I want to make a 2d tower defense where the player can choose one from any towers , i have try to watching tutorial on youtube, read e-book and surfing the internet, but i can't found how i can make ...
0
votes
1answer
51 views

How to search for a visible player?

I've an enemy static tank with a "rotable" cannon turret. I would like to rotate it in the player's direction . How to implement it ? I've thought something like void Update { SearchForPlayer(); ...
0
votes
1answer
54 views

Do I need to use a game engine to make a simple game function on other platforms? [closed]

I'm a complete beginner really enjoying learning how to code (currently in Python) and my first games will be very simple, mostly text based, but I'd like them to run on friends' phones and computers ...
0
votes
2answers
45 views

Blinking object

I'm trying to make an element (3D object or UI element) blink in such way: There is a timer which counts down 10.0f seconds to 0.0f. In 10.0f to 9.9f range the object should fade out from opacity 1 ...
0
votes
2answers
35 views

Authoritative Server for single player but with leaderboard

I made a Fps single player, timed survival with a leaderboard ( a bit like devil daggers and others). I know would like to create a server that will prevent cheats such as avoiding collision or ...
-1
votes
0answers
20 views

how to move with update trajectoryPointCount [duplicate]

I am a new game developer, I am making a game, but I have a problem, I don't know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! enter code here ...
1
vote
1answer
71 views

Tile base Farm Simulation in Unity

I am thinking of creating a sprite base 2d top down farm simulation game. The game uses tiles and I was wondering (conceptually) what is the best way to handle the farm tiles. Each tiles should have ...
-1
votes
0answers
25 views

Performance issues: is static batching possible in Unity for runtime-generated meshes?

In order to profile a sub-system of my game, I set up the following test in Unity 5.3.4. I create a simple equilateral triangle on the fly and then I instantiate it 10 thousand times, at random ...
0
votes
1answer
27 views

How to refer to a object that has just been hit by a ray cast?

I would like to use RigidbodyConstraints.FreezeRotation;in order to freeze the rotation of an object that is picked up. The problem is I don't know how to refer (or call) the currently selected ...
0
votes
1answer
18 views

GLSL uniform array with size set by another uniform

Will the follwing GLSL code work? #version 330 uniform int size; uniform float[size]; void main() { //do something }
-2
votes
0answers
33 views

How to share code with other team members? [closed]

So, me and a friend have decided a while ago we want to get into game development. Now here we are, we understand C++ and want to begin development of games. So since we don't live together quite ...
2
votes
1answer
24 views

MonoGame renders texture in an almost compressed looking way

I was working on a game in MonoGame, which I have been doing for quite some time now. As I was implementing UI, I was noticing some sort of weird scanlines. Investigating further, to my surprise my ...
0
votes
0answers
30 views

Unable to translate the object such that it looks like it is moving

This is the code I'm using in the display function to translate the object. ` while(a<500.0) { glPushMatrix(); glTranslatef(a,0.0,0.0); glScalef(0.5,0.5,0.5); ...
0
votes
1answer
35 views

Having trouble setting a game object as a child of another. What is wrong here?

So I'm trying to raycast on mouse click if it hits any thing make that object a child of the sender (in this case the parent). Below is my code... public class PhysGun : MonoBehaviour { private ...

15 30 50 per page