All Questions
2
votes
3answers
281 views
Jumping higher when the player touches a trigger collider in Unity
Im using Unity engine to create a 2D platformer. My character can single/double jump, this works fine everywhere except when i am in range of a collider with a IsTrigger set to TRUE, then my character ...
-2
votes
0answers
6 views
Creating a model of a sheet of paper
Im trying to export a 3ds model of a piece of paper with a scanned document as the material on the object.
I have tried rendering to texture but no luck.
Can someone help me so i can have the ...
1
vote
1answer
79 views
Algorithm to make an entity follow tile edges in a tilemap
I'm implementing something like the electric balls seen in this video https://www.youtube.com/watch?v=MWyB56AlAWw (skip to 1:55 and you will see this electrical balls follow tile edges in the ...
1
vote
1answer
97 views
How can I interpret NSF (Nintendo Sound Format) data as audio?
First, I'm not asking about details regarding the layout and format of an NSF file. The original spec (see here) covers most of the information that I need regarding finding the data associated with ...
0
votes
1answer
21 views
Can't attach animation to script [Unity 5 - C#]
I'm working on a little game (which is also my first one) and I want to insert a splash screen at the beginning (after the Unity one).
I've finally achieved to add a fade-in and a fade-out transistion ...
0
votes
1answer
12 views
Before I change position I want to check if the gameobjects are collinding
For starters I'm new to Unity3d. So my question is when I click on an object I want to change its position but without collinding with the other objects and I need a function to check that. I already ...
-2
votes
0answers
21 views
Drag object vertically in unity 2d
I'm new to unity and I'm currently working on a game with unity 2d. I want to know how can I drag only vertically an object on touch. The camera is in mode perspective. I appreciate your help.
0
votes
2answers
89 views
Outline of plane slice of arbitrary object
How would you extract the outline of a shape from slicing a plane through an arbitrary object?
Note: This is related to my Unity Answers question, but not exactly the same.
0
votes
0answers
8 views
How to preserve generated textures in XNA?
My game generates small "minimaps" for each room you go to, which are rendered onto render targets then stored in textures and displayed on the world map. When the game is saved, each new minimap is ...
1
vote
1answer
102 views
Isometric Tile Selection with rectangular bounding boxes
I am having problems trying to determine which tile I have selected with the mouse.
Currently it selects two tiles, rather than one. Producing the following results:
My tiles height, is half their ...
-1
votes
0answers
5 views
Java OpenGL - How do I make an object rotate with the camera?
I'm making a 3D game in OpenGL and I need a way to make an object always point towards the camera. It needs to have the same orientation, no matter where you are looking. How would I go about doing ...
0
votes
1answer
34 views
Camera will not move between given points, stuck at first given point
[EDIT: Working code added]
[Original question]
I'm putting together a "raid cam" or "overview cam" for a given map in my shooter for an observing player to use to fly down a given preset path (to ...
0
votes
0answers
6 views
OpenGL ES 2.0 save data for next render cycle
I'm currently writing a simple game, that should be able to cope with moving and rendering a large number of ships (particles). I started benchmarking with a sprite system, but obviously it was to ...
2
votes
1answer
39 views
GLSL: #define vs const
What is the difference between #define NAME VALUE and const int NAME = VALUE in GLSL 410 core?
As far as I can see, they both create a constant integer.
1
vote
2answers
20 views
libgdx object moving relative to other
I'm looking for a way to have an object / character with a number of other ones attach to it. Could someone guide about how to achieve this kind of behavior of objects moving relative to others? About ...
1
vote
1answer
157 views
Unity: LineRenderer always behind Sprite
So I'm not sure what I'm missing here -- I created a bullet gameobject with a linerenderer (no sprite renderer) -- and it always renders behind my other sprites, regardless of what I set the z ...
0
votes
0answers
20 views
Help me solve a problem with my rendering engine (Java + OpenGL)
Hey guys I need some help with my game rendering engine from someone with a bit more experience than I currently have as I cannot get my models to load properly.
The game is coded in OpenGL and Java ...
1
vote
0answers
12 views
City-region generation
I am currently making a procedural generated map and wanted to add regions to the cities indicating their reach, the way I am achieving it currently is by expanding outwards from the city center until ...
0
votes
1answer
24 views
LibGDX: Issue with unitScale for Tiled and Box2D
I've got the following: I use a TiledMap (loaded from a .tmx), each tile 32x32 pixels in size and generate the Box2D bodies for collision from the TiledMap's ObjectLayer. That all works fine, no ...
-2
votes
1answer
32 views
How to manipulate unity camera in a C# script?
I am new to unity and i'm trying to move the camera to follow the player, but everything i tried won't work. Please explain what each step is and show code. I want to add to its position not use ...
0
votes
1answer
108 views
Is it possible or not to share a geometry among many meshes and applied a different shaderMaterial for each?
I instanciate one PlaneGeometry, then I instanciate 200 meshes sharing this geometry and with their own instance of a given shaderMaterial. Here is a simplified version of the code :
...
var geom = ...
1
vote
0answers
13 views
How can I create random noise that is seamless across modular game assets?
Does anyone know how I can create a texture for a modular tile, such that when the tiles are arranged, random weathering effects such as scratches will be continuous across seams?
An example photo ...
1
vote
0answers
34 views
Instancing meshes messing up scene lighting
I've been rendering a scene (some objects over a large field of grass) to test shadow mapping which is working fine.
But when I use instancing to "gain" performance, I not only get a decrease in ...
0
votes
1answer
236 views
One Android app, dynamic load several Unity games
I'm a newbie in this unity world, exciting about everything in it.
Days ago I came up with this idea:
One day someone finds this android app, naming "Blahblah Game Engine" or anything else. This ...
-2
votes
0answers
6 views
Libgdx: remove transparency artefacts from CameraGroupStrategy when used with DecalBatch [on hold]
Please could someone suggest a shader or a whole solution? Or bits. I am stuck. Thank you.
2
votes
0answers
20 views
Playing movies in OpenGL?
Is there a library that will let me load a movie file and play it in an OpenGL application? Or maybe just a code sample that someone has lying around? I'm also using GLUT, if that makes a ...
0
votes
0answers
7 views
RTS: Determining which units are visible for player
Here's what I have:
Server runs game at 30 fps and sends keyframes to clients about 10 times a second.
Clients do not run any game logic, and only interpolate whatever is sent by the server.
I ...
4
votes
2answers
36 views
Good techniques for syncing gameplay actions to specific animation timings?
So I've come across an issue in the game I'm working on, but it seems to be a pretty fundamental thing that probably comes up in a lot of games.
My game requires that some gameplay function occurs ...
1
vote
1answer
299 views
How do I Rigidbody.AddForce(Vector3) in Unreal Engine?
I am coming from the Unity Engine, and trying to get my feet wet with Unreal Engine 4.8.x. I want to add a one-time force to an object. To accomplish this in Unity 5, I would use:
void Start(){
...
-2
votes
0answers
17 views
List of Best Irish Game Developers [on hold]
Does anyone have a list of game developers in Ireland preferably located in Connacht.
1
vote
3answers
207 views
Collision detection between draggable object and world objects?
I have a game I'm making in Javascript that will involve combining items by dragging and dropping them onto each other. Think Alchemy or similar.
So far, so good, but I hit a snag while trying to ...
1
vote
1answer
59 views
Player takes to long to start walk
I'm new in Unity and after doing some tutorials and read documentation from Unity, I've started a test project. The game is a 2.5D platformer and I wrote the PlayerController; It looks like this:
...
1
vote
1answer
13 views
Collisions between sprites in SpriteKit
I'm making a game in XCode using SpriteKit. The game has a player and different types of projectiles that he has to avoid. When the player collides with the projectiles, the score changes and the ...
0
votes
1answer
98 views
problem with SCNTransaction in Scene Kit
I'm trying to move an object over a period of ten seconds from y coordinate 0 to y coordinate 10. the object is created at y coordinate 0. The problem is when the animation starts, the object pops ...
0
votes
1answer
257 views
How to move rigidbody player to its facing direction with AddForce?
How can I move a rigidbody to its facing direction? I've already tried this:
rigidbody.AddForce (transform.forward * v, ForceMode.Acceleration);
// v is a public float which gets a new value in ...
0
votes
1answer
223 views
Marching Cubes Chunks
i'm doing some voxel based game, where i want to have voxel planets. i decided to use the marching cubes algorithm, and i successfully created a planet (even with noise) with the following density ...
0
votes
0answers
13 views
In-browser interactive character customization
I want to integrate a custom character generator into my website. In terms of functionality it should be similar to this. The user will customize his/her realistic avatar online, and see the result ...
0
votes
0answers
13 views
What is the best set of formula to use pinch gesture to implement zoom in/out in SpriteKit?
SpriteKit coordinate system origin is at the middle of screen and the positive Y direction is upward, however gesture recognizers origin is at upper left of the screen while the Y axis increase by ...
0
votes
1answer
135 views
Scrolling effect after touch
i'm making map for a game and need to make scrolling of map, so the main thing what i need is to calculate speed and move layer after player remove finger from screen.
I make it my own, but i think ...
0
votes
0answers
26 views
Integer ops only 3D triangle-triangle collision detection
I've a need for 3D triangle-triangle collision detection using integer math only. Unfortunately, I'm not in a position where I can use 64-bit integers (only 32-bit) and my vertex values can be larger ...
0
votes
1answer
50 views
Car Game: Engine and Gearbox calculations?
I am making a racing game inside of Blender Game Engine.
You can see the latest video here to get the impression of what type of game it is:
https://www.youtube.com/watch?v=0i3m-xXtnhc
What I want to ...
0
votes
0answers
11 views
Scaling geometry in an orthographic view
I'm having trouble understanding the results I'm getting from some of my matrix transformations. I've got an orthographic projection, and am drawing 2D circles on the screen. There is a camera matrix, ...
-1
votes
1answer
9 views
Remove Touch LIstener from scene at a specific point
how to remove SceneTouchListner at a specific point?
I am Working on a Endless Runner Game. my player is jumping onSceneTouchListner
when player is collide with a barrier i want to remove ...
1
vote
1answer
68 views
How to map texture to shape in Slick 2D
I need to map texture to shape. Texture:
This is a example of shapes I need to map texture to:
Notice that each piece in mesh has exactly 4 point to map texture. Logic is pretty straight ...
2
votes
1answer
16 views
Unity 5 Standard Assets for Linux / Ubuntu
Unity recently has released Unity3D Editor for Linux machines. But in its website there is no support for Linux / Ubuntu. As of Unity 5 standard game assets have been removed from the editor itself ...
0
votes
1answer
51 views
DirectX 10 - dimension of vertices passed to vertex shader
I'm trying to learn DirectX programming.
Looking at different tutorials there is something about vertices that I find a bit confusing.
I know that DirectX uses vertices with four elements (x, y, z, ...
0
votes
1answer
29 views
Why Intersector.overlaps return false?
I am trying my hand at creating a simple game using libGdx.
The idea is: We have a hero who jumps and world consist of dynamically created moving platforms in an auto side-scrolling manner. In order ...
2
votes
0answers
62 views
calculating torque from angular momentum considering inertia moment
so I am trying to determine exactly how much torque to apply to a 3d model to make it rotate at a particular rate.
I apply force from the location of each engine on the craft so if one breaks the ...
0
votes
1answer
15 views
The import aurelienribon cannot be resolved
I've been having problems with using the Tween Engine by aurelien ribon for a Splash Screen for my 2d game. I'm using Eclipse and libgdx.
I've tried rebuilding, clean...-ing, and refreshing.
I've ...
0
votes
1answer
31 views
XNA Line to Rectangle Collision return first pixel
I have the following code:
public static bool LineIntersectsRect(Point p1, Point p2, Rectangle r)
{
return LineIntersectsLine(p1, p2, new Point(r.X, r.Y), new Point(r.X + r.Width, ...