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
votes
1answer
80 views
Pokémon character turning / facing: How is it achieved? Movement is already done though
You know that when the player playing Pokémon games want to change the facing of the main character, one would simply tap on the directional pad (D-pad) on the Game Boy (Color/Advanced/Advanced SP) or ...
0
votes
1answer
37 views
XNA - 2D Rotation of an object to a selected direction
I'm trying to figure out the best way of rotating an object towards the directional input of the user. I'm attempting to mimic making turns on ice skates.
For instance, if the player is moving right ...
1
vote
1answer
80 views
How to implement deceleration and stopping over a certain distance [duplicate]
So I have a a character, say a spaceship. It needs to move distance R, and in direction T (Theta). So say if The object is at (0,0), and it needs to get to (4,3), it has R = 5 and T = about 36 ...
0
votes
2answers
71 views
Displaying possible movement tiles
What's the fastest way to highlight all possible movement tiles for a player on a square grid? Players can only move up, down, left, right. Tiles can cost more than one movement, multiple levels are ...
5
votes
2answers
185 views
How to combine tap and long hold gesture recognizers?
I have a game in which the player moves around a sprite by tapping on various sections of the screen (left, right, up, down). So far, each tap moves the sprite one tile (I use a tile system for ...
-1
votes
0answers
60 views
Intelligent collision detection with movement [closed]
i am new to this stack-exchange page and i need an hint how to implement correct "implementation of movement-/collision behaviour".
I never developed games before...and never with Javascript/HTML5. I ...
2
votes
1answer
167 views
How do I implement movement in a WPF Adventure game?
I'm working on making a short WPF adventure game. The only major hurdle I have right now is how to animate objects on the screen correctly. I've experimented with DoubleAnimation and ...
-1
votes
0answers
51 views
Mouse controlled camera bisbehaving. [closed]
I wish to implement a free roam camera that I can control with a mouse in OpenGL. Unfortunately, moving the mouse seems to rotate the camera incorrectly (along weird axes) when my camera is facing a ...
3
votes
0answers
62 views
Simple movement restrictions to semi-realistically model human movement in top down 2D game?
I am writing a sports simulation game in which the simulated players will interact physically with each other (i.e. tackle, push, bump...) as well as do individual actions such as changing direction ...
0
votes
2answers
136 views
Asteroids Movement
I have been making an asteroids clone, in C#. However, the ship's movement is... not quite right.
My plan is this: there is a speed, and two directions, namely the direction the ship is facing ...
11
votes
1answer
316 views
Pathfinding on a uneven planetary surface
My question is what would be the best approach to pathfinding on an uneven planetary surface?
Background Information
I have created a planet from displacement mapping 6 sphere projected planes. ...
0
votes
1answer
110 views
Pong horizontal movement algorithm
I was just wondering about the horizontal movement of a pong ball? What is the general algorithm used with this? The ball in my pong game just move vertically and I don't know about the algorithms ...
3
votes
2answers
269 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 ...
-1
votes
1answer
91 views
A paddle in my pong game isn't moving [closed]
I'm working on a little pong game in LWJGL but only one paddle moves. I've tried to switch around some code in the hopes it would work again but it still doesn't.
Here is my paddle class:
public ...
2
votes
1answer
176 views
2D Top down acceleration vector
I have been wanting to solve the issue of movement once and for all... with all that I have learnt and read through, should be a piece of cake one would have thought... , seems it isn't. Having ...
0
votes
1answer
118 views
Interpolating a player between two 2D points?
I would like a player to be able to move in a direction smoothly, whilst sticking to a fixed grid. Much like in Pokemon, how the player can move, but when the key is pressed and released quickly, they ...
2
votes
2answers
109 views
Smoother controls
I am trying to move my background left if the user hits the right key. and right if the user hits the left key, so that it will look like the player is moving.
The problem is that whenever I hold the ...
3
votes
1answer
127 views
Theory behind worm like movement?
I don't want code or anything that will make this too easy for me, but I'm just starting the development of a little game and I want to add worms to it, I want the worms to be Terraria like. My ...
2
votes
2answers
210 views
Implementing tile-based movement on 2D platformer
I'm trying to make a cinematic platformer, in the veins of the first two Oddworld games, Flashback, Prince of Persia, Blackthorne and so on. This article describes very well how this kind of movement ...
-1
votes
2answers
142 views
Moving a sprite towards an x and y coordinate
Given a sprite with an x and y coordinate, how would I move it toward another sprite with an x and y coordinate?
I've already made it face towards the other sprite, and I've made it move towards the ...
1
vote
1answer
85 views
How can i use triangle picking to determine the exact location of a triangle in world space coordinates?
Im trying to implement point and click movement in my game, but at the moment im stumped about how i can select parts of a mesh for the player to walk to.
So what ive done is ive got a navigational ...
2
votes
1answer
82 views
Translating a terrains position using input in Unity 3D C#
I am trying to make a terrain in Unity move, but im having trouble. Here's the code i have.
using UnityEngine;
using System.Collections;
public class NewScript : MonoBehaviour {
Camera camera;
...
0
votes
1answer
110 views
Character movement relative to cursor position
I want my top-down shooter character to move towards the mouse when pressing the up arrow and strafe relative at right angles to it when pressing the left and right arrow keys.
I can't figure out how ...
0
votes
2answers
74 views
Grouped enemy movement out of sync after changing directions [closed]
Im working on a Galaxian/Space Invaders Inspired game. Im working on the enemy movement and am running into an issue where the enemies get out of sync when changing direction.
My setup is that I ...
0
votes
2answers
95 views
Increasing speed of circle over time as linear with Box2d
Assume that there is a circle and it can be moved by using keyboard arrows.Is required that increasing speed over time like increasing car speed. For example; max speed is 25 and time to reach max ...
0
votes
1answer
104 views
joystick movement for Geometry Wars clone
I am kinda new in game programming, but I've got a semestral work to make a game, so I decided to do a clone of Geometry Wars. Despite that the game is really simple (in principle), I have ran into a ...
-1
votes
1answer
133 views
3D Character Development [closed]
First and for most. I do have a fair amount of experience programming. I have experience with many programming languages and I have taken a few courses in computer science. I have development some ...
1
vote
1answer
90 views
Movement constrained to the faces of a cube
The basic setup I'm working with is a cube rendered in-Engine (Panda3d, although I only am looking for a generalized solution) as well as a 2d square on one face of the cube. The eventual outcome I'm ...
0
votes
2answers
115 views
Using timer to reverse enemy movement in Flash game made with Flixel
I am creating a 2d flash game using Flixel 2.5 in Flash Builder. I am trying to reverse enemy movement on an interval so that they will move back and forth over a set space. I felt that a timer would ...
5
votes
2answers
124 views
How can I normalize a vector if I am handling movment of each axis seperatley?
I am writing a 2D tile based game engine in XNA, and I've recently fine-tuned my collision detection using the answers provided here and more specifically here.
The tile based collision detection now ...
1
vote
2answers
79 views
Scene - human speed correlation
I am writing a really simple game with a scene (horizontal plane) and a human moving to the right of the plane (watching the simulation from the +z axis).
The scene contains some trees, which I am ...
4
votes
1answer
204 views
Character Movement in 3D games
I'm either not searching correctly or there is really not a lot of material on Character Movement in 3D games.
I'm mostly interested in how people usually implement character movement in games like ...
8
votes
2answers
233 views
Following a path in a smooth fashion
I am currently making a 2d tower defense game with a static, predetermined lane that the enemies follow (i.e. towers cannot block the path and path finding is not the problem I am trying to solve).
I ...
7
votes
2answers
183 views
Movement on a curved planet surface
I'm looking for a solution for moving a variety of objects over the uneven surface of my planet. The idea is that I will have a number of objects that follow the planetary landscape moving about in ...
1
vote
1answer
187 views
In 2d game logic, should I use pixels or world coordinates?
Currently in my game I handle the logic (collisions, movement) using pixels but I find it very limiting espiecially when thinking about variable speed.
For example Box2D requires you to use ...
4
votes
3answers
311 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
1answer
116 views
C++ Using clock() with IsKeyDown
I am trying to replicate the game Asteroids as a class project. I am having trouble measuring the time elapsed while the "W" key is pressed.
This code is supposed to increase the force applied to the ...
0
votes
2answers
203 views
How can I move an object over a drawn tile map in HTML 5 without constant buffering?
I've been messing around with HTML5 for quite some time now but this is something that I guess I haven't figured out how to handle well yet. I'm sure there's an extremely easy solution and I just ...
0
votes
1answer
75 views
Increase restitution (bounciness) of an object in a JavaScript formula
I'm going slightly around the houses on this one. I originally started a thread over on Stack Overflow about it but then it seemed to diverge into mathematics, with no joy from the SO community over ...
1
vote
2answers
135 views
Controlling player and camera movement in a 3rd person game with keyboard and mouse
In many action games with a third person view, joystick controls typically map the left joystick for player movement and the right joystick for camera movement (or more precisely camera's direction ...
0
votes
1answer
94 views
DPad style movement for AI without using A*
What is the easiest way to implement DPad style movement (No diagonal) for AI without using and A* algorithm? I thought about having the enemy catch up to the player in the Y axis first then the X ...
2
votes
2answers
153 views
Making a player move to my mouse when clicked?
How can I get my player to move to the mouse when it is clicked (like in Warcraft)?
So far I have tried:
if (Mouse.isButtonDown(0)) {
if (X < Mouse.getX()) {
X += Speed;
}
if ...
1
vote
2answers
152 views
Moving an object around the the circle to the specific location in circumference
Well I have run out of ideas how to approach this particular problem.See the picture below:
So the idea is that the object (dot in black) has to get to a point mark X (red X mark).However the ...
3
votes
1answer
133 views
Figuring out which direction my object is facing on a 2D plane?
My friend and I were messing around in XNA 4.0 making a 2D racing game. Kind of like this one: Ivan “Ironman” Stewart’s Super Off Road. The problem we are having is knowing which direction the car is ...
3
votes
1answer
108 views
AI surrounding algorithm suggestions
I am building up a simulation where predator groups (tribes) try to hunt other agents in the simulation (whom also are clustered in groups).
Now I got to a point where members of a group follow their ...
1
vote
0answers
158 views
3 Button Multi-touch for Android
OK, my multi-touch system was somewhat convoluted, but was working perfectly OK until I tried to run my game on my Nexus 10 which is running Jellybean.
Crashing all over the place! So I removed my ...
2
votes
3answers
469 views
How do I calculate how an object will move from one point to another?
Here's the problem: A player starts the game in the 0 coordinate (x=0,y=0).
When the user clicks on the screen, it returns the coordinates of the destination.
Now the player has to move from its ...
0
votes
2answers
282 views
How to make a smooth movement in XNA?
I'm trying to make a nice controls for my game, but I can't achieve enough SMOOTHNESS.
if (kbState.GetPressedKeys().Length != 0 && _direction != Vector2.Zero)
{
...
1
vote
2answers
253 views
Non-physics character movement in a Box2d Environment
I am in the process of creating a physics platformer. However, I want the player movement to feel very old-school(as in: non-physics like), which means that the character:
Should always move equally ...
1
vote
2answers
126 views
How to get the height at a position in a triangle
I have a heightmap, and I store the heights in a giant array. However, when I move, it's quite choppy on the Y-axis, so I need a way to get the height at a certain point in a triangle.
I currently ...