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

1
vote
1answer
830 views

How to design enemies pattern in non-bullet-hell shmups in Unity? [closed]

I am making a top down shooter. Enemies will come in waves and attack in many different patterns (i.e. wave of 10 enemies flying in a elliptic curves, or a huge boss floating and shooting at you, ...
1
vote
2answers
393 views

How would I go 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 in Mario Party only minus the dice roll? Things I have researched I have been studying the uses for ...
2
votes
0answers
50 views

Moving a character based on a list of Vector 3's

I have a client server scenario. On the server there is an AI character who chooses a random point on the map and pathfinds to it, when at that point it chooses a new point and pathfinds again etc. ...
0
votes
1answer
75 views

Handling touch input with Event Trigger

I wrote a simple script to control my 'Player' object: using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float jumpVelocity = 10; ...
0
votes
1answer
904 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
1answer
86 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
22 views

How to move the generated polygon horizontally in openGL?

I am trying to develop a small ball game in OpenGL where rectangular bars of random height is generated and moved towards left and there is a ball which should be moved up and down(like jump action) ...
0
votes
1answer
178 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
74 views

[Unity]Making sure playermodel only moves 1 unit

I am doing a school assignment based off of the Unity3D tutorial 2D RogueLike (all code available here) In my version though, the movement is not turnbased and I am having some trouble figuring it ...
2
votes
0answers
58 views

360 Degree Snake [closed]

I'm using Unity / C# to make a variation on a 360-degree snake game, but I'm having trouble just getting the movement of the tail right (I have a similar problem as in this question: How To Approach ...
1
vote
2answers
266 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, ...
2
votes
1answer
174 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 ...
0
votes
0answers
31 views

xna multiplayer movement

So I have a tcp sockets network setup with the ability for clients to connect to the server. I'm currently trying to do movement. And iv discovers that tcp is terrible for sending out the x and y ...
1
vote
2answers
131 views

Game networking, limiting amount of movement packets

I have been developing a server/client model for a game project I am working on. Everything works great, client side prediction works, server reconciliation works. Basically, the character can move ...
-1
votes
1answer
48 views

C++ SFML and Box2D: Move world or move player?

I'm currently making a top-down shooter game and it's my first time developing with SFML. I came across and issue and I want to know if there is a better way to solve it. I need to get the "camera" ...
-1
votes
0answers
21 views

platformer side movement collision problem [duplicate]

I making a game in javascript and I'm stuck, the player will stop moving if he hits the left side and if I move left a little bit and try to move right again I cannot. My question is: Whats wrong ...
2
votes
2answers
85 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
88 views

How to optimize my movement & collision code?

I am trying to implement movement & collision the simplest way possible. public void MovePlayer() { KeyboardState keyState = Keyboard.GetState(); Vector2 checkVec = ...
3
votes
3answers
2k views

Car movement in arcade racing game

I am finishing a very basic 2D racing game with top-down perspective. I can't get the appropriate formulas to make the movement of the cars fun and addictive... Do you have tips on how to achieve that ...
-1
votes
1answer
52 views

Why is this unity camera moving in weird directions?

I have the following script public class CameraScript : MonoBehaviour { public bool AllowZoom; public float zoom; public float Speed; Transform board; void Start(){ ...
0
votes
0answers
42 views

how to move an object to the mouse in Java

I have just recently started using Java, literally 2 days ago, and I have run into an issue. While I have been easily able to figure out most of the syntax and methods, because I have used multiple ...
0
votes
1answer
72 views

LibGDX obstacle collision

How can I handle collisions with obstacles in LibGDX? Is there any automatic way to stop the character's movement when it collides with a wall or I have to constantly poll for all the possible ...
1
vote
1answer
64 views

Keyboard input vs character movement encapsulation

In our game created with c++ and sdl we are having difficulty delegating how the main character should be controlled. We have a keyboard class and a sprite class for the main character, but are ...
1
vote
0answers
35 views

Javascript 2D top down handling player direction graphics

In my top down game I can move the character around and the character will even face the direction he is moving however there is some weird behavior I'm having when you hold down one direction and ...
0
votes
2answers
69 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 ...
1
vote
1answer
70 views

Coordinate System - Movement from A to B

I've got the following code snipped : var distanceFromDestinationSquared = ( Math.pow(this.orders.to.x - this.x, 2) + Math.pow(this.orders.to.y - this.y, 2)); ...
-1
votes
1answer
57 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
1answer
49 views

Controlling the movement of player by sprite using Mouse

I want to move the player by pressing down on the mouse and moving around by dragging. The player won't move to the position of the mouse. Instead it should be relative to the players current ...
0
votes
2answers
109 views

Unity Vector3.MoveTowards over the span of a minute with Time.deltaTime

I'm trying to figure out how to use Time.deltaTime to let me move an object over the course of a minute. From my understanding, Vector3.MoveTowards(transform.localPosition, finish, Time.deltaTime) ...
0
votes
0answers
43 views

Choppy movement

So, I'm trying to write some code in C# XNA to make an enemy move in a random direction for 0.5 seconds, then switch direction and once again move for 0.5 seconds. However the problem I've discovered ...
1
vote
2answers
66 views

How to get this type of movement in LibGDX?

I want objects in my game to move randomly but always from right side of the screen to the left side. The movement must be as smooth and natural as possible, like they are following a path. Can i ...
0
votes
1answer
66 views

svg spaceship game movement 2d

I've been searching for a way to make an svg box move to all directions using js. I have seen many tutorials on how to do it grid like, but I want it so have a square that can turn, move forward, ...
2
votes
1answer
80 views

Square Based or free movement [closed]

What are the pros and cons of using a 'square' or 'space' based character movement mechanic vs using a free movement mechanic? Square/Space - Movement on a ridged grid using 'squares', 'hexagons' ...
4
votes
3answers
211 views

Sphere to plane collision never rearching resting contact

I have been trying to have a sphere to plane eventually lead to the sphere coming to a resting contact, but my sphere will end up always bouncing forever. It will bounce correctly for the first few ...
1
vote
1answer
182 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
0answers
23 views

Examples of movement control by drawing paths/trajectories

Can anyone think of game examples that use the type of movement controls that Strikefleet Omega employs for mobile devices? There you basically use a swipe motion to drag a path for a unit to follow. ...
0
votes
2answers
148 views

very simple math destination and speed calculation

My player goes to (destinationX, destinationY) His position is: (x,y) and the player has an update event function update() { this.x = this.x + dx; this.y = this.y + dy; } what is the formula ...
3
votes
2answers
147 views

How can I make an object move in four directions relative to its rotation?

I want to make a game object move in directions relative to the direction is facing. That is, If the user presses the "W" key the object goes "forward" if its presses "D" the object goes to its left. ...
0
votes
2answers
83 views

Angluar movement

I'm making a little game where you are a spaceship and you fly around in 2d using the A and D key to rotate and the W key to accelerate. Now my problem is if i turn my ship it doesn't go into the ...
4
votes
3answers
4k 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 ...
1
vote
2answers
121 views

Why does my ship look like it's going backwards instead of fowards? [closed]

I'm making an Asteroids-clone based on this tutorial. I'm stuck on the 5th part of the tutorial. For some reason my ship is going backwards instead of forward or it looks like its going forward, but ...
0
votes
5answers
298 views

Coroutine to move to position passing the movement speed?

I'm using this coroutine to move my player to a new position. The problem is that it takes the duration as an argument instead of the speed of the object. Which makes it hard for me to make sure the ...
0
votes
0answers
50 views

Simple Ping Pong Game in C# [duplicate]

Hi, I'm making this game called "Ping Pong". I made an algo for the movement of the ball. Now, I want that whenever the ball touches or collides with the player (pictured above), it should bounce ...
0
votes
1answer
91 views

How to use multiplication operation in game render delta time?

We are using delta time like this: private static final float SPEED = 200f; // Moving pixels in one second @Override public void render(float delta) { myObject.vx += SPEED * delta; ...
0
votes
0answers
10 views

My translations are not working correctly in 3D space [duplicate]

Here is part of my code. The main thing I want to do is make the world rotate properly around my camera in 3D space (which it does), and I want to have the world translate around my camera correctly ...
1
vote
1answer
188 views

Unity3d - move 3d object in an AR scene

I have an AR scene that has one AR camera, an image target and a 3D object as below. I want to move the AR object to the position of the mouse click. I have tried taking the Input.mouseposition ...
0
votes
0answers
79 views

Unity Rigidbody click to move issue

I'm wanting to have a script that when I click in my scene, my player will rotate and have a force added to it and will travel until it has reached the clicked point in my scene. Right now I have it ...
0
votes
0answers
78 views

Smooth player movement in a tile map based engine

The character is moving too much fast, it teleports! Note that a tile is 80x80. Each cell has 4 bools to say if you can go up, down, right, left. Am I doing something wrong with Lerp? This is the ...
0
votes
0answers
30 views

Object doesn't move smooth over edges?

In the last couple of days I'm experimenting a lot with Unity 3D to get a feeling about the environment and the behavior of game development. I come from a programming perspective and try to develop ...
-1
votes
1answer
44 views

How to make object to stop moving

I'am making the game in Java, and I'am make the object, and she move, but i don't know how to make it stop. public class Player extends JPanel implements ActionListener, KeyListener{ // Varibles ...