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
0answers
12 views

How to rotate my gameObject using Joystick control?

So, I am still a beginner C# game dev. and I am making a 2d airplane game right now and I wanted to know how I can make this feature when the joystick is faced in a direction let us say I moved the ...
0
votes
0answers
36 views

How do I create cinematic (trailer like) shots of my game?

Background We are in the midst of developing a trailer for our game. It is a 3rd person adventure platformer. As such, the camera is an over the shoulder position, which is great for gameplay, but ...
0
votes
1answer
40 views

Colliders slightly intersecting each other; any solution?

Consider this simple scene: In Unity, colliders slightly intersect each other. Typically, this isn't a problem. However, I want to make a custom character controller using a box collider and not a ...
0
votes
0answers
34 views

Snake tail in Snake game not working properly

I am making a simple snake game in Unity 2D. And the snake tail isn't following right behind the snake head like it is meant to. This is what is happening: https://imgur.com/a/zG6hbd7 This is my ...
0
votes
2answers
43 views

How would I make my player controls respond quicker?

I'm working on this game in Unity 2D where the user swipes to make a game object move in the direction that the user swiped in. Currently, when the user swipes it takes about a quarter of a second for ...
0
votes
2answers
29 views

Move with velocity based on rotation

So I have a simple script to move a character. The problem is that no matter where i'm looking at (my y rotation) it always makes me go the direction if I try to go forward, but I want it to go toward ...
0
votes
1answer
11 views

Using transform.position on an instantiated prefab in an array one by one

So I've been trying to make an already instantiated prefab to fall one by one in my scene. First they instantiate hidden in the camera and that works so far. But when I apply transform.position on ...
0
votes
1answer
26 views

Double jump, without allowing two jumps after falling down a cliff

I created a script that allows the player to double jump, which works like a charm. The problem is if the player walks off a cliff, they will still be able to jump twice. But that isn't how double ...
0
votes
0answers
21 views

Correct placing of player distance logic

I'm going to leave behind the blueprints here as they do not contribute to the question. I can make enough abstraction to get to the point. Thank you reader. I've got a 2.5d level where each of my 2 ...
0
votes
0answers
20 views

Help with Minecraft-like AABB-AABB collision detection and resolution

I am currently working on a Minecraft like game with OpenGL and C++. I've gotten as far as abstracting a Camera object and setting up movement and even defining basic gravity like simulations, but I ...
0
votes
0answers
24 views

Enemy does not switch to jumping and falling animation, and stays in idle the whole time

So I want my enemy to switch to jumping animation after it finishes its idle animation. So I named my movement script: void movement(), and create an event that references movement() at the end of the ...
0
votes
2answers
71 views

After the player collides with the enemy, it keeps moving backwards until it falls down a cliff

My player will basically be pushed back forever after colliding with an enemy. I have tried changing the mass of the player to like 100, but it still does the same thing. The force that pushes the ...
0
votes
1answer
119 views

The jumping height changes randomly, and it is not due to the fact that I press the space bar longer. It is just random

Sometimes, the jump height will be so high, and sometimes it jumps normally. How do I solve this? Code: ...
-1
votes
1answer
58 views

Player sometimes doesn't jump up while moving and jumping at the same time

My issue is that the player sometimes (occasionally) doesn't jump up while moving. It sometimes works, sometimes don't. It's weird, and I am not sure whether it's the code problem, or the tile ...
0
votes
1answer
61 views

Hinge joints chain movement (2D)

