Questions tagged [movement]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

How can I efficiently load and unload regions of a world as the player moves?

I am creating a game with infinite terrain. Sections of the terrain are broken up into regions of fixed size for handling (similar to chunks in Minecraft). I would like to load and unload them as ...
user16217248's user avatar
0 votes
0 answers
38 views

How do I make an isometric rpg movement system [closed]

I am making an isometric rpg(well not really making, I just have an idea) I’d like to start learning to code and first I would like to learn how to make a movement system like in the old infinity ...
GrizzlyTrex's user avatar
1 vote
1 answer
61 views

Flying AI shakes when chasing and avoiding obstacles simultaneously

I've got a problem with my flying AI in Unity. When it just chases a target it's ok, but my system contains avoiding obstacles so when it starts to do it, it shakes weirdly. As I understood using <...
kotan4ik's user avatar
0 votes
1 answer
49 views

Sprite chasing a target using move_towards_ip does not move

I'm trying to get a turtle sprite to chase a falling algae sprite utilising Pygame's inbuilt functionality. I have spent many hours reviewing questions and answers and suspect I'm missing some ...
Lone's user avatar
  • 3
0 votes
0 answers
47 views

Determining meters per second in scaled terrain

I have a terrain with a width of 199 and height of 99 and I'm scaling this train by 500. What would be 1 meter in the new terrain, would it be 500? I'm trying to move my character in meters per second ...
blov's user avatar
  • 1
2 votes
1 answer
84 views

How to make redirected player movement respond to same key?

I have a 2d game (Godot 4) with different rooms with portals to go between them, and some portals redirect the direction of the player while still holding the same key. I have that working so far, but ...
value1's user avatar
  • 23
0 votes
1 answer
89 views

How to code glider movement in 2D? (Godot 4)

So in Minecraft, you have the elytra. When you look up, the character moves up. When you look down, the character moves down. The speed you move forward depends on the angle you are moving. I want to ...
Shattered Reality's user avatar
1 vote
0 answers
39 views

Move UI element by a specific amount relative to current screen resolution

I want to achieve the following: At some point in the game, the UI Image (dashed rectangle) should shift towards the right edge of the screen (black outline rectangle) up until the part of the image, ...
Russel Ledge's user avatar
0 votes
1 answer
51 views

Why are the transform game objects moving away from the snail when they are swapping their direction?

I am making a game in which I created a character (main player) and another character(snail). Now the snail will move on the ground, when there is no ground detected it will change its direction. I ...
gamePlay's user avatar
1 vote
1 answer
43 views

KinematicBody2D stutters/moves back and forth

I'm working in Godot 3.5, and trying to set up a navigation polygon for my kinematic body to mode around inside, but when I try to send it to some point, the body 'stutters'/moves back and forth in ...
Progs's user avatar
  • 93
0 votes
1 answer
99 views

How to make enemy turn to face the player while attacking?

I need help making this code work. It is made for the enemy AI to move and patrol, chase the player and attack the player. The problem is when it starts to attack the player, then the player can move ...
Darius Van Vuuren's user avatar
0 votes
1 answer
87 views

PyGame moves object in one direction but not in the opposite one

I'm having trouble with a PyGame animation I'm writting. I have a Ball class that defines an object that moves on the screen and bounces on the edges. I initialize ...
WinterPanda's user avatar
0 votes
1 answer
75 views

How to use WASD to move camera between a collection of position marker objects?

How can I move one camera between two positions along the cardinal directions? Using W/A/S/D keys, I want to move the camera from one empty object to another on the xy plane. Those empty objects ...
nausikaa's user avatar
1 vote
1 answer
47 views

Move object continuously along y with optional movement along x

I am looking for a sensible way to continuously move an object downwards with constant speed while moving left or right by some amount x when the user presses the left or right arrow keys. Basically, ...
ChrisC's user avatar
  • 116
4 votes
1 answer
224 views

Avoiding nausea when spinning

I'm working on a top down space sim where the ship fills most of the screen and has a fixed heading, i.e. the front of the ship is always at the top. However, there are stars in the background, so ...
Max's user avatar
  • 306
0 votes
0 answers
62 views

Trying to get a Character to face the direction based keys pressed left or right instantly

I finished up my movement script which is finally working fantastically. The only issue I am having is getting the character to face the direction when I press either left or right on the keyboard. ...
Fuljin's user avatar
  • 1
0 votes
0 answers
76 views

applying gravity breaks entirely this AI movement code

I'm calling this function every 0.078 seconds so about at 13 fps using a timer connected to _ready() this way my game can easily run over 400 enemy units with ...
Cei's user avatar
  • 863
