The physical location of an entity inside the game space, be it visible or invisible, absolute or relative.
3
votes
3answers
133 views
MMOFPS Choosing protocol for high-traffic network (UDP or TCP)? [closed]
my question about the player position sender protocol. In this article, he says "Never use TCP for networking a multiplayer game". Ok but UDP datas are not ordered. In this case, if somebody walking, ...
1
vote
2answers
67 views
Mapping of positions on images in different frames
I am looking for a possibility to map different positions on a 2D Image which has different frames.
Let's say I have an image, consisting of three frames, which shows a spaceship.
The first frame ...
0
votes
2answers
79 views
Android bitmap placing
I've recently added an explosion in my game, for when enemies get killed, and it works fine and all, but the explosion wont "spawn" on the enemies x and y.
The problem is that I'm not drawing the ...
0
votes
1answer
160 views
Ligdx Box2d : convert box2d coordinates into screen coordinates
I'm new in libgdx and i have a little problem. I created a body in box2d and i want to assign it a sprite; for that i need to get the position of the body,then insert into the main loop the updated ...
4
votes
3answers
333 views
Smooth Sprite Movement - Don't Add Velocity to Position?
I am trying to figure out if there is a way to move a sprite smoothly on the screen at different speeds without stuttering, but keeping the effect that it's moving smoothly; especially at faster ...
0
votes
0answers
64 views
Returning incorrect camera position (0, 0, 0) [closed]
So I've been trying to do picking code, but I've run across an issue before I even get started. I have a pointer that is rendered as a cube at the camera's position + 10 on the z axis, but when I run ...
-1
votes
1answer
49 views
differences in UDK map on different installs
My goal is to create a simple groundplane in UDK (11/2012 version, fresh install) that the user will be able to run around on. My requirements are therefore very basic and I tried to whip something up ...
1
vote
2answers
155 views
Moving an object around the the circle to the specific location in circumference
Well I have run out of ideas how to approach this particular problem.See the picture below:
So the idea is that the object (dot in black) has to get to a point mark X (red X mark).However the ...
0
votes
1answer
95 views
How to calculate the position of an attached model after rotation?
I'm programming a basic game on XNA. I started to place an object (eg weapon) attached to the right arm of my player. When I move my character forward behind left or right all right. But when I ...
1
vote
4answers
137 views
Logic that can traverse all possible layouts, but not checking every combination of identical pieces?
Suppose we have a grid of arbitrary size, which is filled by blocks of various widths and heights. There are many 2x2 blocks (meaning they take a total of 4 cells in the grid) and many 3x3 blocks, as ...
3
votes
1answer
97 views
How to make an object stay relative to another object
In the following example there is a guy and a boat. They have both a position, orientation and velocity.
The guy is standing on the shore and would like to board. He changes his position so he is ...
0
votes
2answers
241 views
Shuffle tiles position in the beginning of the game XNA Csharp
I'm trying to create a puzzle game where you move tiles to certain positions to make a whole image. I need help with randomizing the tiles start position so that they don't create the whole image at ...
1
vote
2answers
208 views
Get position of tile in tileset
Take this image: http://ScrnSht.com/nkvusq
How can i get the position of tile 14 (or any other) when only knowing the following:
Tile ID: 14
Rows: 4
Columns: 7
The end result should be 2x4.
0
votes
2answers
517 views
XNA - positioning after rotation
I have a turret with a 2 gunbarrels. The turret rotates towards my mouse. So far no problem. When it creates a few bullets and positions them at the end of the gun barrels.
Here is the problem. It ...
2
votes
1answer
258 views
Position Reconstruction from Depth by inverting Perspective Projection
I had some trouble reconstructing position from depth sampled from the depth buffer. I use the equivalent of gluPerspective in GLM. The code in GLM is:
template
GLM_FUNC_QUALIFIER detail::tmat4x4 ...
1
vote
1answer
565 views
Positioning a sprite in XNA: Use ClientBounds or BackBuffer?
I'm reading a book called "Learning XNA 4.0" written by Aaron Reed. Throughout most of the chapters, whenever he calculates the position of a sprite to use in his call to SpriteBatch.Draw, he uses ...
3
votes
1answer
229 views
Retrieving model position after applying modeltransforms in XNA
For this method that the goingBeyond XNA tutorial provides, it would be really convenient if I could retrieve the new position of the model after I apply all the transforms to the mesh. I have edited ...
3
votes
2answers
154 views
Camera placement sphere for an always fully visible object
Given an object:
With the bounds [x, y, z, width, height, depth]
And an orthographic projection [left, right, bottom, top, near, far]
I want to determine the radius of a sphere which allows me to ...
2
votes
1answer
233 views
multiply matrix by vector: what to do if need to change y-up to z-up?
I multiply a matrix with a position vector to get a new position, however, now I need to change my matrix from y-up coordinate space to z-up. Changing only the matrix won't work: how to apply the ...
0
votes
1answer
180 views
Why set the position of both b2Body and Box2DSprite?
In a game, we add a body for each sprite, the method is:
createBodyAtLocation:(CGPoint) forSprite:(Box2DSprite*)sprite
In which we create the body and we attach it to the sprite in parameter: ...
3
votes
2answers
579 views
Positional sound with headphones?
I've have read this interesting question, where is explained how to simulate positional sound with the left and right channel; but still I wonder: is it possible to simulate positional sound (with ...
2
votes
2answers
545 views
Making mouse pos realtive to a moving object
I'm coding my first actual game, trying without following tutorials, just trying to use my knowledge so far to make something playable. I'm creating (attempting) a simple side-scrolling shooter. I ...
1
vote
1answer
1k views
Looking at the mouse position in a top down Unity game?
I'm trying to make a simple top down game where the player looks at wherever the mouse is pointed. The player is only going to rotate on the Y axis.
Here's what I have so far but I can't seem to get ...
2
votes
1answer
221 views
delay camera xna
I read this tutorial http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Camera_delay.php
but i didnot unsterstand it. Is there another way to delay the camera position movement without this ...
0
votes
1answer
213 views
How to move the camera in XNA only after few moments?
I made the camera position 10 units from an object, but not behind it. I dont want the camera position behind the object right away when it rotates, I want that when I will rotate the object, the ...
0
votes
0answers
212 views
How to compute tile offset for different isometric angles?
I am working on an isometric game and the designers want to use a different isometric angle than the default one, where I simply had to do a 2/1 offset based on tile size.
I know what the new ...
1
vote
3answers
2k views
Find Point with only angle and distance
I'm working on a school project and we have to create a tank team with the programming game Robocode (tank battle with self programmed bots in Java).
I have to program a scout bot that scans, finds ...
3
votes
1answer
277 views
Entity position: In map or in script?
I'd like to know how others have handled the issue of storing the entity's position. (Or maybe it's not an issue and I just make it too complicated.)
I'm undecided on whether to store the position of ...
1
vote
1answer
352 views
Scene graphs vs in-game representation
This is a general question which aim is to allow me to start digging on the subject by myself.
As I noticed the general opinion is that scene graphs are good for describing the scene in a level ...
10
votes
9answers
1k views
How to implement time traveling into a game?
I was wondering how to implement time travel into a game. Nothing super complex, just time-reversal like what's in Braid, where the user can rewind/fast forward time by 30 seconds or whatever.
I ...
7
votes
2answers
490 views
How should one handle positions in a tile-based world?
I have a simple Tower Defense game using a tiled world. Creep and towers are on a tile at all times.
How should I represent the position of creeps in code? (Do creeps know their current tile and ...
4
votes
3answers
561 views
Kepler orbit : get position on the orbit over time
I'm developing a space-simulation related game, and I am having some trouble implementing the movement of binary stars, like this:
The two stars orbit their centroid, and their trajectories are ...
5
votes
4answers
926 views
Determing an object's position along a curve over time
I have some objects in my game which are "thrown". At the moment I am trying to implement this by having these objects follow a parabolic curve. I know the start point, the end point, the vertex and ...
6
votes
4answers
364 views
What data should I use to track the player position on a world at the same size of the earth in a multiplayer game?
I guess this kind of game or simulator already exist somewhere, but I'm not sure...
Let's imagine I'm making a game where the proportions of the planet earth and the humans beings on it are the same ...
6
votes
3answers
732 views
How would one determine the position of a participant in a racing game?
Now, for the record, I'm currently not implementing any racing game whatsoever, but this problem just popped into my mind and now I'm curious.
So how would one go about finding out which participant ...