Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

2
votes
1answer
77 views

How to implement swooping movement?

I am trying to code some swooping behavior for a flying enemy in my 2D platformer. The ideal behavior has the enemy starting from an arbitrary height above the ground, then accelerating downward and ...
1
vote
0answers
25 views

How to implement back and forth steering behavior?

I am trying to implement some behavior for a flying enemy in my 2D platformer. The desired behavior is for the enemy to fly back and forth across the player, harrowing him. If the player was ...
0
votes
2answers
91 views

How to mitigate speed effects on moving platforms?

I am implementing horizontal moving platforms in my 2D platformer. The way it's implemented currently, when my player lands on a moving platform, he is reparented to it so that his position updates ...
0
votes
0answers
25 views

Unity movement forward doesn't work as expected

I'm moving my object on a road builded with a primitive plaines, there is also some downhill parth, (like a car that run on a road) here is my script : ...
0
votes
1answer
39 views

How to change object curve path in playmode in Unity?

I would like to make some sort of this simulation below, where user can interact with the white rod and drag it into the magnetic fields, which in resulting the blue line that represent the magnetic ...
0
votes
0answers
16 views

How do I make a 2d flying character (an airplane) that flies in the direction of the nose and can be tilted to change directions?

So I'm completly new to game development on Unity, yet Id like to make a simple game. The main focus is flying, but I'm having a hard time figuring out, how to make the plane move in the direction its ...
0
votes
0answers
24 views

Alternative to a collider for representing a horizontal plane

I'm studying with Unity, and now I'm starting to learn stuff without using the pre-implemented components like colliders etc.. Right now I have my player walking on a plane using the following code: ...
0
votes
0answers
10 views

Optimizing character controller Move() for Mobile Games

Is there any way for optimizing character controller Move() for first person shooter mobile game? Because I heard , using that is expensive for performance. For ...
0
votes
0answers
8 views

Implementing movement patterns using mouse mocap

I am working on a 2D action platformer and want to design some complex movement patterns for a boss that flies around the screen. Rather than describe the movement patterns using parametric curves, ...
2
votes
1answer
66 views

How to constrain a ball and chain like object?

Following up on this question, I have created a snakelike enemy which consists of a head followed by segments. I get the segments to follow the head by constraining each segment's position relative ...
1
vote
1answer
99 views

My Java Game's movement looks awfull. Maybe Problem with Thread.sleep

I have a big problem with my Java games. In every game I make the movement of the player and objects just looks awfull. The framerate is 60 fps without any problems. But the movement looks extremly ...
0
votes
0answers
29 views

Shape-oriented group formation for units

I'm trying to implement a shape oriented group formation, ex: if we have 10 units, the option to form them into a square, a circle, a V formation, etc. I've seen clustering algorithms like k-means, ...
0
votes
0answers
20 views

Character Controller approaches for a fast quadruped

I'm working with Urho3D at the moment, which uses Bullet for physics, and I'm trying to create a character controller / physics system for my quadruped character. I'm aiming to get this character able ...
0
votes
2answers
21 views

Unity3d Move player with UI buttons

I'm trying to move the player based on UI buttons. I found this topic which covers the button listener: https://forum.unity.com/threads/touch-and-hold-a-button-on-new-ui.266065/#post-1944748 Now I ...
1
vote
1answer
55 views

How to synchronize moving hazards?

