Questions tagged [sprites]
A 2D rendering of an object in space.
1,038
questions
-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
vote
3answers
4k views
Multiple Sprite animation layers overlayed in Unity Animator
I have an animator with two layers, an axe layer and a body layer.
I would like to animate the two in sync with each other. They are both 64x64 sprite animations, frame-by-frame bitmaps.
The ...
1
vote
2answers
271 views
How can I flip a sprite in SFML?
I am facing the same problem although the sprite flips but only one time after that it does not flips at all.
Here is the code snippet:
...
0
votes
0answers
319 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
204 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
119 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
552 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
52 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:
...
1
vote
1answer
732 views
unity how to automate changing sprite editor setting
I have a bunch of hex tiles that I want to import into a tile palette. However their pivot point needs to be set to y 0.35 when the default is 0.5
I could edit the import settings in the sprite ...
1
vote
1answer
3k views
Problem with preloading plist file in Cocos2d-x
I am using Cocos2d-x engine with 3.2 version.
In my splash screen I am prefeching a plist by below line
...
-1
votes
2answers
77 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
305 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
63 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 ...
0
votes
1answer
226 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 ...
1
vote
1answer
86 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
56 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
1answer
22 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
126 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
35 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 ...
2
votes
2answers
1k 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
574 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
30 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
89 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
1answer
255 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 ...
0
votes
0answers
28 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
32 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 ...
0
votes
2answers
472 views
Element's texture is null - Monogame/XNA, C#
I have a ArgumentNullException everytime I try to call the Draw() method of my Projectile class in the Game1.Draw() method.
In Game1.cs Initialize() method:
...
0
votes
2answers
396 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
0answers
126 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 ...
3
votes
2answers
2k 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
0answers
45 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
285 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
110 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
1answer
1k 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 ...
1
vote
0answers
35 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....
2
votes
1answer
2k 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 ...
0
votes
1answer
120 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 ...
1
vote
1answer
2k 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 ...
2
votes
1answer
646 views
Sorting sprites above the surface of 3D mesh?
I'm having trouble getting sprites to display on top of a 3D mesh. My requirements are as follows:
Sprite should billboard
Sprite should not clip into the mesh
Sprite should be hidden when on the ...
0
votes
0answers
215 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 ...
1
vote
0answers
120 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 ...
4
votes
2answers
4k views
2D game background art and assets, sketch / drawing size and resolution for a 1080P PC Console game?
I am a new game developer, working on a 2D platformer game.
I am working with my friends who can make sketches on paper and import them to Photoshop to paint, as none of us have worked on an actual ...
0
votes
1answer
428 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 ...
2
votes
1answer
205 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
1answer
145 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
1answer
1k 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
34 views
0
votes
1answer
95 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 ...
2
votes
3answers
1k views
Gamemaker Running Animation Flashing, showing single frame, and displaying jump and run sprites at same time
EDIT: I changed the origin of the run sprite to the center, and it is no longer hovering above the jumping sprite. It now flashes in the same location as the run sprite when moving to the side. ...
0
votes
2answers
203 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 ...