Tagged Questions
0
votes
1answer
73 views
Sprite not rotating around its centre after Scaling at its centre
If I scale a sprite at its centre, then try to rotate it around its centre as well, the rotation does not occur around its centre.
If you need to rotate, for example a scaled ball,the way its working ...
0
votes
1answer
91 views
Love2D : Problem rotating image in a SpriteBatch
I'm working on a falling blocks type of game with triangular pieces. I'm using a SpriteBatch to accumulate and remember the pieces and their locations.
The problem is that when I rotate a scaled ...
0
votes
1answer
578 views
rotate sprite and shooting bullets from the end of a cannon [duplicate]
Possible Duplicate:
How to Align Gun with Bullets
Hi all i have a problem in my Andengine code,
I need , when I touch the screen, shoot a bullet from the cannon (in the same direction of ...
1
vote
1answer
219 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
327 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 ...
7
votes
1answer
867 views
Xbox thumbstick used to rotate sprite, basic formula makes it “stick” or feel “sticky” at 90 degree intervals! How do you get smooth rotation?
I am using a very basic formula to calculate what angle my sprite (spaceship for example) should be facing based on the Xbox controller thumbstick i.e. you use the thumbstick to rotate the ship.
In ...
0
votes
3answers
422 views
Rotating Sprite around Y-Axis (2D)
I'm going to be creating a game soon, and part of it involves spinning sprites. The sprites will be spinning around the Y-Axis (imagine a spinning plate on top of a stick, where the stick stands up ...
6
votes
2answers
934 views
Simple thruster like behaviour when rotating sprite
I'm prototyping some 2D game concepts with XNA and have added some basic keyboard inputs to control a triangle sprite.
When I press key up the sprite accelerates in it's current facing direction, ...
0
votes
0answers
545 views
Box2d : Sprite display not fit with body when rotated
I have recently achieved to render box2d Objects, and texture with sprites at where the box2d objects exists. But now I am facing another problem.
When I rotate the Box2D object, the sprite gets ...
3
votes
3answers
3k views
Bounding box of a rotated rectangle (2d)
I can see this has been asked before in various ways. I am struggling to work it out though hence asking again.
2d sprite that moves and rotates. I'm looking to contain it in a bounding box as it ...
2
votes
2answers
2k views
Cocos2d rotating sprite while moving with CCBezierBy
I've done my moving actions which consists of sequences of CCBezierBy. However I would like the sprite to rotate by following the direction of the movement (like an airplane). How sould I do this with ...
2
votes
1answer
509 views
Rotating a group of sprites - How to calculate origin
I am rotating a group of sprites in XNA, which I developed with the help of the following example: http://msdn.microsoft.com/en-us/library/bb194912%28v=xnagamestudio.10%29.aspx
It all works very ...
3
votes
1answer
841 views
Turning a sprite such that it rotates in the direction that's most efficient
I have a sprite that moves from waypoint to waypoint. It turns to face its velocity vector, but not instantly (there's a rotation speed).
The problem I'm having is, from one direction to another, the ...
3
votes
6answers
1k views
How to get quality sprite sheet generation with rotations
I'm working on a game that uses sprite sheets with rotation for animations. While the effect is pretty good, the quality of the rotations is somewhat lacking. I exported a flash animation to png ...