A simple term for "translation", the change of position of an entity typically on the route of going from point A to point B.

learn more… | top users | synonyms

3
votes
2answers
344 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
1k 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 ...
3
votes
3answers
2k 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
385 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
6answers
2k views

How to implement object velocity as a vector

I'm working on a Breakout game, and want to change the ball's movement code from how I currently do it, to something based on vectors (as I feel learning and implementing movement based on vectors ...
1
vote
3answers
314 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
191 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 ...
0
votes
3answers
2k 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
525 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
395 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 ...
3
votes
1answer
306 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 ...
2
votes
3answers
543 views

Movement in RPG

I want to make an RPG game in which I move tile by tile. So when I hit up, the tile row that I am on decreases by one for example. Also, it's supposed to be a slow movement so that I can see the ...
1
vote
1answer
512 views

What algorithms can I use for bullet movement toward the enemy?

I'm developing 2D strategy game. There are weapons that shoot at enemies. From what I've read in this, this, this and this post I think that I need linear algebra, but I don't really understand what ...
0
votes
2answers
84 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 ...
3
votes
1answer
897 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
2answers
331 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 ...
2
votes
1answer
578 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
862 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
220 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
92 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
926 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
1k 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
1answer
1k 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 ...
1
vote
4answers
2k 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: ...
0
votes
1answer
230 views

Player sprite moving slower on iPhone 4

I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
5
votes
3answers
514 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 ...
0
votes
2answers
450 views

How do I move a sprite around using tile based movement in Java?

So, I'm new to Java and I want to get a sprite to move around the screen, like a tile-based movement. I really would like some help and some resources or tutorials could work. I've done a little C#, ...
5
votes
2answers
2k 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 ...
0
votes
1answer
222 views

I am looking to make a spaceship tilt as it corners but I cant get it to return

I am using the TL game engine I am not allowed to use a physics engine but I need to make the spaceship lean as it corners, I can make it lean but cannot make it return to its starting position. I ...
2
votes
1answer
203 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 ...
3
votes
1answer
477 views

XNA 2D Board game - trouble with the cursor

I just have started making a simple 2D board game using XNA, but I got stuck at the movement of the cursor. This is my problem: I have a 10x10 table on with I should use a cursor to navigate. I ...
2
votes
0answers
177 views

What is causing this behavior with the movement of Pong Ball in 2D? [closed]

//edit after running it through the debugger it turned out i had the display function set to x,x...TIL how to use a debugger I've been trying to teach myself C++ SDL with the lazyfoo tutorial and ...
5
votes
2answers
1k views

Is it safe to set FPS rate to a constant?

I learned from game class that in update function, every movements must be time dependent for the sake of linearity in movement. We made a simple game. Every move like going left, right or jump is ...
6
votes
2answers
4k 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 ...
0
votes
1answer
131 views

trouble in making a game questions?

all i've a little trouble understanding some concepts while making game please give your suggestions on my questions. I have a animated sprite image this i want to move this image according to given ...
2
votes
1answer
794 views

2D bullet movement speed problem [duplicate]

Possible Duplicate: Moving from A(x,y) to B(x1,y1) with constant speed? My problem is that I can't get my bullet movement right. The current update code I have for it is: speedX = deltaX; ...
2
votes
4answers
4k views

box2d and constant movement

i'm developing a game with a top down view, the players body is a circle. To move the character you need to tap on the screen and it moves to the spot. To achieve this i'm saving the coordinate of ...
2
votes
1answer
2k views

Speed of bodies in Box2D and libgdx

I want to move my bodies at higher speeds, but they have a top speed. I have an Ortoghraphic camera defined at 800x480. My world doesnt have gravity. I apply an impulse of 1000,and a force of 1000 ...
1
vote
1answer
350 views

Why does my 2d collision and movement not work properly?

I'm trying to write(in c++ using sdl) a mario like game as in a tile based world with by pixel movement for the character and I've run into some problems I cannot seem to find the source of: 1.The ...
4
votes
3answers
3k views

Moving from A(x,y) to B(x1,y1) with constant speed?

I currently have something like: float deltaX = point0.getX() - point1.getX(); float deltaY = point0.getY() - point1.getY(); And every 0.01 seconds I refresh my objects position like this: ...
2
votes
2answers
269 views

How does the Wii controller work?

I've never played the Wii or Kinect, but to my understanding, the Wii captures user movement with 4 cameras and translates them to controls. How does this work? Has Nintendo published anything on ...
0
votes
1answer
394 views

How can I determine which direction a 2D collision is occurring from?

The problem is as follows: Think 2D Zelda (Links Awakening, A Link to the Past) style movement where you can run into walls from any of the four cardinal directions, or basically up, down, left, and ...
2
votes
1answer
325 views

Move Sprite from A(x,y) to B(x1,y1);

I have a sprite with an UpdateHandler that can change it's position every 0.1 seconds. My Question is , given the Sprites current position, how can I move it to another position(like from 10,10 to ...
2
votes
1answer
1k views

C++/SDL Getting Multiple Bullets On-Screen

I've finally gotten this laser thing to work for my Space Shooter, and so far I've come across a slight problem. I've gotten the laser to position itself at the starting position correctly and move ...
3
votes
2answers
358 views

Is this aiming mechanic usable in a third-person top-down game?

Long story short: I've switched to a third person - top down perspective. The camera is fixed and looks down at the player. How can I implement 3d aiming ? The player needs to aim left and right as ...
15
votes
3answers
3k views

How does client-side prediction work?

I've read Valve + Gafferon and hundreds of pages from Google, but for whatever reason I can't get my head around client prediction. To my understanding, the basic problem is: Client A sends input ...
10
votes
4answers
785 views

Player moving up, is he jumping or climbing?

In a 2D physics-based platformer game that has ladders in it, how do you determine whether the player moving up is caused by a jump or him climbing a ladder, such that you know what animation to play? ...
-2
votes
1answer
1k views

How to make Moving road/track for android game? [closed]

I am very much new to Android game development. and i have little idea about the canvas and open GL. in one of my requirement i wanted to draw a moving road/track(Jazzy). how should i start. please ...
1
vote
1answer
515 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 ...
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)) ...