0 votes
1 answer
95 views

How to prevent accidental double-tap dodge when changing directions?

...
Cei's user avatar
  • 863
0 votes
0 answers
31 views

How do i put an entities x,y and z coordinates to a variable(?) in Blitz3D?

I'm making a TEST 3d platformer where the camera follows the player from above. Normally I would make the camera move at the same time when the player moved, for example: ...
Probes's user avatar
  • 1
0 votes
1 answer
51 views

How to carry other players and NPCs and Objects?

In my game you don't have inventory slots, you can hold two things if your player has 2 arms and so on, you can hold more things if you equip a bags on your belt or backpacks... and you can carry even ...
Cei's user avatar
  • 863
0 votes
1 answer
77 views

When to use InverseTransformDirection in Unity

I want to know when to use InverseTransformDirection. Unity documentation says : "Transforms a direction from world space to local space". Honestly, it is not clear for me. I came across ...
Achie1's user avatar
  • 169
1 vote
1 answer
115 views

Rigid bodies sliding off slopes

Kinematic bodies have a simple class that makes the player not slide on slopes, but for rigid bodies? I tried using rays and areas, either to lock the player on an axis or to just straight up disable ...
Cei's user avatar
  • 863
0 votes
1 answer
111 views

How to adjust parabolic trajectory to hit the same point with the same launch angle, but faster speed?

I'm launching a ballistic projectile similar to this sample. The projectile moves from the launch point to the target point, but it's too slow. When I try to increase the speed without changing the ...
QuestionAndroid's user avatar
0 votes
0 answers
109 views

How to implement the movement system from SharkBite Bay Adventure?

