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
0answers
118 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
254 views

how would I go on about making a movement system like mario party

main question how would i go about getting a movement system similar to the one they have on mario party only minus the dice roll things i have researched so I have been studying the uses for ...
0
votes
1answer
38 views

Equation for exponential deceleration so the objects “stops” at destination

Let's say my ship's velocity during deacceleration phase is given by: v(t) = v0 * exp(-k * t) where v0 is the speed at the time of starting deacceleration and k is arbitrary constant. My problem ...
0
votes
1answer
587 views

Unity-Animation parameters are not being set

I have the following animation controller: with two parameters of walkingSpeed and Jump. I have the following code which should change the values: animator.SetFloat("walkingSpeed",0.9f); ...
0
votes
0answers
27 views

Problem with glTranslate

I'm making a scroller learning from thebennybox tutorials. In his way of scrolling he does this each loop. public void render() { // glPushMatrix(); { // draw to center ...
18
votes
2answers
2k views

Eight or infinity sign trajectory

When I want to move object around point I do: point.x *= cosf(timer.timeElapsed); point.y *= sinf(timer.timeElapsed); How to make point move on eight or infinity sign trajectory?
0
votes
1answer
62 views

Working out velocity/time based on physical pixels moved

In my game I integrate like so: (Please assume all variables to be declared) sprite.xTimeInSeconds = 5.0; //Time in seconds it should take this object to cross screen sprite.xVelocity = ...
0
votes
1answer
80 views

Controlling roll rotation when travelling along bezier curves [Unity3D]

I am currently working on implementing a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant ...
0
votes
1answer
106 views

Unity 2D - Pixel perfect movement using physics

I'm trying to make a game in the style of many NES games and I'd like object movement to do two things: I want to move an exact number of pixels per update. I want, for lack of a better term, ...
0
votes
1answer
57 views

Math for 2d movement with max speed?

I need some help with math in a 2d environment. I have a joystick that controls the acceleration vetor for the player figure. Its suppose to look like the ground is slippery which makes the figure ...
0
votes
1answer
28 views

how to make a sprite jump or fly and fall slowly

I'm a beginner in java and im suffering to make a 2d game. I already wrote a simple code that makes the character or the sprite jump by increment his Yposition when key is pressed and do the reverse ...
0
votes
1answer
69 views

Is sidescroller movement just offsetting the background?, MonoGame/XNA

When I make a sidescroller game and what to move my character do I just offset the background, or is there another better way?
0
votes
1answer
87 views

Game mechanic player following path looks very roughly

I want my player entity to follow a path, which works, but it looks very roughly. Like it would stuck everytime. bool arrivedX = false; bool arrivedY = false; float speed = 0.06f; ...
3
votes
2answers
345 views

RTS Movement + Navigation + Destination

I'm looking into building my own simple RTS game, and I'm trying to get my head around the movement of single, and multi selected units. (Developing in Unity) After much research, I now know that its ...
1
vote
0answers
41 views

Libgdx simple movement with velocity [closed]

Ok so this is driving me nuts. I've followed 3 tutorials now and I'm trying to get simple velocity to work and it just doesn't want to work for me. I have an open space and I want the character to be ...
1
vote
2answers
235 views

Show a range grid movement as3

How do I show range of grid movement in AS3? When player controls a character and chooses "move" options, the grid of movement will be displayed as 3 grid of X, 4 grid of Y (Both sides, + and -). So, ...
-1
votes
1answer
49 views

Sprite movement only works the first time, can't figure out why [closed]

In my libGDX game I have finally managed to get the sprite to move the way I want him to but for some reason my desired outcome only works the first time I run the code. If I try to run it again, he ...
0
votes
0answers
13 views

How can I track a leader vehicle at a specific angle and distance?

I am using Matlab and have code which allows a vehicle to find its way to certain coordinates chosen by the user. I now want to add a second vehicle which stays fixed at a specific distance and angle ...
0
votes
1answer
42 views

Adding movement to a text-based rpg battle

Outline I have the bones of a text-based RPG - the player can progress through a branching storyline and activate some simple events (recieivng/giving/trading items). As I am designing the battle ...
0
votes
1answer
30 views

How the values of h and the perpendicular had computed

How the values of h and the perpendicular had computed or taken in this answer of a previous question??? please clarify it How can I make a spline out of three points that define circular arc?
1
vote
1answer
546 views

How to follow object on CatmullRomSplines at constant speed (e.g. train and train carriage)?

I have a CatmullRomSpline, and using the very good example at https://github.com/libgdx/libgdx/wiki/Path-interface-%26-Splines I have my object moving at an even pace over the spline. Using a simple ...
5
votes
1answer
256 views

Get normal dependent on collisions position

As I hask ask here I'm working on how my objects can move over the terrain and other objects. My proposal and also an idea in the answers was to calculate the rotation from the object with the normals ...
-1
votes
1answer
58 views

How can I implement input handling into my game?

I'm making a libgdx game where the player dodges falling objects. To move the player I have it set so that on desktop he moves left and right when you press A and D respectively. I am trying to ...
0
votes
0answers
17 views

How can I increase the horizontal speed of something every N seconds in Unity and make it STAY increased? [duplicate]

I have these particles that only move horizontally and to make the game harder I would like to increase the speed of these particles every 5 or so seconds. I am not sure how to do this I am still ...
0
votes
0answers
62 views

Steering problem in 2d game

I am creating a little 2D non tiled top down game. The enemy uses steering behaviour for chasing player or wandering around, but I do not think my code is working as it should be. My problem is, the ...
0
votes
2answers
143 views

How to move a car over an environment

