A simple term for "translation", the change of position of an entity typically on the route of going from point A to point B.
0
votes
0answers
19 views
Dealing with future states of predictable entities
I'm developing this AI for a tile-based game. In this game, each turn the actors move a specific distance to their target, consume it if near enough and move on to the next target. If my player wouldn'...
0
votes
0answers
11 views
Adjust Object Velocity depending on Rotation
I am building a vehicle handling line in hyperPad, with no luck.
I have a "gas pedal", and the vehicle.
I can use add, subtract, multiply, divide, mod, get Rotation, get Velocity and set Velocity. ...
1
vote
0answers
27 views
AS3 move object to a point
I'm trying to make a room full of monster each side and the player stay in the middle. I have a problem, I don't know how I move each monster to the player and rotate each of them to face the player, ...
0
votes
1answer
93 views
How to make snake movement smooth not grid based like slither.io snake?
I try to find the right formula to mimic the smooth non-grid movement of the slither.io snake.
I can do it manually to save each point the "head" movement went and do some interpolation in between ...
1
vote
1answer
23 views
How to calcolate moving vector of object by its rotation degress in 2d
i have object in game which is rotating when i move my joystick , now i need to calculate its movement vector by its rotation
the object always moving forward and controlled by the joystick , the ...
0
votes
1answer
102 views
How can I make my movement continuous?
I'm making a game with simple movement code. I don't want the movement to be too complex since it's going to be a small game once it's done.
Right now the character moves 10 units at a time, then ...
1
vote
1answer
89 views
Tile based movement with SKAction (Xcode 8, Tile Map)
I am trying to make a game where the Hero can move like in Pokemon with SKActions.
But the movement looks unprofessional and have delays.
How can we handle to move the Hero smoothly with SKActions ...
0
votes
1answer
43 views
Right click a location and move towards it (C# Monogame)
I would like the player to move towards the mouse when the player right clicks. The player does move, but doesn't stop when the player reaches the point.
Here is the code.
void playerUpdate(GameTime ...
0
votes
2answers
46 views
How to make an object move outside the map and appear on the other side with a tilemap?
I have a tilemap where a character moves from tile to tile. I'm trying to make it possible for the character to move outside the screen and reappear on the other side, just like the tunnel in Pacman.
...
1
vote
1answer
38 views
AI: dealing with movement driving the same inputs as the player
My AI design is pretty simple. I have different entities that can be possessed either by the player or the AI.
Those entities have an "Input" component that holds the states of the actual inputs, like ...
1
vote
1answer
44 views
What is this tracking circle called as?
I don't know what the circle in the image below used for changing directions and movements of a character is called. Can anyone provide me anything related to it? I want to include it in my game.
0
votes
1answer
37 views
How to limit the speeding up of enemy movement?
Is there a way of limiting my speeding my enemy script every time my player collects 10 points. I have a movement script attached to my enemies and every time my player collects 10 points my enemies ...
1
vote
0answers
32 views
Game Maker Studio: How to make Player Circular Movement
I want to make a player move in circular but not that he move automatic but manual. Similar like in the game Zero Refelx.
1
vote
1answer
39 views
Simple Collision Resolution between 2 moving objects
I have two circles. And they can move in any direction. Their movement is based on these values:
circle1.xSpeed & circle1.ySpeed
And the same for the second circle. Now I know when they ...
0
votes
2answers
102 views
How do I accuratley switch lanes with my script?
Hi I'm working on a 3 lane 3d endless runner game and I came across this issue. With some help from this stack overflow, I managed to switch my character in the 3 lane, after couple of seconds my ...
0
votes
1answer
35 views
Moving left and right not working as expected
I've been trying to get this working for about 2 hours now and as far as I'm concerned, it is working entirely, other than one thing.
The problem is that when my player is in the air, and they move ...
0
votes
0answers
38 views
How do I move environment in a 3D endless runner in Unity?
I've making a endless runner game and experimenting it for some time. after some research on what is the best practices for endless runners, found out that its better to move the environment rather ...
0
votes
0answers
71 views
Issues with syrchonisation of player movement on a multiplayer server
before people mention that such questions have been asked I would like to tell that yes they had been but I am trying to find an answer which suits my situation much better.
I am working on a ...
3
votes
3answers
214 views
How can I convey a sensation of speed in space?
I'm making a game where you see a spaceship (in 3rd person) travelling at high-speed between planets (it takes 2-3 seconds move between them).
What effect could I use to convey the effect of extreme ...
0
votes
1answer
39 views
Smoother Movement
I have an object in my game that moves pretty slow, a bit under a pixel every second. When the object is moving at this speed, it looks pretty choppy, because it only moves once every second.
Is ...
1
vote
2answers
82 views
how to handle the virtual Z axis in 2D games?
I'm using this paper 2d framework of UE4 where a plane mapped with sprite texture is put in 3d world and therefore appears as 2D when viewed from sideways.
Its all good for games like NES mario where ...
1
vote
0answers
67 views
Unity3d Isometric moving forwards
I am making an isometric game using unity 3d and 3d graphics. I have been able to figure out how to create and isometric camera that follows the player, and a basic isometric moving script for the ...
1
vote
0answers
36 views
Top down controller script trouble
My game features a top down camera that follows the player as he moves via virtual joystick on a cellphone screen. I want the movement of the player to always walk forward and the direction will be ...
1
vote
2answers
41 views
Unity2D - move rigidbody object with collision
How do I move and collide my object (position given by touch or click), by Using rigidBody2D.MovePosition i can only teleport my character, and by using velocity, my character keeps moving, I want him ...
1
vote
0answers
46 views
Fixing wave-like movements when rotating an object using mouse input in Unity
I have encountered a rather odd issue with my program.
The setup:
In my scene, I have a GameObject which I have set as my player/character for this game. The player/character has a child GameObject, ...
2
votes
1answer
55 views
Unity API - Making a Sphere Jump?
I'm making a very simple game with a sphere that's supposed to roll and bounce on "planets". Also, please be ready to read a lot. I want to be very descriptive for you. :)
I've pretty-much-done ...
3
votes
1answer
32 views
Control Entity Moving Speed Without Using a Delay Function
In a Tetris game I'm trying to make (using C++/SDL), I need to control the falling speed of, say, one block. I have successfully done this by incramenting its y value then setting SDL_Delay(200). So ...
0
votes
2answers
79 views
How would I make my position interpolation stop once the destination is reached?
I would like to implement tile-based grid movement and I've heard that linear interpolation comes handy in the implementation process. I've tried to use it but I'm not sure how to make it stop once ...
1
vote
4answers
119 views
Performing movement per game tick
Assume we have a player on a map, whereby the grid is represented as a floating point.
When a player is moving, they have an x and y velocity.
How to do you properly apply their movement each ...
0
votes
1answer
61 views
Synchronize objects' movements moved by coroutine function
I'm using Unity version 5.3.5.
I'm having problems to synchronize the movement of three different objects from point A to point B and vice versa. To move the objects I use the following code:
public ...
0
votes
0answers
41 views
Android/Gear VR: Smooth walking with gamepad
I'm working on an Android app for the Gear VR using the Oculus SDK (Java, Eclipse) and I used this website to help me handle controller input, so I understand the whole concept of the center axis for ...
1
vote
2answers
29 views
What is a good practice for deciding when to use transforms instead of applying force?
I was making several games. I don't understand when I should use addTorque instead of rotate.
AddForce instead of position
The latest game was a pinball game. I wasn't sure the best way to active ...
3
votes
1answer
56 views
How do I move a unit one grid-square-width per button press in Unity3D?
I'm learning Unity. I'm making a 2D top down Frogger-esque game. I was wondering how you would go about making the player move x pixels per button press.
I have this code to move him, currently with ...
3
votes
1answer
103 views
How to compensate for moving objects with client side prediction?
I'm implementing a game server that supports Star Control-like melee. So you have ships flying and shooting, with super simple velocity/acceleration/dampening physics to drive movement.
I've read ...
1
vote
1answer
66 views
Unity question: When attaching my custom camera script camera shakes when player starts to move fast [duplicate]
Here is my player code.
Rigidbody rb;
Vector3 currMovement;
public float jumpSpeed = 10;
public float moveSpeed = 10;
public float rotSpeed = 180;
float distToGround;
public float smoothTimePos = ...
-1
votes
1answer
70 views
Unity: When attaching my custom camera script camera shakes when player starts to move fast
Here is my player code.
Rigidbody rb;
Vector3 currMovement;
public float jumpSpeed = 10;
public float moveSpeed = 10;
public float rotSpeed = 180;
float distToGround;
public float posSmoothTime = ...
3
votes
3answers
107 views
Does AddForce continue to add force indefinitely?
Does the AddForce method continue add velocity to an object forever? Does it need to be limited by another line of code?
Sorry if it is too broad or too simple; I am completely new to programming and ...
0
votes
2answers
64 views
Updating GameObject Position in Unity 5
I have a simple Sprite called Player that has the follow components (Transform, Sprite Renderer, Box Collider 2D, Rigidbody 2D, Player Controller Script). In my Player Controller script I want to ...
0
votes
1answer
235 views
How to achieve 2D ski movements similar to Alto Adventure?
I'm trying to achieve 2d movement similar to Alto's Adventure with Unity 2D. When grounded I want the character to slide alone the terrain parallel to the slope, but I want to be able to freely rotate ...
4
votes
1answer
95 views
Move Sprite in constant speed on squircle
I'm creating a game and i need to move a sprite on squircle path.
https://en.wikipedia.org/wiki/Squircle
i created the path using the equation :
angle -= Gdx.graphics.getDeltaTime()*speed ;
...
0
votes
2answers
44 views
Autonomous robot - moving from 1 object to the next object
This question falls in line with my last question: Unity 3D - create autonomous moving robot in house + first person camera movement
What I have
I have a 3D model of a house; a first-person camera ...
0
votes
1answer
158 views
Unity 3D - create autonomous moving robot in house + first person camera movement
I have very, very little knowledge about programming or Unity. I have done some basic tutorials, but I want to try something harder. The thing is, I don't know where to start. If you find the time to ...
0
votes
1answer
77 views
How to decide between strafing, turning etc for lateral character movement? [closed]
I have been studying the character movement of many 3rd person games. But just when I think I have come to understand the conventions or found a pattern, it seems I come across another game which does ...
-4
votes
1answer
44 views
Make object follow mouse cursor in unity [closed]
I was watching a tutorial on how to move objects on mouse movement. https://youtu.be/7OJQ6MbHuvQ
this is the link to that tutorial and below is the error I got while scripting. Please watch the ...
0
votes
1answer
60 views
Monogame movement Handling
I was curious if anyone could explain how I would be able to create simple movement handling in monogame. So far I have a red block which I tried to move by using a loop but that didn't take any ...
0
votes
0answers
38 views
character teleporting repeatedly into/above ground
I'm trying to make a HTC Vive Game in Unreal Engine 4.
I'm not a programmer, so im new to all this.
What i am trying to do is, make my character move with the thumb pad.
I got the moving part ...
1
vote
2answers
121 views
Elastically Object movement in unity3d
I want to move an object towards the destination elastically. Currently I am using Vector3.Lerp it working to move the object, start with high speed and reached at destination with low speed but ...
1
vote
1answer
209 views
Moving object to point a to point b smoothly
I am working on a problem where distance between the point A and B or given and object of interest should move smoothly from A to B.
I can control only control the speed of the object using this ...
0
votes
2answers
32 views
Moving towards and switching targets in Unity with collision
I have these nodes set up for a ship to move towards over time with out looking stops then repeats in a sequence.
like so:
1 2 3 1 2 3 1 2...
THE PROBLEMS i keep having either come from the ...
1
vote
1answer
43 views
Java- Trig based movement
I have been trying to create a smooth movement technique that would allow me to move in all directions, not just the 8 cardinal directions.
I have tried to use this doing trig, and while the ...