i want to group my sprites that i call from an array, so that i can move them as a group. I was told to use cocosnode, but i\'m pretty sure he meant ccnode. Here is my code so far:
I am having trouble with animating my sprite in Java ME. if ((k & FIRE_PRESSED) != 0) { spriteActive = true;
My app implements its own sprites by calling the following in my view\'s onDraw() method: canvas.drawBitmap(sprite.getBitmap(), sprite.getX(), sprite.getY(), null);
I need to place an icon of 48x48 as background. I have this icon in my image sprite where of course there are many other images.
Help me out with some sample code for getting the position of a sprite in Box2d in开发者_JS百科 iPhone.To get the position of a sprite from a box2d bodyDef you would first want to save your sprite in
im testing the android SpriteMethodTest and on default settings canvas is getting 58fps while open gl is between 50-55fps, and the gap just gets larger with more sprites.
I\'m trying with no luck to move a sprite position in an simetric curve way with the touch drag. So far I use the following code with no luck
I’m trying to make a sprite that is stationary at the start but once you click somewhere on the screen, it should move to that point
I am writing a 2d game on the android and I am targeting phones with that have a minimum OpenGl ES 1.1 support.
Hey guys, i\'m trying to use the following drawing logic: Class Game { Character x; public Draw(...) { spriteBatch.Begin(transformation1);