Questions tagged [sprites]

A 2D rendering of an object in space.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How do I calculate sprites/frame usage on my platform's ram?

I plan on building a 2d game for mobile and possibly pc. I also plan on using sprites/frames for the animation of my 2d game. What's stopping me from doing so is because I can't figure out if the ...
2
votes
0answers
42 views

Are there any good techniques for reducing or smoothing stutter after a longer frame?

I've been using SDL2 with OpenGL to play around with some very basic game engine development. I'm running everything on a newer laptop with Linux and Intel integrated graphics. Regardless of whether ...
0
votes
0answers
12 views

How do I rotate a Fan Sprite with a very low resolution? (I dont know how to draw a rotated fan) [duplicate]

So, I have a fan image: Upscaled: And I want to rotate it for a texture Im working with, specifically a computer fan cooling a server box in a game model. Im having trouble getting a good look with ...
1
vote
1answer
19 views

Rotate Sprite in direction it is moving while beeing dragged

I am working on a 2D topdown game where you have cars you can drag around. you can touch any given car and move it around. This kind of works but when I drag a curve the sprit of the car does not turn ...
0
votes
0answers
12 views

Drawing modular tilemaps in photoshop

What is the common way of drawing modular sprites in photoshop? Do you draw the entire tilemap in one photoshop project and then slice it, or do you draw individual sprites per project? End goal is ...
0
votes
0answers
36 views

How can I remove a sprite from the screen using pygame?

I am having trouble with removing sprites on my screen using pygame. I am killing my sprite with sword.kill which is removing it from an all_sprites group, so it should disappear right? Here is ...
0
votes
0answers
29 views

How do a make a smooth animation with images of different sizes in pygame?

I have an animation where my player swings his sword, with 5 images in pygame. The normal resting image is 14x22, and the rest are 13x23, 21x23, 18x23, and 18x23. I am having trouble with my character ...
0
votes
0answers
23 views

UE4 dynamic sprite creation

This concerns UE4.24: I've been trying to create a new Paper2D sprite from scratch during runtime. I've come as far as importing the .png and turning them into a texture, which works beautifully. ...
0
votes
0answers
63 views

Cannot select bone influence in Unity

In my sprite editor, under the weights menu, the option for bone influence appears kinda faded and I am not able to select it. Unity is also not generating automatic weights around my bones for ...
0
votes
0answers
23 views

Is there any way to move the sprites inside the sprite editor?

I have imported a .png file of a stickman in which I had placed his head, body, two legs, and two hands a bit far apart from each other so that Unity will automatically convert the picture into ...
0
votes
0answers
22 views

Sprite Distortion (Ghosting While Moving and Artifacts when Mirroring to External Display)

I am working on my first MonoGame project. I love the framework so far! I have implemented my own letterbox/pillarboxing to scale my native resolution by the maximum integer scale allowable on my ...
0
votes
2answers
105 views

Is it possible to detect a collision between a sprite and a UI image in Unity?

I have a stationary sprite with the tag "Player" with a Rigidbody2D (dynamic body type and discrete collision detection) and circle collider 2D. I also have a moving UI image; also with a Rigidbody2D ...
0
votes
0answers
28 views

Generating a sprite using a list of points

I am trying to dynamically generate a sprite in Unity to visualize a list of points. What I've got so far is creating a small Texture2D object and then trying to override the geometry: ...
0
votes
0answers
22 views

How to animate two or more unrelated properties on a sprite GameObject using animation layers?

I have a sprite in Unity 2019.3. It is animated like so (with provided mockups): Its base animation is just one frame; i.e. it has the same Sprite whether idle or ...
-1
votes
1answer
24 views

Changing sprites on trigger collision

Sitting here at a game jam trying to make a game where i need to change a sprite when the ball hits a trigger. If anyone could help me with some of the coding needed you would have my sincerest thanks....
-1
votes
2answers
33 views

Unity: RigidBody2D, Trying to Set rb;

So for Unity I've been trying to to do the code line public RigidBody2D rb; I've followed the gmetrix unity programming course and they do that just fine with the ...
2
votes
1answer
88 views

