A simple term for "translation", the change of position of an entity typically on the route of going from point A to point B.
1
vote
1answer
324 views
default xna 4.0 gametime don´t works well for 2D physics
I am developing a game using Visual Studio 2010 and XNA 4.0,
after advancing to some extent with the project (a platform based 2d platformer msdn starter kit) I got to test it on different computers ...
2
votes
2answers
168 views
What sort of data should be sent for mouse-based movement in a multiplayer game?
I'm new to the Multiplayer Rodeo here so please bear with me...
I am just getting started and I'm trying to figure out how to deal with movement.
I've looked at the question Best way to implement ...
0
votes
2answers
221 views
XNA move from start position to target position exactly in 3D
If I have a list of positions that map out a path a character should follow. What would be the best way to move at a constant speed to each position making sure the character lands exactly at each ...
9
votes
2answers
329 views
How to limit click'n'drag movement to an area?
I apologize for the somewhat generic title. I'm really don't have much clue about how to accomplish what I'm trying to do, which is making it harder even to research a possible solution.
I'm trying ...
4
votes
4answers
384 views
Can a high FPS negatively affect how a program runs?
Yeah I know this is a broad question and will get down rated, I'm just hoping for some answer before it gets closed.
Anyway, I'm using Slick 2D/Java to play around with graphics. I'm having some ...
5
votes
5answers
433 views
How do I implement deceleration for the player character?
Using delta time with addition and subtraction is easy.
player.speed += 100 * dt
However, multiplication and division complicate things a bit. For example, let's say I want the player to double his ...
1
vote
1answer
441 views
Handling player/background movements in 2D games
Suppose you have your animated character controlled by the player and a 2D world (like the old 2D side-scrolling games). When the user presses right on the keyboard, the background is moved to the ...
3
votes
2answers
357 views
How do you set the movement speed of a sprite?
I'm using Slick 2D/Java to play around with graphics. Getting an image to move is easy:
Input input = gc.getInput();
if(input.isKeyDown(sprite.up)){
sprite.y--;
}else if ...
5
votes
1answer
491 views
How to implement curved movement while tracking the appropriate angle?
I'm currently coding a 2D top-down car game which will be turn-based. And since it's turn-based, the cars won't be controlled directly (i.e. with a simple velocity vector that adjusts its angle when ...
1
vote
1answer
219 views
How to I get a rotated sprite to move left or right?
Using Java/Slick 2D, I'm using the mouse to rotate a sprite on the screen and the directional keys (in this case, WASD) to move the spite. Forwards and backwards is easy, just position += ...
8
votes
2answers
2k views
Free movement in a tile-based isometric game
Is there a reasonable easy way to implement free movement in a tile-based isometric game? Meaning that the player wouldn't just instantly jump from one tile to another or not be "snapped" to the grid ...
1
vote
1answer
337 views
openGL ES - change the render mode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY on touch [closed]
i want to change the rendermode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY when i touch the screen.
WHAT i Need :
Initially the object should be stationary. after touching the screen, it ...
4
votes
2answers
1k views
Move sprite in the direction it is facing?
I'm using Java/Slick 2D. I'm trying to use the mouse to rotate the sprite and the arrow keys to move the sprite. I can get the sprite to rotate no problem, but I cannot get it to move in the direction ...
0
votes
2answers
327 views
Can't get sprite to rotate correctly? [closed]
I'm attempting to play with graphics using Java/Slick 2d. I'm trying to get my sprite to rotate to wherever the mouse is on the screen and then move accordingly. I figured the best way to do this was ...
1
vote
2answers
203 views
Matrix camera, movement concept
Someone told me that the movement concept in my 2D game is bad. When left or right arrow is pressed I'm scrolling the background which makes you feel that player avatar is moving (the avatar's ...
7
votes
5answers
717 views
returning correct multiTouch id
I've spent countless hours on reading tutorials and looking at every question related to multiTouch from here and Stackoverflow. But I just cannot figure out how to do this correctly. I use a loop to ...
1
vote
2answers
278 views
Circular movement - eliminating speed ups near Y = 0
I have a basic algorithm to rotate an enemy around a 200 unit radius circle with center 0. This is how I'm achieving that:
if (position.Y <= 0 && position.X > -200)
{
position.X -= ...
3
votes
1answer
159 views
Achieving more fluent movement
I'm working on my first OpenGL 2D game and I've just locked the framerate of my game. However, the way objects move is far from satisfying: they tend to lag, which is shown in this video. I've thought ...
1
vote
1answer
572 views
Acceleration Based Player Movement
Ok, so I am making a first person shooter game and I am currently working on movement that looks and feels good. I want to incorporate acceleration based movement for the player so that he has to ...
0
votes
1answer
154 views
Control convention for circular movement?
I'm currently doing a kind of training project in Unity (still a beginner). It's supposed to be somewhat like Breakout, but instead of just going left and right I want the paddle to circle around the ...
3
votes
1answer
191 views
Limit rotation heading by cone/angle
What is a fast way of limiting the heading vector to a certain angle so that it turns in greater distance relative to the limit.
A smaller cone/angle should make the object take a far bigger curve to ...
12
votes
3answers
386 views
Technique for objects following each other in complete movement?
I'm wondering how objects follow each other where they move over the previous position of the object in front of them. When the leading object stops, all that are following should stop at their ...
0
votes
1answer
328 views
android basic Movement for array-objects
I was adviced to start a seperate question for this so here I go. Been stuck so long with this do if you can help, please do.
Lets get to it!
Im trying to set the speed for my bullets, but since Im ...
1
vote
0answers
62 views
obb vs obb and resolve/response for 2d space game [duplicate]
Possible Duplicate:
OBB vs OBB Collision Detection
How can i detect if an rotated obb intersects another
rotated obb and resolve it so both obb objects dont go further into each other.
I ...
3
votes
2answers
300 views
what is the name of the group of properties: position, velocity, acceleration, rotation
They say naming things is one of the hardest problems in computer programming, they were right.
Given the pseudocode below, what is a more appropriate name for this collection of properties?
Course, ...
2
votes
1answer
731 views
How can I accomplish Pokemon-style movement over tiles in java?
I'm talking about where if you press a directional key once you walk over to the adjacent tile and can't do any other actions during the walk. I can get my character to move one tile width, but my ...
2
votes
3answers
1k views
Handling movement in an Entity Component System
I'm working on a 2d RPG game in C# using an Entity-Component-System architecture, and I'm currently working on movement. Right now, I'm wondering how to organise the code so it looks a bit more.. ...
8
votes
1answer
296 views
Is there anything equivalent to Portal 2's linked_portal_door in any other engines?
I need the functionality of the linked_portal_door that's in Portal 2. I've searched a little in UDK and mostly got people trying to duplicate the portal gun. Does anyone know if UDK, CryEngine, ...
3
votes
2answers
834 views
I am looking to create realistic car movement using vectors
I have goggled how to do this and found this http://www.helixsoft.nl/articles/circle/sincos.htm I have had a go at it but most of the functions that were showed didn't work I just got errors because ...
2
votes
1answer
188 views
Non-random enemy movement implementation
I would like to implement enemy movement on a X-Y grid. Would it be a good idea to have a predefined table with an initial X-Y position and a predefined "surveillance path"? Each enemy will follow its ...
1
vote
3answers
243 views
Shaking objects near correct position (with video)
All right, so I'm testing two box objects. One is standing fixed in a position and another at the beginning of the program goes to the first one. And at the end the latter should stand completely over ...
1
vote
1answer
172 views
How would a sprite spawn more sprites under themself every second?
I am making a snake game and am having trouble to make the snake go longer, at the moment when I run the program, I just have the snake head eating apples. But I want the snake head(30x30) to spawn ...
2
votes
1answer
1k views
2D Topdown Shooter - Player Movement Relative to Mouse
I'm trying to make a topdown 2D space game for my school project. I'm almost done but I just want to add a few little things to make the game more fun to play.
if (keystate.IsKeyDown(Keys.W))
...
0
votes
3answers
1k views
How does changing weapons and character animation in 2d games work?
I know how I can make my character move by changing animation-frames. What if I want to use a weapon database? I want the character to fight with a bow and sometimes with an axe (different moves). Do ...
-1
votes
1answer
404 views
Hover Craft Algorithm
I have a hover craft and I would like to implement it but I don't know what the algorithm or equation of how the physics work is. The variables I think would be the falling speed, the aircraft ...
0
votes
1answer
343 views
Joystick example problem for android 2D
I've searched all over the web for an answer to this, and there are simular topics but nothing works for me, and I have no Idea why. I just want to move my sprite using a joystick, since I'm useless ...
2
votes
1answer
216 views
Space Invaders-type game: Keeping the enemies aligned with each other as they turn around?
OK, so here's the lowdown of the problem I'm trying to solve.
I'm developing a game in PyGame that's a cross between Space Invaders and Columns. I'm trying to make the motion of the enemies similar ...
0
votes
2answers
76 views
Crash when trying to detect touch [closed]
I've got a character in a 2D game using surfaceView that I want to be able to move using a button (eventually a joystick), but my game crashes as soon as I try to move my sprite.
This is my ...
2
votes
2answers
285 views
How to prioritize related game entity components?
I want to make a game where you have to run over a bunch of zombies with your car. When moving around, the zombies have a few things to take into consideration:
When there's no player around they ...
3
votes
1answer
508 views
What is a normalized Vector?
Can someone explain the following code? I need to learn what each part means so I can turn it into enemy movement in a space shoot-em-up
Vec2d playerPos;
Vec2d direction; // always normalized
float ...
2
votes
1answer
395 views
Frame independent acceleration
To make my game fps independent I move entities with
pos += speed * time
where time is the delta time since last frame.
That works perfectly well with speed but how do you do that with ...
0
votes
1answer
654 views
Synchronizing Movement in an MMO
I'm trying to decide how to implement player movement in an MMORPG. Player positions must be synchronized in a way that meets the following requirements:
Low lag
Difficult to hack or cheat
...
1
vote
1answer
185 views
Stack based state design for isometric character movement, am I doing it right?
I have been reading around about stack-based FSM, and I found it to be perfect for my game. However, when a character moves, it consequently have to face in some direction (and animation of each ...
1
vote
0answers
76 views
Updating object position
An object - a player or npc or whatever - has a position, direction and speed and such.
Before drawing each frame, we want to compute the current position of each object.
How do you do this?
If you ...
0
votes
2answers
605 views
3D: First Person Movement
I've searched and searched for a solution today but haven't found one.
I have a Camera with Vector3 and also the camera has an angle.
If I use this:
hero.position.x += speedX;
hero.position.z += ...
1
vote
3answers
815 views
XNA create differences in enemies
I created an enemy class for my game. It works well, except for one dilemma. When I spawn more than one enemy, eventually they begin to "overlap" and look like one enemy. I was wondering if anyone had ...
1
vote
4answers
1k views
Rotating a model AND translating it forward in XNA
I have this enemy class, and I want it to
1) Spawn at a certain place Vector3 pos
2) Rotate to face my player position
3) Move forward
As this code is now, it will appear at it's specified place: ...
1
vote
1answer
867 views
As3 Character movement in diffrent directions with labels?
I hope you can help me with the following problem:
I made a character in Illustrator. The player sees the character from above.
When you press the left arrow key character.gotoAndStop('left'); the ...
5
votes
3answers
440 views
Random monsters move in-sync instead of individually
I am making a game in which monsters spawn randomly and begin to move around randomly. I am fairly new at programming but not at game development. Through using a few tutorials I was able to make 1 ...
5
votes
2answers
2k views
How do I make my character slide down high-angled slopes?
I am currently working on my character's movement in Unity3D. I managed to make him move relatively to the mouse cursor.
I set a slope limit of 45°, which does not allow the character to walk up the ...


