1
vote
2answers
19 views

How can I register Mouse Events in the Scene window of the Editor?

I want to create a custom level editor for the level designers that should allow them to place predefined objects in Unity3d similar to the Terrain wizard. How can I register Mouse Events in the ...
0
votes
1answer
51 views

Prevent button layout changing after one is removed?

I have a layout with four buttons in it. I end up removing one of the buttons using: View v = (View) findViewById(R.id.ViewId); ((ViewManager) v.getParent()).removeView(v); The ...
0
votes
0answers
8 views

texelFetch weird behaviour

I am writing an isometric game engine on OpenGL (version 3.3 specifically). For each wall tileset i have volume mask tileset for the wall relative volume coordinates. Volume mask looks like this: ...
0
votes
1answer
10 views

Game Maker - Random Won't Stop

I make a project. I want to make randomize number & draw the number result. So, I make obj_BossText, which has a draw event & executes a code inside the event. This is the code: randomize(); ...
1
vote
1answer
102 views

Should I always prefer a Uniform Buffer Object to a uniform variable for per-model uniforms in OpenGL?

I was looking for a way to update uniforms for all of my scene objects efficiently and I came across the following gamedev stackexchange question, where the top answer gives a bonus tip. It states: ...
1
vote
2answers
55 views

Primitives LINESTRIP Closing to the first point?

I'm doing a exercise form the Frank Luna book. It ask to draw a LineStrip that looks like the red line in the picture. I'm using ...
0
votes
0answers
8 views

Dynamically add Components to an Entity

In my game, I have an entity which is an empty robot, and some components which are parts for building that robot(arm, head, weapon, tool, etc) and each part consists of different types. What I want ...
1
vote
1answer
96 views

OpenGL Applications Bring computer to halt

Whenever I run any application that utilizes the OpenGL interface, my entire computer comes to a halt, but it doesn't do this when it utilizes the DirectX interface. I run both Linux (Ubuntu 15.10) ...
0
votes
0answers
10 views

Unity custom Button with a OnHold event

First off I'm not sure if I can even ask this question here since its not really connected with gameDev but rather with writing code for unity, but since this place has a lot of people who know more ...
1
vote
2answers
57 views

How to generate a city street network?

I would like to create a city generator for a game, but I am facing a problem at the very start of the generation: the road system. As it is a medieval world, I don't want a grid plan like many ...
0
votes
0answers
7 views

Why does my STB Vorbis decoder occasionally cause an EXCEPTION_ACCESS_VIOLATION?

I wrote an stbVorbis based decoder to load .oggs mostly using this tutorial. However, my code consistently causes an EXCEPTION_ACCESS_VIOLATION upon calling ...
0
votes
1answer
81 views

Calculating unique ID number from a set of bitmasked tiles

So I write this kind of match3-style game where you as a player need to match tiles with three or more of the same type and I'm thinking what is the best method to recognize the shapes without writing ...
0
votes
1answer
34 views

Assign a ScriptableObject to MonoScript through code