Godot 3.1.2: Black lines / borders around Sprite

In Godot 3.1.2 using OpenGL ES2, black borders/ lines seem to form around some sprites I have imported. Usually they appear on top of the sprite but can also "border" around it. Being new to Godot ...
0
votes
1answer
56 views

Unity LWRP Sprite Renderer Sorting incorrectly after upgrading

I'm making a project where every tile is a sprite renderer, this would work fine in the old unity system (from the fact that it used it until recently), but upgrading to the LWRP broke the sorting of ...
0
votes
1answer
55 views

How is actual object size in a scene calculated?

I've got stuck with 'pixel per unit' parameters and object scale. I've created two different sprites. A background picture, 1000x1000 pixels, and another one for a 'player', 200x200 pixels. I've ...
1
vote
0answers
48 views

Can I use trilinear filtering for my sprites, but keep their outlines unfiltered?

Suppose that I have two images of equal size. They both contain a square: https://i.stack.imgur.com/BI62X.png https://i.stack.imgur.com/Nev5Z.png When overlapped, both squares will appear next to ...
0
votes
0answers
35 views

How to make the intersection area of sprites transparent if they have the same color?

There are several sprites of shapes in different colors. I can move these shapes. When I move them, I want the intersection of two shapes of the same color to become transparent. As far as I ...
0
votes
0answers
24 views

Sprite alignment in my sprite packer

I am creating the "perfect" sprite packer. This is a sprite packer that makes sure the output sprite is fully compatible with everything. It converts (if needed) the source frames to BMP in memory It ...
0
votes
1answer
16 views

Fill with Transparency in Built-In Sprite Editor

When I imported an image for a sprite, I realized it had a white background. I went into the built-in sprite editor to remove it. I tried using fill as there was a transparent color in the color ...
2
votes
2answers
91 views

How to display and hide complex object part in 2.5D

I am working on a 2.5D mechanical app. I use 3D software like Blender to render the 3D model to create the 2D assets for the 2D game engine (which's cocos-creator , but it doesn't matter for this case)...
1
vote
0answers
33 views

Blurry background sprite, other sprites fine

Why is the background blurry, but all the other sprites fine? The background sprite has the same settings as the others. It's on the same Z position (0). It happened after I made some changes to the ...
0
votes
1answer
186 views

Manipulating sprite shape rendered

I wish to create a game object where you can start dragging it by touching somewhere on the line of its collision and to create these "dynamic shapes" by stretching the sprites and readjusting the ...
2
votes
2answers
374 views

How to use Animation Player in Godot like Animated Sprite

So currently I am using the following code to play my sprites (AnimatedSprite Node). $Sprite.play("Animation Name") However now I want to use the AnimationPlayer ...
0
votes
1answer
143 views

Godot Animation only playing First Frame

I have tried checking if it is already playing, stopping animations before and putting it in a separate function. Whenever I jump it should play 4 Frames of my animated sprite. But it only plays first....
0
votes
0answers
26 views

Blurred sprite in Scene view

The thread between the tree and the spider here is a LineRenderer. When the BackgroundLandscape or the ...
0
votes
2answers
72 views

Pixel-perfect 3D sprite-picking on cylidrical-billboarded sprites?

Background Info I have an OpenGL app where a player (just an AABB with an eye-height, look and move vectors), can walk along a 3D grid made of a square cells, essentially like a player walking along ...
0
votes
0answers
24 views

Sprite getting cropped in play window

Video of behaviour: https://youtu.be/yC5m6k3jf2o The worm sprite in my Scene Editor is rendered correctly. When it's in the play window it's getting cropped on the bottom an right though/ I've ...
0
votes
0answers
30 views

Using 2d sprite characters from asset store

noob here So I recently downloaded this asset https://assetstore.unity.com/packages/2d/characters/2d-archers-sprites-18748 from the asset store. All the animations work great (walk, jump etc) but I ...
2
votes
2answers
277 views

How to Convert Sprite into Texture

I Have image with a sprite and i want to change this image sprite to Texture so that I can assign it to the material And i don't want to keep multiple copies for each image as a sprite and texture. ...
1
vote
1answer
67 views

