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
28 views
player's skills' movement
My character has a skill, as this video demonstrates.
While I was suggested to separate the animation and the movement, I have changed the animation in place, and am trying to use code to move my ...
0
votes
1answer
65 views
How do I implement following behavior with a state-based AI?
I'm making a 2D game with two spaceships flying around shooting each other. One spaceship is controlled by the user, the by an AI. I want to use a simple Finite State Machine (FSM) for the AI.
I'm ...
0
votes
2answers
50 views
Improving the performance of smooth movement up and down
I would like to achieve a smooth movement of a game object up and down. The way I have always seen this done is via a sine wave, and adding the value of y for a specified X to the game objects value ...
1
vote
3answers
129 views
How to move an object along a vector
Let's say I got an object A and object B in a 2D game.
I create a vector leading from A to B. It's name is AB.
How can I make A move along the vector AB and reach B?
One way I was thinking of doing ...
1
vote
2answers
59 views
How can I rotate an Object towards a point in JMonkeyEngine
From time to time in my game, enemies spawn in different positions and they move toward a point.
I need to rotate their body in such a way that their "face" is rotated towards the point.
For enemies ...
0
votes
1answer
95 views
How can AI compute movement in 2D games
I know how to create a basic AI for a game, where the AI simple creates units that only march forward. The AI only decides when to create a new unit, taking into account a number of considerations.
...
1
vote
2answers
149 views
Change AI steering behavior's direction to 8 directions
I am making a 2d soccer game, all players move in 8 directions, so I need to convert AI steering behavior(like arrive and pursuit) into 8 directions.
Here are three example situations:
Player(now is ...
0
votes
0answers
17 views
Making an object fly in an arc (a parbola) [duplicate]
I'm making a game where there should be a robot throwing ball-shaped objects at another robot.
The balls thrown should fly in the shape of a symmetrical arc. Pretty sure the math-word for this is a ...
2
votes
4answers
351 views
How can I implement a directional melee attack?
I am attempting to make a top down game similar to the SNES Zelda games, in Unity 4.3, in 2D. When my character swings their sword, every enemy within a radius takes damage. I want to make sure that ...
2
votes
2answers
150 views
How can I incorporate the path of a jump into my A* implementation?
I need to calculate the path of a jump via A* for a simple platformer game. Calculating the direction is simple, but translating the jump physics into pre-calcuted voxel paths is a bit difficult. ...
0
votes
1answer
90 views
Particle movement in three Dimensions
I have created a particle system which movement is controlled by a flow field over perlin noise - Available here.
I would be very thankful for any ideas and tips how to control their movement on the ...
1
vote
2answers
89 views
How can I move an object towards another along a straight line
How can I move an object (like a cube) towards another object?
Let's say that we have a red cube in the center of a floor, and a blue cube in another location, there aren't objects between this two, ...
0
votes
0answers
107 views
Server Character Movement calculation
I am creating the movement function for an 3D MMO game server. It seems that I cant no get the position calculation to match the client and was wondering the best way to do this. Let me explain.
The ...
2
votes
1answer
85 views
How to prevent a sprite to move in an angle that will lead to collision
I have two sprites that can move in any angle. The sprites are rectangular.
I created bounding boxes for both the sprites. These boxes rotate whenever the sprite rotates. They always surround the ...
0
votes
0answers
89 views
Having trouble with 2D texture movement
I'm having trouble with smooth character movement for a 2d game I'm making.
It looks like the character is double when moving. Kinda like this (its just one pixel though):
( ()
/ /{}\ ==>
| ||
...