Questions tagged [sprite]

A sprite is a two-dimensional image or animation that is integrated into a larger scene.

Sprite

A sprite is a two-dimensional image or animation that is integrated into a larger scene.

Spriting

The term is also used when taking subsections of a larger image file containing icons for display. This allows browsers to load only one image file and reuse it to display many icons by using offsets. This is known as spriting.

FAQs

Resources

4496 questions
159
votes
14 answers

Can I add color to bootstrap icons only using CSS?

Twitter's bootstrap uses Icons by Glyphicons. They are "available in dark gray and white" by default: Is it possible to use some CSS trickery to change the colors of the icons? I was hoping for some other css3 brilliance that would prevent having…
cwd
  • 47,510
  • 50
  • 154
  • 194
126
votes
5 answers

SVG use tag and ReactJS

So normally to include most of my SVG icons that require simple styling, I do: Now I have been playing with ReactJS as of late evaluating it as a possible component in my new front-end…
ryanzec
  • 25,398
  • 36
  • 107
  • 160
97
votes
2 answers

Can you style ordered list numbers?

I'm trying to style the numbers in a ordered list, I'd like to add background-color, border-radius and color so they match the design I'm working from: I guess it's not possible and I'll have to use different images for each number i.e. ol…
Pixelomo
  • 5,847
  • 3
  • 42
  • 56
58
votes
6 answers

Changing the Coordinate System in LibGDX (Java)

LibGDX has a coordinate system where (0,0) is at the bottom-left. (like this image: http://i.stack.imgur.com/jVrJ0.png) This has me beating my head against a wall, mainly because I'm porting a game I had already made with the usual coordinate…
Sosavpm
  • 683
  • 1
  • 5
  • 6
43
votes
3 answers

Getting "giggly" effect when slowly moving a sprite

How do I remove this "giggly" effect when slowly moving a sprite? I have tried adjusting Antialiasing values in QualitySettings and Filter Mode in ImportSettings in the Unity Editor but that doesn't change anything. Ideally, I would like to keep…
user5655032
40
votes
6 answers

How do I show sprites in the border on C64?

I've seen cool C64 demos showing sprites in the border area of the screen. It shouldn't be possible; I think they managed to fool the graphics chip somehow. How exactly did they do it?
Danko Durbić
  • 6,637
  • 5
  • 32
  • 37
36
votes
2 answers

How to extract part of this image in Java?

I have this sprite sheet: How can I read this image file to extract part of it to be used as a sprite ?
Click Upvote
  • 235,452
  • 251
  • 553
  • 736
35
votes
4 answers

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of…
Khalid Abuhakmeh
  • 10,383
  • 10
  • 48
  • 75
34
votes
2 answers

libgdx difference between sprite and actor

I'm just going through the javadoc and various tutorials on libgdx and I'm at the stage of trying to figure out differences between various concepts that seem similar to me or provide similar capabilities in libgdx. At first I thought scene2d was…
Neil Walker
  • 5,334
  • 10
  • 51
  • 75
31
votes
4 answers

Looking for a good Image Sprite generator tool

I looking for a decent Image sprite generator. I tried http://spritegen.website-performance.org/ but it's not "smart" enough to handle multiple image dimensions and merge them with few blank spaces between images. Any suggestions???
John Louros
  • 2,722
  • 4
  • 19
  • 29
29
votes
7 answers

Easy tool to decompose sprite image?

I have a lot of sprite images that contain dozens of icons. Is there an easy way to unravel the sprites into separate image files either automatically or feeding it coordinates, widths and heights?
Abadaba
  • 1,418
  • 6
  • 19
  • 29
29
votes
5 answers

how to obtain a CCSprite's width and height in cocos2d for iphone

That's the question xD Given an instance of a CCSprite in cocos2d in iphone, what method can I use to obtain the image width and height?
Manuel Araoz
  • 14,795
  • 21
  • 67
  • 91
29
votes
7 answers

Is there a way to visually see sprite kit's SKPhysicsbody borderline?

I am using bodyWithPolygonFromPath to define the volume of the physicsbody, and used http://dazchong.com/spritekit/ to get the paths required. But the path does not seem correct and I wish to see the borderline of the physicsbody path to see if the…
user2832367
  • 361
  • 1
  • 3
  • 8
28
votes
5 answers

How do I test if a property exists on a object before reading its value?

I'm attempting to read a property on a series of Sprites. This property may or may not be present on these objects, and may not even be declared, worse than being null. My code is: if (child["readable"] == true){ // this Sprite is activated for…
Robin Rodricks
  • 99,791
  • 133
  • 372
  • 575
27
votes
9 answers

responsive sprites / percentages

I've read every single question about responsive sprites using css, I saw jsfiddle with working examples of responsive sprites, but I still cannot understand how to get the percentage of background-position and of background-size, how to use a…
user3097405
  • 783
  • 1
  • 6
  • 15
1
2 3
99 100