At the moment I'm writing a little OpenGL application. For now I have a car which can drive down a road. This works really good because I simply put the car on the street plane. Now let's say on the ...
0
votes
1answer
355 views

Can't go above max speed with RigidBody2D.AddForce()

I'm having trouble making a character move faster than a certain limit using RigidBody2D.AddForce(). My game is a top-down 2D game (constrained to the x/y plane). I'm using a float 'MovementSpeed' to ...
0
votes
0answers
55 views

How can I make several 2D objects move in complex pre-defined patterns?

I will be making my mobile 2D game in Unity and the objects in the game will have complicated movement. For example, there will be lots of squares (around 10-15 tiny squares) in the middle of the ...
0
votes
0answers
21 views

How to make a grid layout in Ruby (Gosu)?

So I'm attempting to make a simple Snake game. However, there's one major problem with that - I don't know how to make my playing field as a grid. So far I've split my snake into segemnts, which are ...
0
votes
1answer
44 views

How can I make background elements wrap around the screen?

I'm looking to make my clouds wrap around the screen in my game (like the picture). Right now it just continues off the screen. The current movement code is: Cloud.center = ...
0
votes
0answers
29 views

Check if object is at position, then move player as close to object without colliding, or re-direct player?

Basically what the title says, I'm using the mouse position to move the player around the screen, and the issue I'm having is that if there is, let's say, a boulder where I'm trying to run, how would ...
0
votes
1answer
77 views

Basic Monster Movement

I'm new to game development. Specifically server side. Currently I am trying to implement movement of monsters. From point A to point B. I have used an a* pathfinding library to calculate the path to ...
0
votes
0answers
49 views

moving a character in sprite kit

So I've created a game in which a number of tiles are created from a txt file to create a level for the player to navigate through, but I'm having trouble moving the player. func ...
1
vote
2answers
148 views

How do I limit the rotation speed of a mouse-following object?

I am trying to make a 2D top-down game where player controls a spaceship. The spaceship (a rocket) is just a sprite following the mouse cursor with a fixed speed and is always pointing toward the ...
4
votes
2answers
2k views

How to achieve smooth movement with a fixed timestep

Previously in the update method of my game I was using a variable time step which provided very smooth movement of a player sprite except when the frame rate would drop, even slightly. At that point I ...
9
votes
2answers
255 views

Interpolating between two networked states?

I have many entities on the client side that are simulated (their velocities are added to their positions on a per frame basis) and I let them dead reckon themselves. They send updates about where ...
2
votes
1answer
935 views

Why do I have to run my 2D game at 300+ FPS for movement to be passably smooth?

I'm working on a simple game with SFML, and the only way to make the game reasonably smooth is to allow it the highest framerate my machine can handle (that is, giving it no limit). 60 FPS in my game ...
0
votes
2answers
88 views

Improving the performance of smooth movement up and down

I would like to achieve a smooth movement of a game object up and down. The way I have always seen this done is via a sine wave, and adding the value of y for a specified X to the game objects value ...
1
vote
1answer
1k views

LibGDX: Smooth movement on a grid based game

I'm making a game with LibGDX where the player is on a grid (like a Chess board). For now, I'm moving the player by teleporting him 16px in a direction. I'd like to use the delta time to make smooth ...
0
votes
1answer
151 views

2D Tile Movement in Java

I have this tilemap and a player in my game, and I got the player to move by adding the velocity to the position. However, it is very hard to control the player exact this way of the tilemap. So, I ...
0
votes
0answers
111 views

Adding Player Movement and Firing on Touch Input (Unity)

I am having many problems with this. I am a new game developer and I am using a Unity tutorial. But I want to add touch input for movement and a touch button for firing the weapon. How can I do this? ...
0
votes
0answers
75 views

Projectile Delta Movement

I'm running into an issue where I can't get the Projectiles to travel in the right direction, I'll admit my trig is a little rusty, anyone know how below might be improved? I am trying to get the ...
0
votes
0answers
46 views

Gravity around a sphere with rotation? (Blitz 3D)

I've been making this space/moon type FPS game with Blitz 3D and I can't seem to get gravity working perfectly. Right now, it works, however when I go farther on the moon, I see that my character is ...
1
vote
1answer
71 views

Lots of bouncing balls sink into each other [closed]

I'm trying to model a system that simulates an arbitrary number of bouncing balls with some gravity. So far I've come up with a solution that can be seen here: ...
0
votes
1answer
104 views

3D Translations relative to 3D Rotations

I'm trying to program camera movement to be relative to camera rotation. (Forward is always forward, regardless of pitch, yaw, and roll) I want to be able to move forward, backward, left, right, up, ...
0
votes
1answer
64 views

Make continuos movements with controllers in LibGDX

I've been trying to make the OUYA controlers work with a LibGDX Framework Practice Game. Everything is working perfectly expected for one thing : The movements are not continuos. The problem is, ...
2
votes
3answers
154 views

Prevent movement cheating in MP games

I have read a lot about movement in multiplayer games, but not so much on preventing cheating. Let's say a client sends moves packets whenever the player press a movement button, then the server ...
2
votes
2answers
208 views

Movement on objects in 2D tile/grid based game

This question is an addition to both of these questions: Boat passing under a bridge in a 2D tile based RTS How to handle slopes/bridges in a 2d grid turn based strategy game While I get the idea ...
0
votes
3answers
96 views

What is the best way to keep track of time in a game?

I'm getting to the part in development where I'm noticing that timing is going to be an issue. If I put my movement update in the same function where I draw the scene, then a low FPS means slower ...
1
vote
3answers
102 views

How to make an object oscillate left and right?

I can't seem to make an object move left and right, back and forth, on room start whilst on solid ground. Codes I used: Step Event: if image_index is greater than 5, then physics_apply_force ...