I am trying to implement a saw blade hazard in my platformer. The saw blade simply moves from point A to point B, and back, at constant velocity. (Let's assume all saw blades move at the same velocity....
0
votes
1answer
32 views

How do I move many “static relative to each other” objects around?

I'm currently building an Elevator Bank simulator in Unity3d and I'm stuck on how to reduce the amount of objects it's going to generate when it's done. The simulator will consist of one player (for ...
1
vote
1answer
41 views

How can I add left and right movement to my sprite without reducing forward movement?

I've made a character sprite that moves left and right when I press A and D, and moves forward automatically. However, whenever the character moves left or right, the forward movement is greatly ...
0
votes
0answers
38 views

Top-down perspective movement/collision

I have been trying to get my top-down collision code/movement system to work the way I want it to: I would like the character to be able to move forward, backwards, left and right, all while being ...
1
vote
1answer
138 views

Unity2D: Vector3.Lerp - smooth movement

I have a script that randomly chooses a position to move a game object every 5 seconds, however instead of moving my object smoothly, my script make my object jumps, which is not desirable! How would ...
2
votes
0answers
50 views

Camera that follows a target with sub-pixel movement

As the title says, I have a character that moves at sub pixel movement (no, I can't change this, because this sub pixel movement happens when I normalize the vector during diagonal movements, ...
1
vote
1answer
55 views

prevent animation from moving the character

As stated in the question I've this problem: I'm using Unity and when playing an animation my character moves from point A to point B without my consent. Here's the code: ...
0
votes
3answers
163 views

How do you program diagonal movement?

I'm wondering how a diagonal element that moves along a diagonal path that hops at each tick of the computer clock is able to travel a greater distance along the screen than an element moving at each ...
0
votes
0answers
39 views

How to sync movement physics over network?

I am having trouble visualizing the best method for syncing the player's movement over my network. My game is pretty much a race of rolling balls down a hill. It relies on the ...
0
votes
0answers
11 views

Construct2-How to set Main character run with circle direction?

I am a beginner in Construct2. So I need your help. When I set key on pressed (ex: right button was press - MC will move to right), but I don't want MC to move with a straight line. How to set the ...
1
vote
0answers
42 views

How to get smooth movement in a low resolution game? [duplicate]

I am using monogame to make a simple platformer with a fairly low resolution. Right now I am struggling to get smooth movement like in the mario games. In those games despite having the low ...
0
votes
2answers
35 views

Bug with OnColliderEnter/Exit when colliding with multiple objects at almost the same time

Unity Version: 2017.4.1f1 I currently have a game with a jumping mechanic. I only want the jump to work where you're on ground, so I have planes on top of everything, which, if you are on a plane, ...
1
vote
1answer
86 views

Game object appears to accelerate too slowly

thank you for checking out my issue! I am trying to develop a game in java, but I have run into a problem. I would like to keep the physics as realistic as possible, so I am using a fixed time-step ...
0
votes
2answers
30 views

Unity: Moving on global X and Z axes with respect to local Y rotation

I'm having a bit of trouble with the math on this. I'm trying to move an object forward based on it's local yaw. Ordinarily, I'd just move it forward on the Z axis locally: ...
1
vote
2answers
58 views

Why does my gameobject fly of into the air when the screen is touched?

I am encountering a peculiar problem when updating a piece of code that translates my gameobject left and right based on mobile touch input. To provide context, the platform upon which the gameobject,...
0
votes
1answer
69 views

FixedUpdate is Being Called Less and Less Over Time…Why?

My game is still in the very early stages, but basically I have an enemy that follows the player if it can see them and will continue to follow the player for a few seconds after the player leaves its ...
0
votes
0answers
77 views

How can I improve my touch slide mechanic to be more smooth and fluid?

I have the following C# code, but it leaves me with two problems: ...
0
votes
1answer
42 views

2D top down 360 degrees rotational movement - stop instant rotation

I currently have a working, decently complicated, way of moving my player around. Using A & D you rotate the player and using W and D you increase forward or backward moving speed. This works ...
0
votes
1answer
89 views

How can you allow a sphere to rotate 360 degrees inside a hollow cylinder in Unity?

I have a hollow cylinder, within which is a sphere. The forward vector is predefined, so the user can not change their forward speed. What they do have control of, however, is the rotation of the ...
1
vote
2answers
121 views

How can I rotate the cube left and right?

I want to rotate a cube left and right with that: ...
0
votes
1answer
59 views

Switching lanes in an endless runner

Some of you probably know the (once) popular mobile games Temple Run, Minion Rush or Subway Surfers. They all have the similarity of a lane system, which allows you to switch your position with a ...
0
votes
1answer
51 views

LibGdx Positioning the camera

I've been following some tutorials about libGdx and I've tried to create a 2d platformer but I've got stuck at how would be the right way to make the camera not go out of the screen when the player ...
0
votes
0answers
151 views

Emulating the movement of a differential drive robot

I want to emulate the movements of an Khepera-like roboter (so a differntial drive robot) using Unity. It has two engines, the engine speed is set over the network by RPC magic which ends up calling ...
3
votes
3answers
69 views

TypeScript Space Shooter movement

I'm trying to create a simple space shooter game using typescript and i've got kind of stuck at checking the movement.The thing is that if i only press one key it works fine but if i press 2 keys at ...
0
votes
1answer
157 views

Why does my AI Enemy slide towards its target when it is supposed to be idle?

So using Unity standard assets to get a stage rolling, Ive built a simple terrain and used FPSController as the player and AI ThirdPersonController (Ethan) as the enamy. Ive built the navmesh and ...
0
votes
2answers
59 views

How do I determine the slope of a curve?

I am making a 2D game where the character rides on the curve of a graph. I need to find out whether the player is going uphill or downhill and calculate speed accordingly. The problem is that I am ...
0
votes
0answers
91 views

Tried to make Quake/Half-Life camera act like it does in Mario64/Sonic Adventure but run into a weird bug

So I am trying to implement such a system of controls and camera where moving left would mean moving to the left of the camera's current view direction, etc. I think this is also called movement in ...
0
votes
1answer
41 views

LibGdx Box2D Touch Input Movement

I've created 2 buttons for movement in my game but when those button are being pressed, the character gets basically thrown away and by pressing only once the movement it's continuous and i don't ...
0
votes
0answers
44 views

How to make a train of four following objects in GML

Pretty much what the title says; I'm making a bit of a side-scroller dungeon crawl sort of game in Game Maker Studio 2, with a party of four adventurers running in a line down an endless hallway of ...
-1
votes
1answer
62 views

detecting if a chess move is valid for a given pawn , preferably using Linear algebra

I'm making a chess game, where you simply drag and drop a pawn on the board with respect to each player's turn. when it comes to dropping a pawn we need to validate weather the move is allowed. for ...
0
votes
1answer
186 views

How to move NavMesh Agent by animation?

What's the best way to create a simple moving navmesh agent with animation? (e.g. a human enemy running to player) I have run animation that moves the enemy ...
2
votes
1answer
140 views

One pixel lines flash on tile map when camera moves

I'm writing a simple game using Phaser 3.5.1. I made a 20X20 over world tile map for my hero to walk around on with the camera following the hero. I was able to implement tile based movement using ...
1
vote
1answer
38 views

how to move a char value “down” in a two dimensional array?

I managed to move it up, left and right but when i try to move it down it goes to the last Y position in the array instead of the Y position below it. the code i wrote to move it up, left and to the ...
0
votes
0answers
27 views

How to move a ball in Unity

I'm making a remastered of a game from 2004 in Unity ("Ballance" Atari), and I was recently working on the ball movement. Here is my current solution: ...
0
votes
1answer
97 views

Why does the object not move correctly when I press the right mouse button?

2D Game in UNITY C# I have an object BULLET . After pressing the left mouse on my object (BULLET), the script allows me to rotate object according to the mouse's direction, in four directions : -...
0
votes
1answer
32 views

Zooming versus panning in a 3D FPS fly camera

Imagine you have a strategy game, and it's rendered in openGL, in 3D. You have an overview of the map and the camera is currently looking at the direction of the ground at some angle (but is not ...