0
votes
0answers
4 views

How to clamp a direction vector within a direction pyramid?

In 2D you can specific an angle range such as [-45 to +45] and clamp a 2D direction vector within that angle range. I want to have something similar for 3D. I want to specify the allowed directional ...
0
votes
0answers
3 views

Overlaying interactive Content over the stream from a camera in a native iOS/Android app

I'm making a game for iOS/Android that requires the user to point their phone at a scene and interact with a 3D object that is overlaid over the stream from their camera. The object is a fairly simple ...
0
votes
1answer
8 views

keylistener and synchronization

i have this code: public final class PlayerInput implements KeyboardInputHandler{ public static final int INVERTED_AXIS = 0; public static final int NORMAL_AXIS = 1; private Sprite sprite; private ...
0
votes
0answers
11 views

Interstitial admob libgdx

I'm trying to add interstitial ads to my game made in libgdx. I added the code following these two tutorials: first tutorial , second tutorial . The problem is that when I try to test in my android ...
0
votes
0answers
8 views

TiledMap problem in android device (LIBGDX)

I'm a noob on programming java apps, and I'm trying to make a very simple platformer game. All is running very well on desktop project, but, when I put the game on my Xperia a "strage" thing ...
0
votes
0answers
7 views

Authentication in network game servers

I'm currently building a UDP server that my game will talk to. The users will need to have an account created, either by using a Single Sign-On account such as Facebook or Google, or by creating an ...
0
votes
0answers
10 views

Libgdx + Box2d working with 2 cameras

Recently I have read that you can work with 2 cameras whenever you involve Box2d, which only works in meters. In my Renderer class, I receive all the entities in the game and then draw them. I work ...
0
votes
0answers
21 views

Question for my Interview for game artist [on hold]

i had a question about gaming. I have soon a interview for game artist in a school. I need to draw, but not Manga/Anime-Style, do you have any tips for me for what I can draw? i want to study game ...
0
votes
0answers
12 views

Client side + Server side physics: server loops behind the client

I'm currently running my physics simulation on the client as well as the server (nodejs/socketio). I made sure that everything is exactly the same: mass/velocity/impulse size. The loop on the server ...
0
votes
2answers
27 views

Unity UI issue trying to make a button work while held down

Pretty simple, have a rotate up button and I ant it to rotate while held down. using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.EventSystems; public class ...
0
votes
2answers
46 views

How to calculate the closing speed of two objects

I have the 2D positions and 2D velocity vectors of two objects. How do I calculate the closing velocity ? I want to get the closing speed.
0
votes
3answers
29 views

What is easiest way to move towards and along the edge on a hex grid?

I have a hexagonal grid with variable radius. My entity can move exacly 2 hexes per turn. How should I calculate next step towards border and afterwards travelling clockwise around map? Preferred ...
0
votes
1answer
19 views

Animation timeline organization for Unity 5

I create stuff for AssetStore and use 3ds max and Unity 5. Can someone tell me how I need to work with timeline? When I create animation for several objects, I need to animate them one by one? ...
2
votes
0answers
19 views

How would one generate a Navigation Grid for a 3d world?

I am attempting to find a solution to this problem. I'm trying to build a navigation mesh in the format of a grid of verticies locked to x,y floored coordinates in the shape of squares for 3D space. ...
1
vote
1answer
23 views

building timers in strategy games

I've got a web-based strategy game in which you build a city. Coding is smooth, but I'm kind of hung up on how long it takes my buildings to build. I want to keep the user playing, but have them long ...
1
vote
1answer
12 views

how to check if an array element is defined? (Game-maker studio)

The code is this: if is_undefined(A_SA[V_X,V_Y])=false and A_SA[V_X,V_Y]=0 { //actions from the "if" statement } The error message is this: Push :: Execution Error - Variable Index [0,10] out of ...
0
votes
0answers
6 views

Unity Networking dedicated server hosting multiple game instances

I am making a multiplayer game on Unity that uses a dedicated server for the networking needs. From what I found a dedicated server is simply you Unity game compiled headless which only allows one ...
1
vote
1answer
17 views

How to give a value to all elements of an array?

This problem is encountered in Game-maker studio: I created an array using the following iteration: V_X=0 //these are coordinates of my "pointer" V_Y=0 repeat(100) { ...
0
votes
0answers
21 views

Onboarding for games

I've created a new RPG and tested it with some players. They like it, but get lost at certain points. For example, I'm using hotkeys to open modals, T to talk, and other buttons that do various ...
0
votes
0answers
16 views

Using XNA to create an isometric tileset?

In XNA, how can I take any given texture, then render it so that it fits completely into a 64x31 (or 32x15) isometric tile such that it tessellates perfectly? My goal is to give various textures to my ...
0
votes
0answers
13 views

Error with Instantiate? [on hold]

I'm getting error with this code: var myNewSmoke = Instantiate (cube, temp, transform.rotation); myNewSmoke.transform.parent = gameObject.transform; error: Type ...
0
votes
1answer
11 views

LibGDX - Getting Tile Map Layers Problem

While following a tutorial with LibGDX, I am working with tile maps. This is the method that I'm using: tilemap.getLayers().get("Collision Layer"); or tilemap.getLayers().get(1); //1 is the ...
0
votes
0answers
10 views

Collision logic with Animations Java

Im trying to code a tile based platformer game with slick2d. While handling the collisions, Im facing with this problem. I could fix it for only that situation but I guess there must be a better way. ...
1
vote
0answers
17 views

Physically-based BRDFs

I'm starting to implement a real-time PBR shading pipeline in one of my projects and had a few questions that I thought folks around here could help clarify. 1) Is it fair to say that in a PBR ...
0
votes
0answers
25 views

Absurd issue with Vector3.Distance [on hold]

I am encountering an extremely absurd phenomenon. When I run this code on my smartphone via Unity Remote or even on the computer, it works as expected. But when I install the APK on the device and run ...
0
votes
0answers
6 views

ios SpriteKit game folder size very large

I made a very simple game - only facebook, twitter share icons but it does have Ad Networks SDK's and adapters. My entire folder that contains all the SDK's are currently 200mb. Will this be the final ...
0
votes
1answer
30 views

How should I setup my game engines classes? [on hold]

Note, this could already exist here, however I wasn't sure what to google on, and the googles I did gave me no good results, not sure if this is opinion based either. As the title says I would like ...
0
votes
1answer
21 views

Rotating an entire scene of blocks in OpenGL

I drew a big green platform and four cubes on top: This seems to work fine. I then tried rotating it in space. This didn't work so well, as the cubes rotate "into" the platform: Here's what I'm ...
0
votes
0answers
8 views

Pygame image blitting makes game lag

So I have a tile-based game that is 216X384 units large. Each square in the cell_array is grass, which I pre-loaded with convert_alpha(). Each time it draws (I have fps at 30), it cycles through the ...
-1
votes
1answer
37 views

Detect the position of the mouse press? [on hold]

I am encountering an extremely absurd phenomenon. When I run this code on my smartphone via Unity Remote or even on the computer, it works as expected. But when I install the APK on the device and run ...
1
vote
1answer
44 views

Libgdx, TiledMap, and tearing

My TiledMap tears when the window is specific sizes, resized, or the camera moves. The tileset is padded by 2px and have tried as high as 10px. Each tile is 70x70. Here are the pack.json ...
1
vote
0answers
13 views

Cocos2dx Windows Phone 8.1: Seperate Characters in RTL Label

I use below code to show a text : auto label = Label::createWithSystemFont("سلام و خداحافظ", "BTitrBold", 24); ( RTL text like Persian, Arabic and Hebrew) This code works fine in both **Android** ...
0
votes
0answers
11 views

UE4 -> HTML packaging not working

In the UE4 editor, if I try to package a project via File -> Package Project -> HTML5 option it creates the package, but doesn't work. A black screen shows up when I try to run the project's HTML file ...
1
vote
1answer
30 views

How to fix this unexpected movement?

I am facing a problem below is the detail. There are two scripts(actually more than two but these have the problem) Cannon.cs and Launch.cs and three buttons(up, down, and launch) to move cannon and ...
0
votes
0answers
25 views

Unity UI, how to hide on play

I have created a menu on Unity using the built in UI components,I can't create this on a seperate scene because I used the toggle button, which basically when you click it, it spawns a specific object ...
0
votes
0answers
18 views

Unreal Engine - Why is the size of even the most minimal HTML5 project ~ 155 MB?

I created a new project in UE4 (ver 4.10.4) with "no starter content" and "scalable to 2D/3D" settings. Essentially, there are a total of 5 assets in the project 1) floor, 2) light source, 3) sky ...
0
votes
0answers
17 views

