Tagged Questions
-1
votes
2answers
158 views
Moving a sprite towards an x and y coordinate
Given a sprite with an x and y coordinate, how would I move it toward another sprite with an x and y coordinate?
I've already made it face towards the other sprite, and I've made it move towards the ...
8
votes
2answers
238 views
Following a path in a smooth fashion
I am currently making a 2d tower defense game with a static, predetermined lane that the enemies follow (i.e. towers cannot block the path and path finding is not the problem I am trying to solve).
I ...
4
votes
3answers
321 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
3answers
490 views
How to move a sprite automatically using a physicsHandler in Andengine?
I use a DigitalOnScreenControl (knob with a four-directional arrow control) to move the entity and the entity which is bound to a physicsHandler.
physicsHandler.setEntity(sprite);
...
3
votes
1answer
215 views
Scaling sprite velocity / co-ordinatesin Android
I'm trying to find the answer to a question that I've had for a long time, but am having trouble finding it! I hope someone can help :-)
I'm trying to find information on how to scale sprite velocity ...
3
votes
2answers
340 views
How do you set the movement speed of a sprite?
I'm using Slick 2D/Java to play around with graphics. Getting an image to move is easy:
Input input = gc.getInput();
if(input.isKeyDown(sprite.up)){
sprite.y--;
}else if ...
1
vote
1answer
213 views
How to I get a rotated sprite to move left or right?
Using Java/Slick 2D, I'm using the mouse to rotate a sprite on the screen and the directional keys (in this case, WASD) to move the spite. Forwards and backwards is easy, just position += ...
0
votes
2answers
315 views
Can't get sprite to rotate correctly? [closed]
I'm attempting to play with graphics using Java/Slick 2d. I'm trying to get my sprite to rotate to wherever the mouse is on the screen and then move accordingly. I figured the best way to do this was ...
4
votes
2answers
1k views
Move sprite in the direction it is facing?
I'm using Java/Slick 2D. I'm trying to use the mouse to rotate the sprite and the arrow keys to move the sprite. I can get the sprite to rotate no problem, but I cannot get it to move in the direction ...
1
vote
3answers
240 views
Shaking objects near correct position (with video)
All right, so I'm testing two box objects. One is standing fixed in a position and another at the beginning of the program goes to the first one. And at the end the latter should stand completely over ...
2
votes
1answer
216 views
Space Invaders-type game: Keeping the enemies aligned with each other as they turn around?
OK, so here's the lowdown of the problem I'm trying to solve.
I'm developing a game in PyGame that's a cross between Space Invaders and Columns. I'm trying to make the motion of the enemies similar ...
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 ...
0
votes
1answer
201 views
Player sprite moving slower on iPhone 4
I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
0
votes
2answers
322 views
How do I move a sprite around using tile based movement in Java?
So, I'm new to Java and I want to get a sprite to move around the screen, like a tile-based movement. I really would like some help and some resources or tutorials could work. I've done a little C#, ...
0
votes
1answer
128 views
trouble in making a game questions?
all i've a little trouble understanding some concepts while making game please give your suggestions on my questions.
I have a animated sprite image this i want to move this image according to given ...
10
votes
4answers
692 views
Player moving up, is he jumping or climbing?
In a 2D physics-based platformer game that has ladders in it, how do you determine whether the player moving up is caused by a jump or him climbing a ladder, such that you know what animation to play? ...
5
votes
2answers
2k views
Oscillating Sprite Movement in XNA
I'm working on a 2d game and am looking to make a sprite move horizontally across the screen in XNA while oscillating vertically (basically I want the movement to look like a sin wave). Currently for ...