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
1 answer

I have problem with bullet motion in pygame

When i shot i can control bullet in a fly. How can i avoid it. I want to bullet moved and i can't control it. Maybe i should to fix my code. But i can't solved it. For example bullet fly to right but when i pressed keys K_LEFT the bullet changes…
Anton
  • 13
  • 3
1
vote
0 answers

Making an object fall the same amount it just rose after a set amount of time

I've coded this statement so when 'button A' is pressed the sprite rises 10 pixels. However I want to then bring the sprite down after 0.5 seconds. What I've tried means the man no longer jumps at all, could I have some suggestions on what to…
jim
  • 27
  • 2
1
vote
0 answers

how can i add velocity and friction to my physics bodies in cocos2dx

I want to move my carroms on hitting of the striker am using simple setVelocity but it looks like my carroms coins are floating in air on carrom board so plz help me to move smoothly them carrom board velocity of carroms void…
Shiva Yadav
  • 72
  • 1
  • 9
1
vote
1 answer

How to make a circular sprite appear - pygame

I need my sprite to appear in the pygame window. How do I do this? Important code: #This will be a list that will contain all the sprites we intend to use in our game. all_sprites_list = pygame.sprite.Group() #creating the player …
1
vote
1 answer

How to add key frames to a new animation file in Unity?

I'm trying to script an sprite animation event for my player's character shooting animation, where the first frame of the sequence is the only one shown when no bullet is shot, and when you shoot it plays the rest of the frames. I can see the…
TLSO
  • 322
  • 3
  • 17
1
vote
0 answers

IOS SpriteKit Blurred Sprite with TexturePacker

I'm doing a project with IOS Sprite kit (Objective-C), I use TexturePacker to make my Sheet/Atlas ,In my scene view I only display a Character animation nothing more but I have an issue when I display my Sprite it is blurry. The resolution of the…
1
vote
1 answer

How to move pygame sprite up

I am using pygame and following a tutorial HERE. I have the following code: import pygame import sys #Let's import the Car Class from player import Car pygame.init() GREEN = (20, 255, 140) GREY = (210, 210 ,210) WHITE = (255, 255, 255) RED = (255,…
Thomas
  • 1,214
  • 4
  • 18
  • 45
1
vote
1 answer

Name Error when trying to build a sprite using pygame

I am starting to use pygame. My first task is to make a sprite and to make it move. So far I am doing fine until I get the error: Traceback (most recent call last): File "C:\Users\tom\Documents\python\agame.py", line 33, in YOU =…
Thomas
  • 1,214
  • 4
  • 18
  • 45
1
vote
2 answers

Change Unity3D prefab image during runtime

I have an inventory of objects in a game, with image and description. To represent it, I want a scrollable list with a grid (made with a UI canvas with a scroll view inside), and every element of the grid is a prefab, composed by a UI Panel with an…
man-teiv
  • 419
  • 3
  • 16
1
vote
1 answer

How Do I Change Perspective Angles When Stacking Sprites?

I created a sprite stacking preview program in Python using the Pygame library. Offsetting a sprite sheet by -1 pixel on the Y axis creates a 45 degree perspective by default when each cell is stacked over the previous one. I can also get a 0 degree…
RenderG
  • 15
  • 5
1
vote
1 answer

Cmake error log while trying to compile aseprite

So I’m trying to compile aseprite on Windows, I’ve installed and extracted the newest version of all the necessary stuff following this guide https://www.youtube.com/watch?v=si7N0GeqOH8 and, of course, this one…
1
vote
3 answers

Unity 2D player movement

I had my unity movement working on my computer, however when i try to play on my android it is not moving for me at all. I am sure it is probably a small error i am overlooking but i would be very appreciative of any help! I do not get any errors…
EmmaGrealy
  • 43
  • 1
  • 6
1
vote
1 answer

Sprite support on BlackBerry

I am creating a game using the BlackBerry Java API. I want to show an animation -- can I use the sprite class? Is there any similar functionality avaliable in the Blackberry Java API?
SamG
  • 173
  • 1
  • 7
1
vote
1 answer

Sprites above sprites or Canvas as HTML background

I plan on using the coordinates of my sprites in a canvas to make a board game by making the canvas a background image. Here is the 8x8 board's js code. var canvas = document.querySelector('canvas'); var c = canvas.getContext('2d'); c.fillStyle =…
straycatxx
  • 11
  • 1
1
vote
1 answer

Rect won't update position when the sprite it is taken from moves

player_rect = Pfront_n.get_rect() Here 'Pfront_n' is a sprite, and I am getting a rect for that sprite. This is outside of the main loop. When inside the main loop, print(player_rect) shows that when my player moves, the rect doesn't follow. My…
Owen Penn
  • 163
  • 9