Questions tagged [sprites]

A 2D rendering of an object in space.

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

How to create a 2D Polygon Sprite from prefab at runtime?

At start of my 2D unity game I want to create a new "building" (at random). So I created a prefab named "Building" from a polygon sprite. Then I created a "Empty Game Object&...
1
vote
0answers
27 views

How to decide sprite size for isometric tile textures?

When I draw these textures on screen, I put them in a sprite and specify a width and height to draw the sprites in like this: ...
0
votes
1answer
17 views

How to change a sprite via script at runtime when using an animator?

I am making a simple 2D shooter. I have my character's body and head as different objects, as I want him to look up/down regardless of the movement. So, I basically use the following script: ...
0
votes
0answers
23 views

Can the particle system in Unity select sprites from a spritesheet based on angle?

I want to create a particle system for gore effects. I have some requirements that don't seem possible with Unity's built-in particle system, but I want to make sure I haven't overlooked something. So ...
0
votes
1answer
22 views

Unity Animation Controller and walking diagonally keeps switching between the two diagonals?

Using Unity 2019.4.1f1 Personal. I have the above Animation Controller. When only walking in one direction at a time and when you stop you stay facing that direction, this works as planned. All of ...
0
votes
1answer
19 views

Unity - Sprite vertices in 3D world

Rookie here, still learning the basics of Unity. I've been using a quad as a cursor sitting flat on top of a hilly terrain mesh. I've been getting the terrain angle by raycasting down at all four ...
-2
votes
0answers
26 views

How to make my sprite shoot fireballs (bullets) in pygame?

This is my Sprite1.py program which I import to my main.py program. It contains all the classes I use in my main.py. I tried to create bullets based on a program I saw online but it doesn't work for ...
0
votes
1answer
9 views

unable to see sprite in scene Getting error as floating point precision limitation

I am trying to create game object by dragging image from project window to scene I am getting error as due to floating point precision limitation- it is recommended to bring the world coordinates of ...
0
votes
1answer
31 views

Animating MultiPart 2D Character with RigidBodies

Some background to the question: I am attempting to animate and control a large multi sprite 2D Boss character for a platforming game. Up until this point I had been assigning individual animators for ...
0
votes
0answers
29 views

Is there any way to automaticaly rig a sprite?

I'm making an AR test where the player takes a photo, them i get the bones from the pose and set a t-shirt sprite's bones position to match the ones from the photo. I was wondering if there's any way ...
0
votes
0answers
26 views

Sorting armor sprites over body sprites in 3D

I'd like to use sprites for my characters in a 3D game world, but I'm having issues getting them to cooperate. I want to have my characters to have outfit/appearance customization options, and so to ...
0
votes
1answer
29 views

Character Action Sprite Framelength of Late-90's Something, Industry Standards of that Era?

I'm making a 3d character that emulates a sprite. The game as a whole emulates the feel of a classic RPG game. Old games like Ultima Online, or Diablo...or similar late-90's generation... For an ...
0
votes
0answers
23 views

Unsure how to change sprites in an animation (Unity)

I'm using Unity 2019.3.13f1 to make a 2D game with friends and I am looking for help with changing sprites so that different characters can look different. Currently we have sprites for hair, heads, ...
1
vote
0answers
20 views

Drawing sprites to the screen in 65816 Assembly

I am trying to create a SNES game in assembly on the WLA-65816 assembler. However, I can't quite figure out how to draw sprites to the screen or figure out what software to use. At the minute, ...
1
vote
0answers
50 views

Unity Shader-Graph randomly tiled sprite

Lets say I have a shader with a clean white tile. Then I use it on a wall and tile it a few times. I also have a sprite with numbers. Now, is it possible and if yes how. To put a random sprite ...
0
votes
0answers
31 views

How to create fog effect over specific tiles in dungeon game

I'm working on a game in unity and I have areas the player cannot enter blocked off by game objects that are animated sprites that are supposed to look like fog. They don't look that great and I'd ...
0
votes
0answers
42 views