I have some problems with hinge joint chain movement calculations... Here is my algorithm for segments location/rotation adjustments after a previous segment update (C#): ...
1
vote
1answer
28 views

Implementing a movement and collision system with Vectors and Area

I've scoured gamedev for around 45 minutes, but I'm unable to find a detailed approach to implementing a movement and collision system for games - specifically, when to use which process, and what to ...
0
votes
1answer
21 views

UE4: “Ignore Move Input” Does not get Set back on

I have the following issue: I have some logic which I call to Set Ignore Move Input on for a specific player character, based on a boolean. However, after half a second, I set it back on. Everything ...
0
votes
0answers
16 views

Axis Mapping gives one-sided values

this has got me stuck badly: my project is in 2.5D. Jumping and crouching not implemented yet. Making use of Axis Mapping Input from the project settings, where numpad 4= 1 and numpad 6= -1 to ...
0
votes
1answer
42 views

How do I move my infinite runner player when the game zone shares the screen with a match 3 game?

So I am seeking to make a Match 3 with an infinite runner element. The match 3 portions are all already totally done, but I'm running into trouble figuring out how to best approach the Runner portion. ...
0
votes
1answer
40 views

Moving object with turn in UE4

I have been struggling with this problem for a while. In my project (RTS in space) I have a ship moving on a 2D plane. I want to make the right movement in space so that when I click somewhere in ...
1
vote
1answer
74 views

Implications of variable run speeds in 2D

I'm getting my feet wet trying to design and implement a 2D action platforming game. Combat will be a big focus, so I want to have tight ground and air control so players can be precise and express ...
0
votes
1answer
90 views

Move player in a circular manner

i'm creating a pong game for learning purpose and decided to have the Paddle moving freely but with a slight change in its control. When pressing LEFT OR RIGHT it should move in polar coordinates ...
0
votes
0answers
15 views

How to apply windboxes when the wind's acceleration is weaker than the object's friction?

I'm making a birds-eye-view, Zelda-esque adventure game (open beta here). I want creature sprites to have two modes of movement - walking, where they can stop and start instantly and move at a set ...
0
votes
0answers
57 views

How do I prevent camera jitter when rotating the player - Unreal?

This is a problem that seems to have no reasonable answer anywhere around, yet is a commonly needed aspect of developing game mechanics. Context I'm developing a traditional 3rd person character ...
10
votes
1answer
142 views

Möbius effect in Unity

This morning I've seen the following animation on Twitter. It is a kind of Möbius strip effect. It's cool! Isn't it? So I've decided to build something similar using Unity, just for fun. I want to ...
6
votes
0answers
213 views

How does a game like Enter the Gungeon handle forward and backwards movement with their orthographic set up?

So I've been scratching my head at this problem for over a week now, and would love some insight from anyone who might know a bit more. In my game I have the floor flat on the X/Z plane with walls/...
0
votes
1answer
153 views

Way to prevent jumping pieces

I have a chess game and I have all the movement for the pieces coded but all of the pieces, not just the knight, can move over the top of the other pieces. What would be the least intrusive way to ...
0
votes
1answer
45 views

The camera does not capture movements in z-axis

I want to make a simple drag and drop card in Unity, where the card pops up a bit towards the screen when the drag begins (lifting effect), and then drops down back on the table when the drag ends. ...
4
votes
3answers
177 views

How to model chess knight movement in GameMaker?

I am making a chess game in GameMaker, and I have the basic movement down for all of the other pieces except for the knight. I am using a system where I have an if statement that checks if the mouse ...
0
votes
1answer
50 views

Making object move in an angle

I have a game with a beat-em-up perspective (think Final Fight, Streets of Rage) where movement is in X and Z. My movement logic consists of checking controller input of X-axis for X movement and Y-...
0
votes
1answer
104 views

2D party follow the leader in Unity?

I am attempting to make a 2d side-scrolling platformer where the player collects other characters as they advance through the levels, like you would in a classic top down rpg. However, I am having a ...
0
votes
1answer
49 views

Why is the pawn not moving?

I have a set of moving chess pieces and am now trying to implement the rules to prevent them from going anywhere. The pawns use this code to move: (Sorry for the blurriness, the IDE did it ...
0
votes
0answers
17 views

How would I go about exporting collision data of specific objects in unity, to use as geodata in my MMORPG?

So I have been working on the game for quite some time and always left this step as something to do later. How would I go about exporting the vertices/mesh data of specific objects? I want to use ...
0
votes
0answers
22 views

How to avoid camera jerkiness when using integer-based movement with a remainder?

I am experimenting with a low-res project in GameMaker 2. To preserve the pixel art and prevent distortion, I have my movement code set up to only move my sprites in integer intervals. Basically, ...
0
votes
0answers
18 views

Preview source state does not change

I am currently following this book "Developing 2d games with Unity" by Jared Halpern. I hope you might be familiar with it or you can help me anyway. Currently I try make the movement of my character ...
0
votes
1answer
95 views

How can I move my player on exact x and y coordinates, like on a grid?

I'd like to implement movement exactly like it is done in this game. (You can see it in action on YouTube.) I need my Player to always stay in the center of X and Y similar to grid movement, but with ...
0
votes
1answer
56 views

Way to Prevent Stacking Pieces

I have a chessboard with all the black pieces that move with this code: I found that when I move the pieces, they will stack on top of each other. How can I prevent this? I have since changed the ...
1
vote
0answers
62 views

Rolling a circle around a square

I am stuck on a simple Box2D task. I have a box and a ball (in top-down view so no gravity), and I would like the ball to roll around the box. Here is my code. Basically now I am trying to detect ...
0
votes
0answers
50 views

How do I make my 3d cube move left and right with buttons in Unity with RigidBody.AddForce?

How do I make my 3d cube move left and right with buttons in Unity with RigidBody.AddForce()? I can't figure out how to do this in Unity! I'm trying to make my game ...
0
votes
0answers
26 views

can't achieve a smooth movement with ShapeRender

I am using ShapeRender to render Circles and in the update function on every loop I update the coordinates that represent my ...
0
votes
0answers
25 views

Implement a scale factor to apply to UCharacterMovementComponent::JumpZVelocity in Unreal Engine 4

I'm creating a my own movement component inherited by UCharacterMovementComponent. I should implement a scale factor (I called it JumpZVelocityScale) to apply the JumpZVelocity (and I don't want ...
1
vote
1answer
24 views

How do the PhysWalking and similar functions actually handle input?

As the title may suggest, I'm developing a CustomMovementComponent and I'm on the stage where I am developing my own PhysCustom ...
1
vote
1answer
111 views

In a MovementComponent, where should I initialize member variables?

I have a MovementComponent derived from CharacterMovementComponent MovementComponent, ...
0
votes
0answers
36 views

How to use a derivative of CharacterMovementComponent

I'm developing a 3rd person platformer. My Character class (the default third person template class): PlatformerCharacter : ACharacter My MovementComp class: <...
0
votes
0answers
21 views

Add touch screen support to tile navigation

I saw this awesome tutorial that is related to Grid-based Movement in Godot What I want is to add touch screen support for this kind of movement i.e. with virtual on screen joystick or gestures. How ...
1
vote
1answer
247 views

How to handle forward/backward movement in an oblique top-down view

I'm making a pseudo-2D top-down game, where my assets are actually 3d but I use an orthographic projection to introduce more depth. I saw a picture of how the game "Enter the Gungeon" was actually ...
1
vote
0answers
20 views

Smoothing long paths with splines

What is the best way to smooth a long path with splines? I first implemented a Bezier curve but then realised that I would have to join a lot of them. I used A* on a weighted grid so I can't use ...
0
votes
1answer
77 views

Higher order splines for use with pathfinding

In this page, Amit explains that splines can be used to achieve movement on a found path. In the picture below, he explains that: The blue paths use splines, with dark blue being low order ...
0
votes
0answers
47 views

How does CharacterMovementComponent::PerformMovement work?

I'm developing an adventure platformer. As such, the manipulation etc. of the CharacterMovementComponent is going to be crucial to the game. I have seen the more ...
0
votes
1answer
43 views

Move a ball horizontally left and right but restricting forwards and backwards motion unity 2d

I am trying to develop an endless runner where there is a sphere as the player and it is moving left and right following the position of a finger on a touch screen. However, when I try to do this I ...

1
2 3 4 5
17