Questions tagged [sprites]

A 2D rendering of an object in space.

Filter by
Sorted by
Tagged with
2
votes
2answers
108 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
34 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
414 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
29 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
85 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
186 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
26 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
417 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
274 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
115 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
1k 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
39 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
264 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
108 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 ...
0
votes
2answers
476 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
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
1k 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
101 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
596 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
186 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
108 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
3k 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
367 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
140 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
132 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
33 views
0
votes
1answer
80 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
171 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 ...
3
votes
2answers
4k views

Is it possible to apply a texture to a 2D-sprite in unity 2-d?

I want to take an (animated) 2-d sprite and apply a texture to it. Basically, I want every non-transparent pixel to be covered by the texture (color is disregarded). I understand I can probably ...
0
votes
0answers
64 views

My sprite walking animation code doesn't work at all

This is my first time doing code for a game so I followed some online tutorials. When I got to the walking and the jumping animation I just can't get it to work whatever I do. I tried multiple codes ...
3
votes
1answer
628 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 ...
0
votes
1answer
133 views

How to rotate two textures at once in Libgdx, while keeping their relative positions the same?

I am trying to develop a game with cards, where the user can swipe left or right to tilt the cards like this. The red & white cross should stay in the same position on the yellow card as they tilt ...
1
vote
0answers
98 views

Junk movement with steady 60fps on Web canvas

I'm new to building games on canvas, and I'm trying to create one. But I encountered a problem with sprite movements. My sprites move is smooth, but sometimes it starts to "jump". FPS is stable 60 ...
0
votes
1answer
114 views

How to scale a sprite on x axis to touch the point without changing pivot?

I have a sprite. The pivot is at random point. I want to increase the sprite's scale on the x axis, without moving the pivot, until its edge touches a point at right. I have a method to set/add size....
1
vote
2answers
463 views

Unity 2D rigging parts order

Hello I have some 2d character in sprite I've rigged to use in Unity 2D.Something like this, with separate body parts. Although I've used weights and geometry, these body parts are supposed to move ...
5
votes
2answers
11k views

2D animation example in pyglet (python) looping through 2 images/sprites every x seconds

Suppose you have two images: step1.png and step2.png . Can anyone show me a very simple example in pyglet how to loop through ...
0
votes
2answers
94 views

I need to move a sprite from point A to point B. I have objX1, objY1, frames, and X2, Y2

I have a custom sprite class in Unity and I'm trying to make a method in where it moves from one point to another. Instead of using an Enumerator for time, I'm using real time game frames using static ...
2
votes
1answer
2k views

Cocos2D - Fill a Sprite with a pattern

I have a CCSprite with a certain shape in Cocos2D and I would like to fill it with a pattern, as seen here: I've seen a lot of examples where they fill a rectangle with a pattern, or even a ...
2
votes
1answer
69 views

Why does my sprite shifts position on specific animationframe?

I have created a spritesheet to create animation. Everything is working fine untill I come to a specific frame in one animation. I have currently 3 animations loops Idle Animation Moving Animation ...
0
votes
0answers
362 views

Why are pyglet.image and texture so heavy?

Envrionment: python: 3.6.6 pyglet: 1.3.2 Here is my code and results: ...
0
votes
1answer
53 views

Unity2D: Sprite Mesh Lighting Issue

I am trying to make my 2D mesh render sprites with the same brightness as the original file. On the below picture, the mesh on the left is darker than the UI Image on the right, which is an exact ...
0
votes
1answer
472 views

How do I draw 2D sprites from a sprite sheet in DirectX 11 without ghosting/artifacts

I'm new to DirectX and I am trying to get my feet wet by making a simple 2D game. I chose DirectX 11 and am using the DirectX ToolKit helper library which recommended I start with DX11 and not DX12. ...
0
votes
1answer
213 views

Sprite Management

I'm working on a game right now using my own engine. In the engine, I have a State Machine which handles input for, updates, and draws the current State - the one at the back of the vector. The game ...
2
votes
1answer
2k views

Unity – How to keep sprites sharp and crisp, even while rotating

How can I maintain crisp, sharp edges on sprites, while avoiding the aliasing caused by rotation? None of the things I've tried produce a pixel-perfect non-rotated block, while allowing rotation ...

1 2
3
4 5
21