Questions tagged [sprites]

A 2D rendering of an object in space.

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

Unity: How to Swap sprites when hover over particular area [closed]

Hi i'm a rookie who doesn't know how to script, so please help. I'm trying to make a User Interface (project is in 2D btw) with three rows of buttons and a sprite/image to its side (decoration only). ...
-1
votes
2answers
27 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 ...
1
vote
1answer
41 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
22 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
51 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
44 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
33 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
23 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
15 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
85 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
83 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 ...
0
votes
2answers
156 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
71 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
24 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
66 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
23 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
29 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
75 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
62 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
75 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
21 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
230 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 ...
0
votes
1answer
58 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
24 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
51 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
92 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
98 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
103 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
149 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
31 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
396 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
329 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
50 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
12 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 ...
0
votes
0answers
84 views

Unity Sprite Atlas artifacts

I want to use the Sprite Atlas in Unity for enhanced rendering performance, but everytime I try to pack sprites into the atlas they appear with severe artifacts. As you can see, there are blocks of ...
0
votes
0answers
14 views

Unity Animating Function Calls

I would like to use the Animator for calling a function at certain intervals. I have a function that changes sprites of an object and also does a couple of other things, that cannot be simply added ...
2
votes
1answer
64 views

Making my characters modular

I'm making a school-based sandbox adventure game in Unity. I need a lot of NPCs with different apperances. I dreaded this since I don't have fun doing art and it is usually the reason I end up ...
1
vote
0answers
82 views

How to make a sprite above my character appear on the minimap attached to the floor?

I have a project where I made 2 minimaps. One of minimaps is linked to the character of my project and the other to the floor: As I already said in the title of the question, my character has a ...
0
votes
0answers
17 views

What image size/resolution is best for a 2D Mobile Dress Up Game [duplicate]

I have begun the process of making a 2D dress up games (i.e. Pastel Girl and Cute Girl Avatar Maker). Majority of the tutorials I have seen always include things like game physics, but I don't need to ...
0
votes
1answer
302 views

Unity - SpriteRenderer. Trying to make sprite from code using Texture2d.whitetexture

I have been trying to write a method that fills a rectangle with a color. I've tried it as a new 2D and 3D project just in case, but this gives the same results. Basically, i want the script to make ...
-1
votes
1answer
33 views

how to set the first color of the list in the sprite

...
0
votes
1answer
58 views

How to render a trimmed sprite?

I used TexturePacker to create an atlas for me and I've read it into my game. I can use unrotated and untrimmed sprites and it works fine. Now I would like to support trimmed sprites and I'm running ...
0
votes
1answer
186 views

How to cut polygon shape sprite in Multiple Sprite Editor Unity

Here is a sprite I have taken from internet and trying to slice it out in many smaller pieces. But the problem is I have polygon shape sprite, how to cut it out, selected in picture ? Rest are ...
1
vote
1answer
107 views

My position is “changing” when handling animation

I'm trying to learn Monogames(Old XNA) and how to develop a 2d game. I'm in the process of animating my sprites. It works but there are somethings that are weird to me. For some reason when ...
0
votes
0answers
59 views

Draw sprite outline with sprite renderer in opengl

I'm using a scenegraph with the visitor pattern to draw sprites in my 2D GameEngine. It works great. Now I'd like to render the lines of the cube the sprite is rendered onto. ...
0
votes
2answers
88 views

SFML - How to animate two Sprites with the same Clock?

I'm making a basic Street Fighter style game in SFML, and I use Clock and Time() from SFML to time the animations. Here's the ...
0
votes
1answer
46 views

How does one get sprites to hide/unhide using OnMouseDown() in Unity?

I'm right now using Unity for a school project and I need to be able to hide and unhide sprites for "expansions". I've looked all over the internet for this and I can't seem to find an answer. Here ...
3
votes
1answer
342 views

Workflow for authoring hitbox data for a 2D fighting/platformer game

I understand that collisions in fighting games are detected using hitboxes and hurtboxes associated with specific frames of the animation I am looking for techniques to author the data for these ...