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

0
votes
1answer
35 views

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

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
11 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
27 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
24 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?
0
votes
0answers
28 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?
-1
votes
0answers
28 views

Can't figure out why my sprite isn't moving

In my libGDX game I'm trying to make it so that the player character moves left and right depending on which side of the screen you press. However, when I run my code, I keep getting a null pointer ...
0
votes
1answer
33 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 ...
-1
votes
1answer
49 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
16 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 ...
5
votes
1answer
249 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 ...
0
votes
0answers
54 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
134 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
46 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
57 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
0answers
51 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
12 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
40 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
24 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
72 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
32 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 ...
0
votes
0answers
80 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
54 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
44 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
2answers
137 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 ...
1
vote
1answer
67 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: ...
2
votes
3answers
147 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 ...
0
votes
1answer
57 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, ...
0
votes
3answers
86 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 ...
2
votes
2answers
186 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 ...
1
vote
3answers
90 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 ...
0
votes
1answer
128 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 ...
1
vote
2answers
117 views

Restricting character movement to “rails”

I'm building a Pacman clone in Unity 3D and am now thinking about how to restrict the movement of the player to the hallways that the map is made up of. Basically, the player is only allowed to ...
0
votes
1answer
116 views

How can I smoothly move from tile to tile?

I've looked at other games with tile based movement. I am aiming to create a game like pokemon, where the player moves smoothly to the next tile. I am using KeyAdapter, in my KeyInput class. This ...
1
vote
2answers
87 views

Make square walk by rotating around corners

I in the very beginning of making a small game, and I'm having some problems getting the basic movement of my character. My character is a square that can be moved by rotating around a corner. The ...
0
votes
1answer
146 views

Smooth Npc Movement

I have an Npc in my rpg that moves around based on a Random() variable. My main goal is to have him walk in a random direction a small bit every 2 seconds. I only want him to move about 32 pixels ...
1
vote
1answer
112 views

Constraining Movement to Path/Splines

First of all take a quick look at this : https://www.youtube.com/watch?v=LQtKP-EymFM So this is to give a idea of what I mean by following a path, basicly I am trying to understand how something ...
0
votes
0answers
19 views

How to dynamically create movement range mesh? [duplicate]

How would I go about create a movement range /area of control indicator for a hexagonal game? I assume they generate a mesh proceduraly to match the tiles. Any good articles hat cover this topic? ...
2
votes
1answer
85 views

Implementing character movement using real physics

This is the first time I'm seriously developing a game so apologies if I'm missing the obvious. In my 2D platformer I adopted Box2D since it seemed like a natural solution to model gravitational ...
6
votes
3answers
101 views

Player acceleration formula and using it with authoritative server

I know the theory behind authoritative client-server architecture, it works very well for character movement in a tile-based world: you send messages like "I moved one square to the right", the server ...
1
vote
2answers
133 views

Framerate dependent movement

I'm moving my character controller using Euler integration like this: Vector3 originalPos = transform.position; Vector3 acceleration = Physics.gravity; velocity += acceleration * Time.deltaTime; ...
8
votes
6answers
3k views

How do you move a sprite in sub-pixel increments?

Pixels are either on or off. The minimum amount you can move a sprite is a single pixel. So how you make the sprite move slower than 1 pixel per frame? The way I did it was to add the speed to a ...
0
votes
1answer
60 views

Space Invaders: Getting the aliens to move as one [closed]

I'm having issues getting my invaders to move together. Currently they hit the edge of the screen and then go crazy. Here is the code for the Alien: #include "Alien.h" #include <iostream> ...
0
votes
0answers
136 views

Move body LibGDX Box2D

Hello I have a body and I want to move it. When I press the mouse button my body should move at that position (on the const speed)on the screen. I have override two methods(x1, y1 - point where my ...
0
votes
1answer
111 views

How to rotate and move a model in the direction it is facing?

I am not using Unity or XNA. Eventually, I will probably use OpenTK for graphics. But for the concept of a game I'm writing, I am using the console for keyboard input and visual logging of events, ...
0
votes
1answer
52 views

Using RPC's for movement of an object across a network [closed]

I've been building upon http://www.gamasutra.com/blogs/DarrelCusey/20130221/187128/Unity_Networking_Sample_Using_One_NetworkView.php At the moment when I spawn a sphere on the server it spawns on the ...
0
votes
1answer
125 views

How to implement mouse based movement in an RPG? (Java) [duplicate]

I'm making a 2D rpg and I want the character to move with the mouse, ie the user clicks and then the character moves to that location. How do I accomplish this?
0
votes
1answer
71 views

Spawning a Sphere and trying to move it [closed]

I've been trying to build upon a blog post on Gamasutra http://www.gamasutra.com/blogs/DarrelCusey/20130221/187128/Unity_Networking_Sample_Using_One_NetworkView.php In this I would like to spawn a ...
3
votes
2answers
232 views

How do I make a 2D race car turn smoothly? [duplicate]

I'm making a competitive 2-player 2D racing game for a school project. I'm struggling with the movements of my car: I made it a square for testing purposes and it can move left, right, up or down, but ...
0
votes
0answers
71 views

How do I make my character move during its animation?

I have an OGRE animation problem: I want to control a character with the WASD keys, but pressing W, the character only moves once the animation completes. I want to move the character with the ...
0
votes
1answer
101 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, ...