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
1answer
10 views

Unity: AddForce in transform.forward direction not working as expected

I am building a very simple car-driving game in Unity. I have a Player object, which looks like this: As you can see, I have a Rigidbody2d component attached to this object, as well as a script, ...
0
votes
0answers
5 views

Clamp 2d not working in Main scene (Godot3.2)

In Godot3.2,clamp2d(Player) works in standalone scene but doesn't work when instanced in Main scene(both as Child node through Scene ui and as a Packed Scene ...
0
votes
0answers
19 views

Why does rb.velocity blurrs background?

My player controller code is bellow. So is my player inspector. This makes my character move yet it blurs the background, but when I use ...
0
votes
0answers
11 views

Character either stuck in idle or character animation in unity

Im making my first game in unity. And Now I have this problem: my character is stuck in his running animation and I can't move him at all (when I'm trying to play the game). There is also this weird ...
0
votes
0answers
27 views

Player losing alignment with tilemap after moving

I'm using an isometric tilemap(2:1) and I can't figure out how to make grid based movement on it's surface. I managed to get a code working for the grid based movement, moving my character with 0.5 ...
0
votes
2answers
60 views

How to increase points per second when speed increases

I am making an endless rider game that is crossed between tron legacy and cube field. I am trying to add a point system were the faster you go the more points you get because you are more likely to ...
0
votes
0answers
30 views

Unable to use a velocity value when using KeyInput

Heres the code for the KeyInput ...
1
vote
0answers
19 views

What is the better form of movement for a vehicle that the player is inside of?

I am using unreal engine 4 to make this. Basically I have a submarine that the player can move around in and can control the submarines movement within an ocean. However I don't know the best way to ...
0
votes
0answers
34 views

How to check public bool of different script in C# - Unity [duplicate]

I seem to have some trouble with a problem that I feel should be really simple, but I've been beating my head against this for a few hours and I can't seem to figure out what the hurtle is. What I'm ...
0
votes
0answers
16 views

Unity with move gameobject line renderer

I create DrawLine class, I want my character to follow the line I draw. How do I move my character on draw line renderer ? Thanks! ...
0
votes
1answer
26 views

Ways to move a character in Unity

I am studying Unity, and so far I encountered three different ways to move a character. As far as I understand: Directly changing the transform - ignores both physics and colliders; Using a ...
2
votes
2answers
127 views

8-way 2D top down movement (diagonal) idle animation issues

Background I am working on animations for 8-way movement for my character and have done the 8 directional running animations using a blend tree. Now I need to do the same for the idle animations. ...
0
votes
0answers
25 views

Change hero direction in place before movement on a grid based game in Unity

I've already implemented a grid based movement with all the necessary animations. Now I would like the make the hero face the direction of the input without moving first and move only if the input ...
1
vote
0answers
21 views

Artifacts on top of platform sprite only when moving

I made a floating platform in Unity which has a propeller movement animation. I attached a script I wrote to the game object that adds slight vertical and horizontal movement using the game object <...
0
votes
0answers
6 views

(2d) Error pops up when handling enemy knockbackS [duplicate]

So I created some code that will make the enemy take knockback upon taking damage from the player. I put this behaviour inside the EnemyInheritance script so that every enemy I have in the game will ...
1
vote
1answer
34 views

Moving Rect with KEYDOWN

I tried to move my obstacle with the event type KEYDOWN, but it seems it is not working. This is my code. ...
0
votes
1answer
53 views

Why does my character move diagonally?

So i've been trying to make the player face towards the direction i pressed. That part works just fine but when I try to move the player it moves diagonally instead of left/right. Any clues? ...
0
votes
0answers
18 views

Grid base movement shader

I am currently working on a turn-based shooting game (X-Com Western Theme). I really like the shader effect used in X-com which highlights the edge of the movement zone. But I cannot think of an ...
0
votes
0answers
15 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
49 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
37 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
44 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
3answers
57 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
13 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
33 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
37 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
26 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
75 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
123 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
59 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
65 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
29 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
31 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
17 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
52 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
47 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
78 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
91 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
95 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
161 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
265 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
154 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
54 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
188 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
156 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
53 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 ...

1
2 3 4 5
17