Skip to main content

Questions tagged [sprite]

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

0 votes
1 answer
52 views

Pygame - Load letters and display text for an image

I'm following Tech with Tim's guide on how to create a platformer game link I created a function to load letters from a sprite image, based on his load_sprites function: def ...
Avi Michaely's user avatar
-1 votes
1 answer
48 views

Having Trouble making a Simple Dress Up Game in Pygame [duplicate]

I'm trying to make a simple dress up game where there are three buttons. Depending on which button you press, you can put either a pink, blue, or green shirt on a mannequin. However, my problem is ...
Mateen's user avatar
  • 1
0 votes
0 answers
33 views

I can't remove the gaps between the edges of the cube in a sprite made from an SVG image

Most learned friends I have an SVG cube icon. I made a sprite out of it, but there are gaps between the edges of the cube that take on the background color of the div in which the cube is located. How ...
Evhen Bezliudnui's user avatar
0 votes
0 answers
10 views

wrong update ("move") function of endboss laser, please help me to correct it (python / pygame)

I'm programming an endboss for my space invaders game. I don't provide the full code of my game, but just the part I've got problems with. (It would be to much content and it would be hard to ...
jörg's user avatar
  • 21
-1 votes
0 answers
28 views

Why seperate ways of drawing images to screen in pygame [duplicate]

I'm currently following "Python crash course" in an attempt to learn python. In the book one of the projects makes an alien invasion game using pygame. I'm a bit confused about different ...
DeirdreRodgers's user avatar
-1 votes
0 answers
32 views

sprite that doesn't rotate properly [duplicate]

I'm creating a game with some friends and... we're stuck on the rotation of an image. I have a sprite, with an image, and I want to rotate it this way. (1= 0°, 2= 90°, 3= 180°, 4= 270°) What happens ...
Titoufire's user avatar
0 votes
0 answers
22 views

How to use updateTransform to do something every frame/render WITHOUT moving the sprite? (or is there a better callback?) (Using ReactPixi)

Pixi.js added an onRender callback that is called every frame in v8, however ReactPixi seems to only have support for Pixi.js v7, so I have to use updateTransform. (I'm using ReactPixi). The ...
Sprinkle's user avatar
0 votes
0 answers
40 views

Simple Sprite Animation Not Playing As Intended

I have a simple animation for lava that I want to play. Ideally, it should play only when visible on the screen, BUT for now, it is set to always animate (screenshot attached). Each Lava Pool has 1 ...
Astantos's user avatar
  • 121
0 votes
0 answers
57 views

Enemy Bullet group sprites are not displaying on screen [duplicate]

For some reason the update() method and draw() method of the sprite.Sprite.Group() not working correctly, both methods are working for the player_bullet and other sprite groups that I create, but the ...
Amirali's user avatar
  • 11
0 votes
1 answer
53 views

Shrink a rotating object up to point

I have an object (orange) that is tied to a hinge joint (black) and can rotate around it. At some point when I detect collision with other object I have to cut it there (red). In order to do that I ...
flowerProgrammer's user avatar
-1 votes
1 answer
56 views

Trying to make an Isometric game without isometric tile rendering [duplicate]

I am a high school student programming a pygame game for a school project that is due in about a week and a half from now and my problem is if I am able to create an isometric game but instead of tile ...
Y-Orozco's user avatar
0 votes
1 answer
55 views

SpriteRenderer changing sprite on runtime not working in android build?

If you try creating test scene, with a simple script to change sprite every a period of time. The sprite doesn't change, but if you try to log the changed sprite name, you'll see it has changed ...
CODEHUB's user avatar
  • 542
0 votes
0 answers
32 views

How to crop part of an image in SDL2

I'm working on a raycasting engine in C using the SDL2 library. I figured out how to render sprites by loading in images like this: void draw_sprite(SDL_instance map , SDL_instance display, ray *rays) ...
gnxrly's user avatar
  • 1
1 vote
1 answer
47 views

Randomly Choose Animation in an Animated Sprite

Firstly, gotta make sure AnimatedSprite2D is the right node to use. I'm making one of those random clicker games where you click a button and get a random chance of getting different items. I need ...
Owen Uhl's user avatar
0 votes
1 answer
39 views

SVG Sprite still working even after removing object

In my index.shtml I have <object data="icons/svg-sprite.svg" type="image/svg+xml" width="0" height="0" style="display: none;"></object> ...
Jawad's user avatar
  • 6,562

15 30 50 per page
1
2 3 4 5
318