sprite

Does anyone know of any sprite collections?

I am making a 2D Java game. I want the game to look nice, so I need good sprites, but I want to focus on the coding of the game, not the graphics design. This project has a time constraint so having premade sprites would be very helpful. Does anyone know of any good sprite collections? ...

iphone cocos2d CCSprite EXC_BAD_ACCESS

Friends i am new to cocos2d programming and Mac in general! I have noticed this EXC_BAD_ACCESS errors ruining most of my time... Take the following snippet of code from the Geek & Dad's tutorial... -(void) AddEnemyAtX:(int)x Y:(int)y { CCSprite *enemy1 = [CCSprite spriteWithFile:@"enemy1.png"]; enemy1.position = ccp(x,y); ...

Basic draw method blenddstate not recognized?

I am pretty good at programming, however, i am new to c# (xna), i am following a tutorial to draw a sprite on screen and the blendstate method is not recognized when used like the following in the draw method: protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); /...

Prevent jQuery spritely panning <div> to add page length

Since I have a panning ` element do to a jQuery spritely plugin method which I'm calling to pan some Super Mario Bros backgrounds, it appears to increase the page length quite a bit. If you visit http://www.marioplanet.com you will notice that there 3 different panning backgrounds. With only 2, there isn't enough to fill the entire hei...

Dump Sprite Track from Quicktime Movie (.mov)

Hallo, i wonder if it is possible to extract the content or certain information inside a sprite track of a Quicktime movie. The QTkit doesn't offer anything for this task and tools which were able to do this were outdated or not available anymore. In addition, these tools (e.g. atomic dumpster) are not opensource so i can't see how its ...

Drawing sprites on D3D device

I have a hooked DirectX used in C++ code that draws text and sprite. I tested it and it drew well onto 2D application. However, when I tried it with 3D application (some complex game actually), only text was visible. From that I deduced the sprite is not being overdrawn by something else, hence the text would be too. I set flags Set...

Memory Control with UIKit Spritesheet

Hi, I used the solution here http://stackoverflow.com/questions/2863626/using-cgcontext-to-display-a-sprite-sheet-iphone to create an animated spritesheet class (A child of UIImageView) that takes in a huge (200+) frame spritesheet and animates it using a firing NSTimer. I was wondering if anyone had any ideas how to control the result...

Sprite Rotation in Android using Canvas.DrawBitmap. I am close, what am I doing wrong?

I have this sprite rotating algorithm (its poorly named and just used for testing). It is so close, sprites drawn with it do rotate. Everyframe I can add +5 degrees to it and see my nice little sprite rotate around. The problem is, the other stuff drawn to the canvas now flickers. If I don't do the rotation the regular drawn sprites ...

Scrolling items in sprite

I have a sprite containing a menu of items created from an array of names and prices. When you click on the names of these items it adds the item to a calculator that has quantity, total etc (similar to a shopping cart but without a checkout). I have the entire thing working, the problem is i need the list to be scrollable for the menu a...

Pygame - calling surface.convert() on animated sprite causes transparent background to become white.

Everyone says to use .convert() on surfaces to speed up animations (which will be an issue with my game because it will be and mmo...to some extent, so it might have a dozen or a couple dozen characters moving at the same time), the problem is that my transparent png images work great without convert but as soon as i use .convert() all o...

Setting mask for sprite

So i have this sprite that is say arbitrarily 100 x 100 which is added to the stage. Now when content is added to this sprite the sprite expands automatically as it should. I dont want this to happen, what i want is to set a defined boundary i.e. 100 x 100, if too much content is added i can be able to scroll it. My problem is i cannot a...

Removing Sprites from stage

Hey guys, got a problem with my pages in flash. So i created 5 pages, each of which contains several movie clips (text, graphics, forms, etc). There is one specific page however that contains autogenerated content via. sprites. If i happen to land on this page, the sprites will appear, but when i transition to another page, they are stil...

Loading sprites 1 time, or many times ?

I'm wondering, if i'm doing this: <div style="width:50px;height:50px;background: transparent url(sprite.png) 0px 0px no-repeat;">555</div> <div style="width:50px;height:50px;background: transparent url(sprite.png) -56px 0px no-repeat;">666</div> <div style="width:50px;height:50px;background: transparent url(sprite.png) -109px 0px no-r...

How do I use a sprite to the right of text with an unknown width?

Given the following example: http://cl.ly/2UAa How do I use a sprite on the right side of the "see more..." line so that it always adjusts with the width of the text? Should I create a separate element that will float with the text, or is there a way to do it directly within the link. ...

Creating a matrix for a billboarded quad?

I'm trying to come up with a proper algorithm to create a matrix which gets the quad to face the camer straight up but I'm having difficulty. The quad I'm drawing is facing downwards, here's the code I have so far: D3DXVECTOR3 pos; pos = D3DXVECTOR3(-2.0f, 6.0f, 0.1f); D3DXMATRIX transform; D3DXMatrixTranslation(&transform, pos.x, pos....

CSS Sprites with Dynamic Sizing

I've decided to crate a sprite sheet for my entire site (+-30 images) so I can load 1 image and just reference positions, which reduces image load time and server calls. My question: Is it possible to reference an image in the sprite sheet and then size that image to 100% of its parent container? So For example: #SomeDiv { backgro...

ActionScript - Dynamically Adding Property to Sprite

i'm pretty confused over the following issue and would be grateful for some clarity. generally, how i work involves designing all of my graphics in Flash Authoring, converting them to Sprite symbols by changing the base class to flash.display.Sprite, give my instances names and finally export them to ActionScript. the approach actually...

How listener will be executed for objects hidden by another objects in as3??

I have two movie-clips, one is small-box and another is big-box .Both are rectangular shape. Small- box has an index 0, and big-box has an index 1. Their x,y are same and big-box being big in size gets hide small-box. Now the problem is the listener attached to small-box does not fire as big-box is on the top of small-box. what would be...

away3d 3.6 Clipping bug

hello noun sprite in the away3d 3.6 in FrustumClipping not displayed why???? var spr2d:DirectionalSprite; var bitMat:BitmapMaterial = new BitmapMaterial(bitData); for(var i:int = 0 ; i<500 ; i++) { spr2d = new DirectionalSprite(bitMat); spr2d.z = (Math.random() * 4000)+1500; ...

CSS Sprite generator for Ruby on Rails project

I'm currently working on a large, highly trafficked Ruby on Rails website and in order to get our page load times down, we are looking at spriting our background images. There seem to be a lot of tools out there but many are in the early stages of dev and many don't support some of the features we need. Features which are important to ...