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
1answer
16 views
I need some good Blender to Unity animator character controller tutorials
Finding a good 3rd person tutorial has been a real pain for me.
I'd perfer to find
3rd person controller
No root motion
Vertical AND Horizontal movement
works with Unity 5+
optional
Blender model ...
-1
votes
0answers
14 views
How to design an algorithm for AI to move a circle around the canvas arbitrarily?
Suppose I have a circle on the canvas and I want it to move by itself automatically. I don't want the circle to jump from one position to another but I want it to move slowly arbitrarily and better ...
-1
votes
2answers
79 views
Stuck space invaders
I have the following space invaders code which is working pretty well.
On invader creation:
//initialise invader counters
step_counter=100;
move_counter=0;
left=true;
move_speed=1;
speed_counter=0;
...
0
votes
1answer
12 views
Convert linear velocity to angular velocity for a ball / sphere
I have a ball moving on a flat plane. I cannot use RigidBody physics, so my object in Kinematic and I am manually handling speed/acceleration. The linear movement of the ball is fine, however as the ...
-1
votes
0answers
17 views
unity3d drag & slide character movement example
I need to control main character in my labyrinth-style game by "touchpad" placed in the corner of screen.
The player can DRAG character (by finger placed on touchpad), which allows to move the ...
1
vote
3answers
75 views
Stopping player from spamming movement keys which causes glitches Unity C#
I wrote a script for the player movement in c#. Whenever the player presses A or D, it moves him/her to the left or right by 12 units and when the player presses W or S, it moves him/her up or down by ...
0
votes
0answers
26 views
Unity AddForce Movement Issue
Trying to fine tune my player movement, currently move the player in x and z directions using AddRelativeForce so W key moves you forward the local direction not in global direction, works mostly ...
0
votes
1answer
41 views
Follow a path in Unity
I want to know how I can make this game object follow the specified path in unity
0
votes
1answer
59 views
What is a good approach to dynamically change actor Position?
In my card game there are 2 players with each player having a hand(a ListArray of of Cards.In this case its handPlayer1).
The Card class extends Actor.This is the code I use to deal the cards to the ...
0
votes
0answers
42 views
Moving light in a circle in 3D
I would like to move the position of the light in a circle in 3D in the XZ plane. I have the time delta which is in milleseconds. The behaviour is the light is oscillating and flickers on the surface.
...
0
votes
0answers
34 views
Movement varying when enemies are on screen
In my casual game that i've been working on i recently implemented frame independant motion using the 'euler integration' method (i think thats what it's called) as seen here
-> http://lazyfoo.net/...
-1
votes
2answers
62 views
Inconsistent speed when using Vector2.Lerp
I have tried to build a point and click mechanism in unity using
Vector2.Lerp(current_position,new_position,Time.deltatime)
But what I observed that the game object is moving at varying speeds ...
0
votes
0answers
28 views
Basic Theta Star Pathfinding Implementation Question
My goal is to implement any angle pathfinding in a 2D sprite based game. The levels are based on 2d square grids with a top down perspective (retro RPG theme), although units can move freely at any ...
0
votes
0answers
23 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
15 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
1answer
40 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, ...
1
vote
1answer
117 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
25 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
119 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
125 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
48 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
51 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
46 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
45 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
39 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
48 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
41 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 collide ...
0
votes
2answers
134 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
38 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
49 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
74 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
224 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
42 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
97 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
110 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
44 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
45 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
50 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, ...
3
votes
1answer
81 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
36 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
108 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
120 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
64 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
45 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
30 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
61 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 ...
4
votes
1answer
116 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 ...
2
votes
1answer
74 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
79 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
112 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 ...