Tagged Questions
5
votes
2answers
274 views
How do I keep my character centred on screen?
I am making a game similar to Legend of Zelda: Link to the Past (top-down 2D action-adventure). I want the character to stay centred on the screen when he moves.
Currently, whenever the player wants ...
0
votes
1answer
120 views
Pong horizontal movement algorithm
I was just wondering about the horizontal movement of a pong ball? What is the general algorithm used with this? The ball in my pong game just move vertically and I don't know about the algorithms ...
0
votes
1answer
121 views
Character movement relative to cursor position
I want my top-down shooter character to move towards the mouse when pressing the up arrow and strafe relative at right angles to it when pressing the left and right arrow keys.
I can't figure out how ...
1
vote
1answer
196 views
In 2d game logic, should I use pixels or world coordinates?
Currently in my game I handle the logic (collisions, movement) using pixels but I find it very limiting espiecially when thinking about variable speed.
For example Box2D requires you to use ...
4
votes
3answers
342 views
Smooth Sprite Movement - Don't Add Velocity to Position?
I am trying to figure out if there is a way to move a sprite smoothly on the screen at different speeds without stuttering, but keeping the effect that it's moving smoothly; especially at faster ...
3
votes
1answer
137 views
Figuring out which direction my object is facing on a 2D plane?
My friend and I were messing around in XNA 4.0 making a 2D racing game. Kind of like this one: Ivan “Ironman” Stewart’s Super Off Road. The problem we are having is knowing which direction the car is ...
1
vote
2answers
154 views
Basic plane kinematics
I never did physics in my life and this is really hard for me. I am currently trying to implement movement in the X and Y axis of a plane, in a video game I am making.
What I want to do is, given a ...
0
votes
1answer
86 views
enemy behavior with boundary to change direction
I'm doing space shooter kind of game, the logic is to reflect the enemy if it hits the boundary. With my logic, sometimes enemy behaves like flickering instead of changing the velocity. It's like ...
-2
votes
1answer
271 views
C# XNA 2D Multiple boxes collision detection and movement
Hi,
I've been making simple game where you shoot boxes that are coming towards you.
All game objects are simple rectangles.
Now I have problem with collision detection; how to check where the ...
1
vote
1answer
325 views
default xna 4.0 gametime don´t works well for 2D physics
I am developing a game using Visual Studio 2010 and XNA 4.0,
after advancing to some extent with the project (a platform based 2d platformer msdn starter kit) I got to test it on different computers ...
4
votes
1answer
324 views
Collision Detection with SAT: False Collision for Diagonal Movement Towards Vertical Tile-Walls?
I'm developing my first tile-based 2D-game with Javascript. To learn the basics, I decided to write my own "game engine". I have successfully implemented collision detection using the separating axis ...
0
votes
1answer
328 views
android basic Movement for array-objects
I was adviced to start a seperate question for this so here I go. Been stuck so long with this do if you can help, please do.
Lets get to it!
Im trying to set the speed for my bullets, but since Im ...
2
votes
1answer
734 views
How can I accomplish Pokemon-style movement over tiles in java?
I'm talking about where if you press a directional key once you walk over to the adjacent tile and can't do any other actions during the walk. I can get my character to move one tile width, but my ...
2
votes
6answers
977 views
How to implement object velocity as a vector
I'm working on a Breakout game, and want to change the ball's movement code from how I currently do it, to something based on vectors (as I feel learning and implementing movement based on vectors ...
0
votes
3answers
1k views
How does changing weapons and character animation in 2d games work?
I know how I can make my character move by changing animation-frames. What if I want to use a weapon database? I want the character to fight with a bow and sometimes with an axe (different moves). Do ...
0
votes
1answer
343 views
Joystick example problem for android 2D
I've searched all over the web for an answer to this, and there are simular topics but nothing works for me, and I have no Idea why. I just want to move my sprite using a joystick, since I'm useless ...
0
votes
2answers
76 views
Crash when trying to detect touch [closed]
I've got a character in a 2D game using surfaceView that I want to be able to move using a button (eventually a joystick), but my game crashes as soon as I try to move my sprite.
This is my ...
2
votes
0answers
148 views
What is causing this behavior with the movement of Pong Ball in 2D? [closed]
//edit after running it through the debugger it turned out i had the display function set to x,x...TIL how to use a debugger
I've been trying to teach myself C++ SDL with the lazyfoo tutorial and ...
2
votes
1answer
582 views
2D bullet movement speed problem [duplicate]
Possible Duplicate:
Moving from A(x,y) to B(x1,y1) with constant speed?
My problem is that I can't get my bullet movement right. The current update code I have for it is:
speedX = deltaX;
...
0
votes
1answer
465 views
What is the best mechanism for controlling a character in a 2D Android game?
Im developing a 2D RPG for Android where the character can move up, down, left, and right like in top-down RPGs like Pokemon.
What is the best input mechanism to use to control the character? A ...
11
votes
4answers
3k views
Curved movement between two points
What is a good technique to enable an object to move between to points in a nice curved motion?
The end position could also be in motion, such as the trajectory of a homing missile.
6
votes
2answers
1k views
I want to implement free-running movement (like Assassin's Creed) in 2D. What to do?
I would like to implement free-running as popularized by Assassin's Creed, albeit in 2D.
What are some specific techniques or algorithms that I can use to achieve free-running in 2D without having to ...
1
vote
2answers
545 views
Collision Problems
I'm having some troubles with a 2D platformer type game (there's more to it, but that's all that matters for this question). I had collision with the platforms working fine, but if the character hit ...
17
votes
4answers
3k views
Top Down RPG Movement w/ Correction?
I would hope that we have all played Zelda: A Link to the Past, please correct me if I'm wrong, but I want to emulate that kind of 2D, top-down character movement with a touch of correction. It has ...