How could I draw text in an 'info bubble' with libgdx?

I am making an android game using libgdx where there are textures on the screen which represent people. When you touch a person sprite I want a little info bubble to pop above their head displaying ...
0
votes
1answer
26 views

Any reason not to combine an AO Map and Cavity Map into one texture?

If an Ambient Occlusion Map is for mapping shadows based on closeness of neighboring geometry, and a Cavity Map is for mapping smaller shadows based on angle or distance, then is there any reason not ...
0
votes
1answer
40 views

What technique should I use to implement the following type of “diggable” terrain?

I'm trying to replicate a certain game mechanic from the game Diggles. This game takes place in a vertical cross-section of the earth and allows the player to dig tunnels and caves into the ...
1
vote
2answers
52 views

How to randomly spawn objects off-screen close to the player?

I am making a zombie game. I want to have it so zombies randomly spawn. My code for this is: instance_create( obj_player.x + irandom_range(-300, 300), obj_player.y + irandom_range(-300, 300), ...
0
votes
1answer
22 views

What causes SFML pollEvent to segfault here?

I'm writing an SFML application in C. Currently sfRenderWindow_pollEvent() and sfRenderWindow_waitEvent() always segfault. Here's the cleaned code that shows the issue. sfRenderWindow* window; ...
-4
votes
0answers
24 views

How to generate random bonus point in unity?

I make a 2D unity game like flappybird in my game I generate obstacle it work proper but i also generate bonus point between two obstacle but random position ,so how i can do this......
0
votes
0answers
6 views

Game maker studio 1.4 can not create executable

Background information: version: v1.4.1749 target: windows free version When I click on "create executable", it first asks me to login, then says "your account has no developer associated, would ...
1
vote
1answer
25 views

Unity sidescroller with 3D objects/environment. Should I create a 2D or 3D project?

I'm looking to make a side-scroller in which the camera and all objects can only move in the x and y directions. However, I'm going to have all objects and environments as actual 3D models. Is it ...
0
votes
0answers
13 views

Preventing a NavMesh agent from moving Diagonally?

I'm currently working on a topdown game that uses 3D models. I am planning on using the NavMesh system in Unity to handle the movement of my NPCs, however, the NavMesh agents move diagonally when ...
0
votes
0answers
7 views

Physics related actions for interfaces of IPointerDownHandler, IPointerUpHandler vs. FixedUpdate in Unity?

I've been reading anything physics related in Unity should be handled in the FixedUpdate() call. Is this also the case when you implement the IPointerDownHandler and IPointerUpHandler interfaces and ...
0
votes
0answers
8 views

Unity5 3D Hex tilesets and map generator

I want to challenge myself to make a prototype for a hex-based strategy game idea I had, but I am not so familiar with Unity or hexagons to be sure I have a decent plan. The idea is to generate a ...
0
votes
0answers
27 views

How to get correct quaternion value from real world to screen?

I'm writing an application (not a game per se, but close enough) where we use attitude sensors (an IMU) in the real world to affect the orientation of an object in the application's 3D space (OpenGL). ...
0
votes
1answer
25 views

How to start encouraging team collaboration?

I am working on converting a single player game to multiplayer, but I am concerned that if I simply do a 1-1 conversion, even in modes with "multiple players" there won't be any incentive for team ...
0
votes
2answers
52 views

Unable to move GameObject?

This simulates a GameObject swinging between two positions. I am unable to manually move a GameObject on the Y axis using the Unity editor (in scene view) when the following script is attached and ...

15 30 50 per page