I'm using Godot Engine 4. The game SharkBite Bay Adventure is a top-down 2D car game, which can be properly played in Bluemaxima's Flashpoint (this app has 2 versions: you can download the lightweight ...
Hydroper's user avatar
  • 101
0 votes
0 answers
25 views

How to make Cardial Directions relative to the camera

Lets suppose tha my movement method my W goes towards north(just figuretvly) and my E goes towards east, If I rotate my camera to east I want my W to insted goes to north, goes towards east and my E ...
Jamelaumn's user avatar
0 votes
1 answer
37 views

Orient a player mid-air to their predicted landing orientation in Unity?

Ever played Skate 3? When dropping into a ramp, or if you're midair, your player's up direction aligns to the normal of the surface you're about to land on, while respecting the player's forward ...
LeytonMate's user avatar
0 votes
1 answer
102 views

How do I make my player rotate in the current direction of my camera in Unity using C#?

I have a player with third and first person camera, I want to make my player move in the direction that my camera is looking at when I hold the right mouse in third person and move(Like my player is ...
Jamelaumn's user avatar
0 votes
0 answers
90 views

Creating enemies that slide along a patrol path

I have created a 2D game in Godot 3.5.2. I have enemy scene which has node as Area2D and child as AnimatedSprite and Collision. I want to create enemy movement like in Pixel Adventure: But I am not ...
Shantanu's user avatar
0 votes
1 answer
81 views

Mouse-Click Movement Using Unity NavMeshAgent Causes Stuttering Upon Reaching Destination

Alrighty, so I've seen a lot of stuttering-related questions about NavMeshAgents but my problem is a little specific to my use case since it has nothing to do with <...
NicCantCode's user avatar
0 votes
0 answers
54 views

Children of a rigidbody are able to move through the floor

I have a problem with rigidbody collisions atm. I have a parent object that has a rigidbody and I am spawning objects that become that parent object's child (the children are all spheres). These ...
Christian Blevens's user avatar
0 votes
0 answers
37 views

Steering Behaviors in Discrete Space

I'm interested in Steering Behaviors by Craig W. Reynolds in a project but my agents are in a discrete grid (think Minecraft). Essentially all agents internally have continuous speed, accelerations ...
Consuelo Ugarte's user avatar
0 votes
1 answer
748 views

Unreal 5 Actor Can't Move

I have an Unreal 5 actor with some basic blueprints involving a "Simple Move to Location". I've created a NavMeshBoundsVolume, and both the actor and destination point are inside it. The ...
Nightmare Games's user avatar
1 vote
0 answers
29 views

How to efficiently move a unit to a given 2D target position using tank controls?

I am looking for a simple algorithm that can move a unit as fast as possible to a given target position. The unit can only move using the "tank controls": it can turn in both directions and ...
tigrou's user avatar
  • 3,204
1 vote
0 answers
26 views

Relaitve Velocity Obstacles

I am reading Reciprocal Velocity Obstacles for Real-Time, Multi-Agent navigation and I have trouble to understand the main part of the paper: Let's take an example,...
dgan's user avatar
  • 131
1 vote
1 answer
51 views

Is it a good idea to solve movement of solid bodies with restrictions (e.g. connections) by shifting tangentially and projecting normally in phase sp?

I am trying to code my first 2d game with physics (in python), and so far my physics simulation works with solid bodies. I want to add connections, for example, so the player can rotate an arm and ...
Alexei Tsybyshev's user avatar
0 votes
1 answer
186 views

Mapping world objects and camera to a sonar/radar/minimap

I have a Doom-like FPS game in Unity, with 3D objects laid out across the map in essentially 2D coordinates. The game scene is 3D with the usual setup where the camera is showing what the player sees. ...
Ivan Voras's user avatar
0 votes
1 answer
80 views

Dealing with Camera "bump" during floating origin reset

I am asking this question because my Google searches have yielded little results. My problem is basically this: I've implemented a very simple smooth follow on my camera to trail the player (who is ...
ACour008's user avatar
0 votes
0 answers
99 views

How to launch a 2D character toward the mouse position?

I want to launch a 2D character using the mouse, but for the life of me I can't figure out how to get the character to move left or right during the launch. Its as if the code is ignoring the X axis ...
fabian freund's user avatar
0 votes
1 answer
156 views

How to implement movement with move speed in a multiplayer game?

I'm developing a MMO RPG using Rust and bevy both in the client and the server, which means that I'm using ECS on both sides. My game is tile based, so each tile is a point in my map in the server, ...
Gustavo Mendonça's user avatar
0 votes
0 answers
80 views

It's hard to move characters properly in Unity

I want to replicate the movement of a Team Fortress Scout in Unity, so the movement of the player must fall naturally, not slide, and not pass through objects. It must also be affected by ...
kunokouki's user avatar
0 votes
1 answer
231 views

How to change GameObject position using new Input System?

I was asking myself if you could change the position of a game object with the input of the player, with the new input system. That is, with something like this: ...
Hammynator's user avatar
0 votes
1 answer
165 views

Walk on any surface, how to make a defined space around character not pass through any collider

I'm working on an 3D insect/spider controller that will walk on any time of surface. Currently my character scan the environment around him by shooting a very big number of spherecasts and based on ...
Vasi's user avatar
  • 1
-1 votes
1 answer
23 views

Cube moving in a laggy way

The movement on its own works perfectly fine, the problem is just that when I move diagonal, then the cube (the Player) is kinda lagging around and you can see its pixels moving to the edges of it. ...
Hammynator's user avatar
0 votes
0 answers
352 views

Kinematic Rigidbody parented to a moving Rigidbody gets displaced

I have a kinematic Rigidbody parented to another non-kinematic moving Rigidbody. Render-wise, the child Rigidbody does not jitter, nor does it inherit any displacement changes from the parent ...
LifGwaethrakindo's user avatar
0 votes
0 answers
40 views

Switching to idle set of animations smoothly from walking animations in 2D tile-based RPG

Currently developing a 2D RPG that has Pokemon/early Final Fantasy-like movement mechanics, where the player/NPCs move in units of tiles. My game logic for handling keypresses is as follows: ...
Nameless King's user avatar
15 votes
4 answers
3k views

Solving obtuse interior corner collisions

I'm having some trouble solving collisions in obtuse interior corners. In the above image, the black circle is the initial position, the red is the projected movement (straight into the corner), the ...
IanLarson's user avatar
  • 771
0 votes
0 answers
83 views

Arrive Steering Behaviour velocity not decreasing properly

I'm trying to implement the Arrive Steering Behaviour with acceleration from AI For Games 3rd edition by Ian Millington (Algorithm on Page 63) ...
Stridd's user avatar
  • 1
0 votes
0 answers
112 views

6DoF camera control with a toggleable gimbal/horizon line lock and auto-upright button

I have a smooth 6DoF controller from following a tutorial (this is the tutorial) and tweaked it to be exactly what I want with a few exceptions. I found myself wanting the ability to lock the horizon ...
Mazz1224's user avatar
0 votes
0 answers
57 views

Different approaches to rigid-body movement

I'm a beginner at game development and I'm building my own physics game engine to grasp the concepts. I wonder if there are different approaches to moving and rotating a rigid body. For example, ...
mcas's user avatar
  • 1
0 votes
1 answer
378 views

How to allow a CharacterController to pass through walls?

I'm developing a game in which bot-controlled billboards pursue you. If the bot gets stuck behind a wall for a while, not able to catch the player, I want the bot to pass through the wall. I'm using a ...
silver takana's user avatar

1
2 3 4 5
21