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

4792 questions
1
vote
0 answers

How do I track the movement of my sprite?

I have a program meant to simulate traffic and all process (movement, drawing new cars, responding to traffic lights) except tracking movement are working. I have used getter methods float getXposition(){ return x; } float…
1234 5678
  • 19
  • 5
1
vote
1 answer

getLocalBounds alternative for Text Objects? (SFML)

Trying to make buttons using SFML for Comp Sci final and really don't want to draw invisible sprites over every single button. I found some solutions but they were all using older versions of sfml and those functions have since been removed or…
Kelekom
  • 13
  • 4
1
vote
0 answers

Sprites displaying in front of FadeIn panel in Unity

I have sprites attached to a Panel. They are all on the Foreground Layer. I also have a Panel for FadeIn and FadeOut. That Panel is on its own FadeLayer which is in front of everything. The problem is that the sprites always show in front of the…
RayDart
  • 21
  • 3
1
vote
2 answers

Animating pieces of a sprite sheet in Cocos2D for iPhone?

I'm using Cocos2D 0.99.5 for iPhone in Xcode 3.2.5. There doesn't seem to be much useful information to animate pieces of a sprite sheet. This is all I'm trying to accomplish. A few attempts with info I found online are deprecated. I want it to…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
1
vote
1 answer

Image Sprites and Cross Browser Compatibility Issues

I'm having some trouble with the CSS in my site, both with image sprites and IE compatibility. Here is a jsfiddle: http://jsfiddle.net/lipestyle/EjQTP/7/ The two main problems are: In IE, the contact links at the bottom are not appearing in the…
Chris
  • 23
  • 6
1
vote
2 answers

Can you export sliced sprites (PNG images) in Unity?

So I have a Sprite 2d and UI in unity. (Png image) That contains many small images like buttons. So I slice them and I can use them individualy in unity. But the thing is that I want to export each of the png Images that I got while slicing them for…
Alex Rika
  • 141
  • 2
  • 14
1
vote
2 answers

Changing UI Image's sprite, preserve aspect ratio is checked but not working? Unity 2019.1.0f2

Changing UI Image's sprite, preserve aspect ratio is checked but not working. Version: Unity 2019.1.0f2 What happened I updated to the latest software update for Unity which is Unity 2019.1.0f2. Before when it was version 2018.3.12f, the UI Image's…
Amiel Basas
  • 11
  • 1
  • 5
1
vote
1 answer

Unreal engine C++ UPaperSprite Array?

I'm trying to put some sprite in an Array like in my blueprint enter image description here But it doesn't work and I can't find solution in UE4 documentation Whent I'm trying to do this: UPROPERTY() TArray spriteArray; I have…
1
vote
1 answer

How can I detect collision between two moving sprites?

I am trying to make it so when my player sprite collides with an enemy, the player is killed. However, my player only dies if the enemy happens to spawn at the same point as the player and not when the player moves about and touches another sprite…
domefist
  • 79
  • 3
1
vote
1 answer

How do you work with sprites, and why were they used so widely in older games?

My friend and I decided to create a platformer together as our computer science project. I am currently using an image function in p5.js library to swap between images and create animations for walking, jumping, etc. I looked up how it was done…
Vadim Kim
  • 129
  • 12
1
vote
1 answer

How can I make my player move whilst still being able to rotate?

I am currently writing a program for my first python game (a simple top down shooter) and I have so far gotten to here using tutorials and examples online to help me build the code. My character is able to rotate using vectors and that is all…
domefist
  • 79
  • 3
1
vote
2 answers

How to switch sprites when a collision occurs?

First: I´m totally new with programming and this must be an easy task so I hope you can help me to fix this while I learn from your approximation to this so maybe I can solve future problems in my beginner project. So I´m trying to make a gameobject…
Rob Acuña
  • 35
  • 8
1
vote
3 answers

Questions regarding CSS spritesheet (and somewhat about caching)

1) First, should I order the images in my spritesheet a certain way?(like biggest to smallest images, or images that appear at the top of the page to bottom of the page?) 2) Say I have a css spritesheet that contains before and after images. Like…
user657847
  • 153
  • 1
  • 3
  • 8
1
vote
2 answers

Python Space Invaders with PyGame Troubleshooting

I am working on a simple space invaders game with pygame and have been first creating classes for the different objects, or sprites, in my game. The goal right now is to create a character that can move back and forth on the x axis and shoot…
1
vote
1 answer

How do I move my sprite using the keybinds I have assigned?

The problem I have is that I have imported my sprite into my game, Its a still image and I want to move it, however I am having issues although I have an idea something in the mainloop must be changed, I am clueless on what exactly to change. The…