sprite

Cocos2D changes the colours in the last row of pixles in a sprite?

I have never seen this issue before, its very strange. Just wondering if anyone else has come across this too. I have added a sprite to my game, its supposed to be the top left corner of a box to put text on to. I want to make it scalable without loosing anything so i have it broken up into sections. In the image above the one on top ...

Rotate sprite javascript

I have a sprite animation, a small cannon rendered using a 3D app. I have exactly 360 frames for a 360 degree turn. Each image has a 100x100 pixel size. So basically what I am trying todo is when I click anywhere in the page, the barrel of the cannon needs to rotate to point at the mouse cursor, sound simple maybe but I can't really get...

CSS image sprites loading slower through CloudFront than local

I just changed my CSS image sprites to run from local to CloudFront and there's now a noticeable lag, even across pages and page reloads. Any ideas as to why this might be happening? ...

RotateFlip - when it is applied?

I'm using RotateFlip to flip sprites horizontally. It seems that RotateFlip is applied when Graphics is drawn not image. The problem is that some sprites needs to be flipped and some not (depending on direction of sprite). I don't want to clone image each time I'm drawing flipped sprite. ...

OpenGL sprites are trembling slightly at rendering

Hi all, I made a class which manage sprites in an iphone application by using opengl es. rendering works well but when the sprite sheet is large (more than 512x512px) and the sprite has a part which doesn't move, this part seems trembling slightly (like if antialiasing was computed differently for each frame). Is it normal or is it a bu...

Calculating co-ordinates for a sprite in C++

I am trying to calculate the angle of movement for a sprite in C++. Although at the moment I am just using the console to output my results. My problem is that when My results are shown in the console, I cannot get the x axis to go into minus numbers. Unfortunately I have only just learned about basic trig so I have no idea if I am ju...

Simultaneous Sprite Touch Detection - iPhone & cocos2d

I am writing an app for the iPhone using cocos2d where I have 4 Sprites that are buttons. I figured I would implement the button functionality by using 2 sprites with different .png files representing the pressed/unpressed states. I thought this would be better than using an animation. In addition to detecting when the buttons are pre...

Strange problem with ID3DXSprite Draw method

Hello guys, I use ID3DXSprite interface to draw gui controls in my app. I have a 512x512 texture with all controls and use sprite->Draw() telling the exact RECT of control. Everything works fine except a strange bug on only one(!) machine. Normally, the control looks: And on that strange machine: Moreover, some controls look fine ...