How to Make Different Instances of an Object Have Different Sprites

In Game Maker, I am trying to make it so that three instances of an object have three different sprites. Using DnD, what would be the optimal way to do this? If it helps, the three instances are ...
1
vote
0answers
81 views

Flickering or jagged movements when sprites move along a curvilinear path

I'm making a top-down zoomable 2D game. I can't achieve a perfectly smooth curvilinear movement of the sprites, not even when I have a pixel perfect reproduction. I tried different approaches and I ...
1
vote
0answers
23 views

How can I edit multiple sprites in Sprite Editor at once?

I have 100 sprites in one atlas. I want to edit some of them with same values. For example, I want to edit sprite's position no 1 ~ 30. Do I have to edit them one by one? Is there any function like ...
2
votes
1answer
240 views

How to make Unity sprite animation not lerp?

I set sprite animation at key1 and key2. at Key1 : Position.x = 0 at Key2 : Position.x = 1 I want it not lerping. i mean ...
1
vote
1answer
70 views

Changing a sprite and adding a new background layer

I followed a tutorial to make a Flappy Bird clone. At the end he gives you a premade game so everything works correctly, from jumping to going through pipes, etc. I want to change the aesthetics ...
0
votes
1answer
44 views

Sprite is getting out of screen when changing resolution - Unity

Hello I am making this layout: I used sprites for birds but used UI for the blue food thrower. I used UI for it so it will not get cut when screen resolution changes. But I also need to add food ...
0
votes
2answers
98 views

Unity) What should i do if i want to change sprite animation in same action?

My character has Idle-Walk-Jump-Attack state in animator. and it can change its appearance when it gets an item. for example, it can equip sword or armor. and i need to change whole sprite. the sword ...
1
vote
1answer
181 views

How to make Sprites scroll with the background image that are inside Scroll View?

I'm new in Unity, so I hope you guys can help. I'm developing a 2D-game for Android device, on the scene I have a huge background image inside Scroll View (UI - Scroll View). Next, I created new ...
0
votes
1answer
234 views

Can I use different Tile/Sprite Sizes on the same Tilemap?

My partner and I are creating a 2D RPG with D&D elements with Unity. I am very new to Unity and making games in general, apart from 2 games which I created with Java and the rougelike tutorial ...
0
votes
1answer
106 views

Concerns about how to efficiently implement sprite atlas

I currently transform (translate, rotate, scale) a bunch of vertices in my own Java code, then populate an mPositions array and an ...
0
votes
2answers
210 views

Slicing irregular spritesheet (automatically?)

If found a cool sprite sheet on the internet but its irregular. Is there any way besides manually cutting sprites to extract the separate pngs? I need to pack them then again into the Texture Atlas ...
1
vote
0answers
33 views

How to run different animations with same suffix for different public objects?

I would like to be able to run the corresponding animation (ending with "Get" in the title) for whatever item GameObject I plug into this treasurebox. I made 2 prefabs for "item-get" animations today....
0
votes
1answer
42 views

Aligning animation frame assets with different sizes

I have code that changes texture in each frame depending on the player's state - walking, idle. My problem is that the idle texture (from separate png) has a slightly different size, and due to that ...
1
vote
1answer
674 views

How to load one of Unity's built-in UI Sprites at runtime?

I have some code that creates objects with an Image component, in which I want to replace the Source Image with one of the ...
1
vote
1answer
626 views

Sprite button not triggering “On Click()” event -Unity

Hi have created some buttons from sprite and I added image and button components on it. I am just using sprites because In my game the camera can be moved on x and y. But I don't want my button to ...
0
votes
1answer
63 views

Libgdx - Screen tearing (or artifacts) while in fullscreen

I have a problem with libgdx, fullscreen and what I believe is screen tearing or any other sort of artifact. In windowed mode, everything works fine, but when i switch to fullscreen, moving sprites ...
0
votes
0answers
13 views

How to keep player position after animation stage change it in Unity2D?

Having some difficulty implementing and figuring out how changing the position through animation should work ... I have a child object with a single animation that only changes the image (player ...

1
2 3 4 5
20