The physical location of an entity inside the game space, be it visible or invisible, absolute or relative.
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
545 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 ...
6
votes
4answers
374 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
920 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 ...
5
votes
4answers
984 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 ...
4
votes
3answers
820 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 ...
4
votes
3answers
705 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 ...
3
votes
1answer
297 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 ...
3
votes
1answer
241 views
Java: AI to make a mob face the player working half-way correctly
While creating some basic AI for my "ghost" mob that is just up for testing at the moment, I thought of allowing it to face the player, depending on the player location. I get it to work correctly, ...
3
votes
3answers
298 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, ...
3
votes
2answers
751 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 ...
3
votes
1answer
116 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 ...
3
votes
1answer
271 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
163 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
2answers
609 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 ...