Questions tagged [sprites]
A 2D rendering of an object in space. Sprites are two-dimensional bitmaps that represent objects or entities in a game and populate larger scenes.
1,171 questions
0
votes
1
answer
59
views
Rendering Sprite from tightly packed atlas onto RenderTexture
I'm currently working on a Unity BepInEx Plugin that should allow users to customize certain textures in the game. As part of this, I need to extract sprites from a sprite atlas into individual ...
3
votes
0
answers
140
views
Displaying pixel art at any resolution with subpixel movement
The Goal
I have a game in Unity which utilizes pixel art. I'm not following the standard rules of pixel art, however. I'm ok with sprites having different sized pixels, pixels rotating, and pixels not ...
0
votes
0
answers
148
views
Why does a sprite with a larger texture render faster?
While drawing a map for a game in Pygame, I encountered a strange problem. Loading my grass sprite, which is a little over a kilobyte, and placing it, the FPS dropped by half. However, replacing the ...
1
vote
0
answers
63
views
How to hide a Sprite unless it is illuminated by a Light 2D?
I want to have a sprite that is invisible when outside of light, and visible when inside of light.
I created a new Custom Lit Shader Graph in Unity 6 with the following setup:
I then created a player ...
0
votes
0
answers
56
views
Blurry Board Game Node Images in Unity (UI & Sprite Issue)
I'm developing a board game in Unity and facing an issue with image clarity. The board consists of multiple nodes, each displaying a 480x600 px image. However, these images appear blurry and ...
1
vote
1
answer
667
views
Why don't more top-down 3D games use an oblique projection, instead of tilting their models and sprites?
I'm making a 2D game in Unity that is set-up in 3D similarly to Enter the Gungeon, where I have an orthographic camera rotated 45 degrees. This makes sprites look wrong and I've seen two main ways to ...
0
votes
1
answer
158
views
How to make objects appear on the map at a certain distance based on scale?
Mode7 - Sprites on Screen / Pseudo 3D
Scale x1:
Scale x16:
I'm trying to recreate this system with JAVASCRIPT:
https://github.com/vinibiavatti1/Mode7/blob/master/src/mode7/FlatModeSeven.java
The ...
0
votes
0
answers
57
views
Making Unity Particle System emission rate scale with Sprite "area"?
I'm using a Particle System with the Shape in the shape module set to Sprite Renderer, and the Type set to Triangle.
As far as I can tell, the default behavior is for the Particle System's emission ...
0
votes
0
answers
102
views
Merging sprites to be used as a single tile
I am attempting to make a CompositeTile out of 4 sprites (one for each corner of the tile) that can be used as a single Tile ...
0
votes
0
answers
25
views
Unity 2d Isometric Game - Sprite Overlap issue [duplicate]
I'm making a 2d isometric game in Unity, but my sprites don't render well when they overlap.
For example, in this image the skeleton monster renders behind the dragon, but in an isometric view we ...
0
votes
2
answers
256
views
How to set ordering between Sprites and Images?
Assume that you have an Empty Object, which holds a Canvas. This canvas has 2 Image component, Background and ScoreUI. Background is just an image for background, a nice picture. ScoreUI is aimed to ...
1
vote
0
answers
151
views
Multiple Shaders With Sprite Batching
I have coded a game in OpenGL and for rendering I used a Sprite Batching technique to draw many sprites in a single call to glDrawElements(). But as soon as I ...
0
votes
1
answer
292
views
How to prevent Sprite3D from clipping into nearby objects?
Gotot 4.2
Sprite3D is very useful for representing 2D objects within the gameworld. However, when billboarded (Y-billboard), 3D Sprites are prone to clipping into the floor/walls/other 3D models they ...
0
votes
1
answer
112
views
Sprite goes slow with some keys while withh others faster
I'm making a SDL and C++ game engine and I don't know where I'm failing. Here iss my code:
Game.cpp
...
1
vote
1
answer
579
views
How to use Subviewports to render a texture for Sprite3D?
Godot 4.2
Background:
In my game prototype, I have a following player entity:
Paperdoll2D has a script that dynamically adds the weapon/armor/etc Sprite2D nodes to the main sprite to "dress-up&...
0
votes
1
answer
67
views
1
vote
1
answer
96
views
How to detect colored pixel of Sprite3D texture with perspective camera ray?
I've tried to ray cast my mouse position to Sprite3D on screen but I have some problems with it.
...
0
votes
1
answer
105
views
Sprite chasing a target using move_towards_ip does not move
I'm trying to get a turtle sprite to chase a falling algae sprite utilising Pygame's inbuilt functionality. I have spent many hours reviewing questions and answers and suspect I'm missing some ...
0
votes
2
answers
813
views
Adding text label to sprite
I'm completely new to Unity. I'm trying to create something similar to Scrabble.
I've simply got a tile as a sprite (red arrow).Firstly, I don't understand it being so small.. I'm trying to give the ...
0
votes
1
answer
367
views
How to process tiles of different sizes?
I have next problem.
Sprite sheet that I have has sprites of different sizes. I use 16 pixels per unit.
On the screen you can see a choosen tile and that it's height is 14 pixels. I can't resize it ...
0
votes
0
answers
148
views
Fill color on an empty space on a sprite
I'm trying to make a coloring game, of which I already have a drawing (outline) of an object - let's say a face of a dog. How can I do it that whenever I click for example the eyes, it will "fill&...
1
vote
1
answer
1k
views
Draw a sprite x number of times in GDscript
Ok this has stumped me. In Godot 4.x, how do I programmatically (GDscript) draw a sprite x number of times (with an offset)?
I can manually add sprites in the editor over and over again. Only I don't ...
0
votes
0
answers
98
views
In Unity, how do I get a specific texture in runtime from .psd file rather than its whole entire texture?
I'm trying to recreate the current texture on a SpriteRenderer's sprite in order to make it bigger so that I can add a white outline to it. This is all done on runtime.
If we look at the .psd file ...
0
votes
0
answers
53
views
PolygonCollider2D components do not work properly in iOS build
I'm trying to figure out why my polygon colliders default to pentagon shapes when I build my app and test it on a device.
I have a scene with some blocks you can drag around where the colliders work ...
0
votes
1
answer
469
views
floating damage text in 3D
followed this tutorial : https://www.youtube.com/watch?v=UlvBqz8bhCo
the guy is working mostly in 2D, i tried to apply the same method but I'm hating working with UI in godot, everytime I seem to get ...