How do you make lights affect 2D sprites in a 3D environment using Unity's URP render pipeline?

I'm using Unity, URP and have 2d sprites characters in a 3D environment. I want 2D sprites to be affected by lights/shadows like the rest of the environment. -I know if I use a 2D renderer I can use ...
0
votes
1answer
24 views

How to set the color of a game object as of the other?

I am 15 year old Indian student and I am creating my first 2D game in Unity. I have set the color of my player as Random and I have to set the color of my game object as of my player. But the color of ...
0
votes
1answer
92 views

Sprites draw-order sorting for top-down 2D game with floors and bridges

I am working on custom 2D engine for a game. I am having trouble figuring out a working system for sprite drawing-order sorting for this specific game. Game description: 2D Top-down perspective ...
0
votes
0answers
23 views

Animator prevents swapping spriteRenderer source sprites at runtime

Background: Unity 2019.3. I'm using an animator component on a parent gameObject to play animations involving multiple body part gameObjects with individual spriteRenderers (see below). ...
0
votes
0answers
30 views

Is using sprite sheets and drawing specific part the way to go?

I'm programming in Java. I have more than 200 MB of images used in my games, something like 100000 40x40ish images. I initially wanted to load them all during app initialization but it took like 2 ...
0
votes
1answer
28 views

how to join the body of snake in 2D snake game

i'm making a snake game in javaScript from scratch. The problem is that the snake looks disjoint(see image). How can I connect the body(rectangles) of the snake? here is the code of drawing snake: <...
0
votes
0answers
76 views

Prevent sprite from rotating with camera

I am creating a small 2d game and looking for a way, to prevent certain sprites from rotating with the camera. I could not find any settings that would allow me to do so, so my next best guess would ...
0
votes
0answers
23 views

In Godot 3.2.1 stable beta, in the 2D sprite shaders, how do I import a new PNG to test out those shaders?

I am using Godot 3.2.1. on Steam on Linux Mint. How do I take a pixel art image I've made and import it for using in Godot? I couldn't find it under Project.
0
votes
0answers
22 views

Creating a border on a tile?

I'm using Godot and I want to set an outline on the tile which is currently being hovered over, but I'm not sure whether to do it as a seperate tilemap which is hidden until it is hovered over or just ...
0
votes
2answers
88 views

Improving shading of procedurally generated pixel art sprites

I've been working on a sprite generator and I'm having a hard time figuring out how to add shading automatically. Here are some examples of the generated sprites Currently what I'm doing is checking ...
1
vote
0answers
29 views

Adding underwater shadow to 2D top down boat

I have a boat/hovercraft sprite in my game. It's topdown 2D view, but it's actually a 3D scene, for better lighting and other effects. I want to add a buoyancy effect, so that the hovercraft floats ...
1
vote
1answer
50 views

See through sprite?

I used gimp to make a newspaper front page. When i import it into unity3D as a png and then rotate it you can see the print on the front reversed as if the newspaper was see-through. I had the same ...
1
vote
0answers
22 views

Artifacts on top of platform sprite only when moving

I made a floating platform in Unity which has a propeller movement animation. I attached a script I wrote to the game object that adds slight vertical and horizontal movement using the game object <...
0
votes
1answer
18 views

Make non-sprite render in front of sprite

How do I make the non-sprite (BasicSpellProjectile) render in front of the sprite (Tower 2)? Note: The camera is located at z=-10. The z positioning apparently ...
0
votes
1answer
42 views

Remove Sprite Shape Controller Icons from 2D sprite shapes

How do I get rid of those "purple icons in my scene"? They are so annoying ... they literally covers the entire 2d shape! GIF showcasing it
0
votes
0answers
17 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
60 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
14 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
20 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
15 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
151 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
37 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
26 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
182 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
42 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
43 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
197 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
38 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
23 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
40 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
161 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
119 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
57 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
2 3 4 5
21