Sample code: public class Item : MonoBehavior { public ItemObject item; //the scriptable object void Start(){ // do stuff} } Normally I would drag and drop the asset of the ...
0
votes
1answer
30 views

How to make an object fly disabling gravity through C# script in unity

I want to make an object fly which has ridged body physics by disabling its gravity after pressing a key. So I just want to know how to disable gravity through C# script. I already went through google ...
0
votes
0answers
10 views

SFML2 parsing .tmx using STP

Im trying to load .tmx maps from Tiled Map Editor into SFML 2.3.2 using an extension library called STP. However, when i try to compile the provided example code from STP i get a linker error. ...
0
votes
1answer
28 views

Unity 3D - create autonomous moving robot in house + first person camera movement

I have very, very little knowledge about programming or Unity. I have done some basic tutorials, but I want to try something harder. The thing is, I don't know where to start. If you find the time to ...
1
vote
1answer
19 views

Level/Asset design for performance Unity

I am a big fan of modular assets. Currently I am designing a 3d game for mobile and I don't know how I should create my levels to get the most out of the device. Should I... create lots of "small" ...
2
votes
1answer
1k views

glsl shader to allow color change of skydome ogre3d

I'm still very new to all this but learning a lot. I'm putting together an application using Ogre3d as the rendering engine. So far I've got it running, with a simple scene, a day/night cycle system ...
0
votes
1answer
11 views

How to get which gameobject the mouse is over in Unity?

So I'm working on a simple drag-n-drop based trading card game for my own amusement. There is a card inspector included. What I want to achieve is to change values in the inspector (which has its ...
0
votes
0answers
7 views

Finding minimum horizontal offset to disjoin two objects in 3D

This is an extension of sorts of the question asked here: Allowing a player to walk up and down slopes without resistance I am using the Separating Axis Theorem to determine the minimum translation ...
1
vote
1answer
12 views

Average height of any point in a shape

Super quick intro. I am making a terrain generator (With a MC exporter mostly to debug). For the islands I am creating a map with points, and create a Voronoi diagram from it. Each intersection (Where ...
0
votes
2answers
108 views

Detect Input.GetMouseButtonUp outside a GameObject in Unity?

How do I detect Input.GetMouseButtonUp outside a specific GameObject's area in Unity? Are there any Unity Assets for this?
0
votes
1answer
53 views

How can I handle multiple force in Unity?

I'm trying to get my character to perform a "dash" where their x velocity increases rapidly and then falls over time. However, I'm also maintaining a constant x velocity so the character appears to be ...
0
votes
0answers
3 views

Game Maker - Collision With Subimage Total Storing

I have 3 objects: obj_bullet, obj_meteoriteLv2, obj_tempMeteoriteLv2. obj_meteoriteLv2 contains 4 sub-images. obj_tempMeteoriteLv2 helps obj_meteoriteLv2 spawn. obj_bullet is controlled by player, it ...
0
votes
0answers
6 views

Unity and C# - Lighting concentrated on floor with RenderSettings? How to get even lighting on all objects?

I am just getting into lighting with Unity 3d and right now have a function that progressively deepens the lighting of my scene here. I have done this via Render Settings and have tried 3 different ...
1
vote
2answers
367 views

How to stop movement when an action key is pressed even if movement key is pressed

I'm making a 2d side-scrolling fighting game in game maker:studio and I want to make a code that when the player attacks he stops moving. I've tried some options: keyboard_check(ord("D")); both ...
0
votes
1answer
183 views

Resizing a tiledmap when using phaser

var cw = window.innerWidth; var ch = window.innerHeight; var game = new Phaser.Game(cw, ch, Phaser.AUTO, 'game', { preload: preload, create: create, update: update }); ...
2
votes
1answer
161 views

Unity Engine: How to change mointor/desktop resolution in 4.5.3 and higher

As of unity 4.5.3, Screen.SetResolution and the Unity Resolution Display Dialog, by default, no longer change the monitor/desktop resolution. Instead, it only changes the render target resolution for ...
0
votes
1answer
22 views

Gravity wells that go with finger

I have a simple particle game, where all the particles are arranged in a grid. This game is for touch devices so to take advantage of it I am trying to have a multitouch gravity field thing going on. ...
0
votes
1answer
49 views

How to combat exponential growth in sprite messaging?

In my 2D platformer game, I have a number of sprites moving around the world. When two sprites collide with each other, I calculate how deep the collision is and then call a virtual method on both ...
4
votes
1answer
105 views

How do I change a value gradually over time?

I'm using Unity3D 5-point-something, and I'm planning on making a game where the player travels through a hot, dry desert, and so the heat causes the player's energy to deplete. The object of the ...
2
votes
1answer
65 views

Cannot connecting texture to heightmap using mapped uniform location

In my shader program, I have my attributes and uniforms added to a map for each. What I have displayed is a heightmap, but cant seem to connect the graphic texture to display. mUniformList ...
1
vote
0answers
19 views

How can I model AI Interactions across the entire game world without computing them individually?

I'm making a 2D top-down tile-based game in C++ using SDL2. The game uses a very large world map (think Dwarf Fortress). My world terrain is generated using a noise function, another function is ...
3
votes
1answer
388 views

How can I update a Stage-based HUD from another Stage's Actor in libGDX?

I feel like this is a simple problem, but I'm having issues finding the correct search terms. I have a Screen that includes two Stages. The first, stage, contains a number of objects deriving from ...
1
vote
1answer
33 views

Categorizing Projectiles in an arcade shooter (multiple inheritance?)

I have been working on a simple arcade shooter in Java in the vein of missile command/space invaders. I've made a base Projectile class and have been extending other Projectile types from it. This ...
1
vote
1answer
560 views

How to import animations from one model to others

I have two models (one animation in each) which I got for free from Mixamo. I imported them in Unity and they look like this: http://imgur.com/atjQbkI Justin@Idle and Justin@Walking. As can be seen ...
0
votes
2answers
33 views

Updating code to include states

The Problem I am having a problem in that I am finding it hard to understand how to update my current code so that it uses states. I am creating a game, the game has a menu, each page in the game ...
0
votes
1answer
9 views

Load game data via ajax

what are The Best practies To load game data that are Stored in a mysql database? I'm using ajax request. But The async Call is a problem because i can't sync The game level with The data load. And ...
1
vote
2answers
760 views

How to gain visibility on the Play Store?

Sometime in the near future I'll release my first Android game. It's not going to be anything special, but I'm trying to make it as polished as possible and I would like to know what I can do to ...
0
votes
0answers
14 views

GLSL `vec4` as return type syntax error? [on hold]

Here is my GLSL fragment shader code: #version 430 in vec3 fragPosition; in vec4 fragColor; in vec3 fragNormal; uniform int num_lights; layout(std430) buffer light { //... } vec4 lambert() { ...
0
votes
2answers
45 views

Unity 3d: Animating Offset on a Quad is causing stretching issue only with iOS devices - Using Wrap Mode: Repeat

I added a 3D Object > Quad and added a graphic on it with the Wrap Mode set to Repeat. I'm animating the Offset to scroll the repeating image for a parallax effect. Everything is working perfectly ...
1
vote
1answer
190 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 ...
3
votes
1answer
273 views

Determine wheter an octree node needs to be continue

For collision detection (moving vs. non-moving) in my current project, I decided to implement an octree approach after the preselection. The only collision detection I'm currently using is a ...
0
votes
0answers
13 views

Random Disconnects on UNET

Using UNET, I can't host a game for more than a few minutes unless both server and client are on the same computer. It appears that I am not alone in this. Essentially, any latency problems or ...
2
votes
1answer
309 views

Trying to implement Camera

I'm trying to implement a Camera class in order to walk and look on the world as follow: #ifndef _CAMERA_H_ #define _CAMERA_H_ #include <glm\glm.hpp> class Camera { public: Camera(); ...
0
votes
1answer
90 views

Cocos2d background sound not playing a second time C++

I'm using cocos2d-x on windows10 UWP project. I use the SimpleAudioEngine to load the music: CocosDenshion::SimpleAudioEngine::getInstance()->playBackgroundMusic("level_music1.wav",true); On the ...
0
votes
2answers
33 views

How to make the minimap inactive?

I have created a minimap for my top-down Shooter and it is showed on the top-left corner of the window. The problem is that if I press anywhere upon the minimap, its like pressing somewhere on the ...
1
vote
1answer
593 views

OpenGL Tessellation makes point

A little problem with my tessellation shader. I try to implement a simple tessellation shader but it only makes points. Here's my vertex shader : out vec4 ecPosition; out vec3 ecNormal; void ...
0
votes
0answers
13 views

How to flag interactivity to a player without an avatar? [on hold]

I'm working on the opening sequence of a game. As with many games there'll be an intro scene where the player can't do anything. And I want to transition smoothly to letting the player take control ...
0
votes
0answers
12 views

Why can't import height maps in Cryengine 5.1.0?

I just downloaded CryEngine 5.1.0 and started following the docs. I downloaded Cryengine V Beginners Pack. When I try to import FishingLakeHM.raw, I'm just left with the blue ocean and all terrain is ...

15 30 50 per page