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.

Filter by
Sorted by
Tagged with
0
votes
1answer
80 views

In AGK2 Basic, how would I attach a camera to the player charater?

I've started making a game in AppGameKit and I'm using Tier 1/AGK2 Basic. I'm trying to make a sort of endless runner. I've made it so that the player stays still and the rest of the world moves ...
1
vote
2answers
551 views

Transition the scale of a sprite

I'm new to LibGDX but I am making a menu with some basic animation, I would like to start with a sprite scaled up and then it would transition to the normal size. Is it possible with LibGDX or do I ...
0
votes
1answer
211 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 ...
1
vote
1answer
685 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 ...
4
votes
1answer
124 views

Why use sprite tile maps on the GPU in WebGL?

I'm trying to figure out the best way of rendering my layered tiled maps with WebGL, and have come across this tutorial several times: https://blog.tojicode.com/2012/07/sprite-tile-maps-on-gpu.html ...
0
votes
1answer
95 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
27 views

Filling out letters from TMPro in Unity

I got this Japanese font called RampartOne-Regular and created several Font Assets for TMPro to use and so far it is running smoothly. The problem with this font in particular is that the fill of the ...
0
votes
1answer
103 views

How can I bake 2D sprites in Godot at runtime?

I would like to use the technique described here to create a player sprite with unlimited clothing and equipment options (like in Stardew Valley). To elaborate: I want to have a sprite sheet for the ...
0
votes
1answer
2k views

How to iterate a sprite group correctly in Pygame avoiding "maximum recursion depth exceeded"?

I'm making a game and I have almost finished it, but I'm usually finding the error RuntimeError: maximum recursion depth exceeded when I iterate a sprite group. ...
0
votes
1answer
74 views

How to create endless background in a 2d top down game?

I have a seamless background sprite, and I do not want the player to be able to reach the edge of the background. Setting huge width and height in tiled drawmode doesn't sounds like a solution. How ...
0
votes
1answer
10 views

Which are the corresponding parameters for rect and pivot in exporting an editor defined sprite, to be re-created using Sprite.Create?

Which are the corresponding parameters for rect and pivot in exporting an editor defined sprite, to be re-created using Sprite.Create? I've tried both .rect and .textureRect for storing the editor ...
0
votes
2answers
33 views

How to handle player slowness while moving up and down in a Top Down game with angled ortho camera and angled sprite due to stretching of ground?

So i'm making a 2D top down game setup in 3D using tilted Sprites and angled orthographic camera. My camera setup is as shown. In my game I have the floor flat on the X/Z plane with walls/characters ...
0
votes
0answers
37 views

match-3 Board border

I'm new to unity and I'm currently working on a match-3 game. I know there are a lot of similar games and that's why I would like to know what is the best way to autogenerate border of a match-3 board ...
-1
votes
1answer
43 views

Creating a background image with Photoshop for Unity

I'm making a home screen for my game. I don't know how to transfer a 2d image from Photoshop into a game that's on Unity. How do I import the image and make it visible in game? It’s a 3D game. I don't ...
-1
votes
1answer
51 views

How to make environment art like the building interiors in Digimon World 3 [closed]

I'm wondering how to create art like this (the map, not the characters), is this 2D or 3D?
0
votes
1answer
55 views

Stretch line on bow using touch

I have drawn a line on sprite representing the string of a bow. I want to stretch it with finger touch input, using onTouch. I have added a Physics body but I don't ...
0
votes
0answers
20 views

how can I recreate the transitions in Xybots when the character turns or moves?

Xybots is a pseudo FPS game akin to Dungeon Master on the Amiga. Instead of smooth movement in any direction in a game like Doom, your player is on a grid and can move only in four directions, and can ...
0
votes
1answer
145 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
1answer
349 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 ...
-1
votes
3answers
2k views

2D sprite is 'blinking' when animation is playing [closed]

When I fire a bullet, instead of frames 4 and 6, the sprite selector in the sprite renderer component says "Missing (Sprite)" and 'blinks' for a frame, not showing anything.
0
votes
1answer
49 views

I do not understand the code version of time based sprite animation?

I'm Universo and for the longest time had coding issues around the concept of time-based sprite animation basically, do not know how to implement it and any code or explanation simple or complex that ...
0
votes
1answer
193 views

How can I set up a 3D camera for a top-down game like Enter the Gungeon?

DodgeRollGames, the developers of Enter the Gungeon, tweeted that the game was in fact made in 3D They tried to explain how they set their camera in this reddit post. Basically what they said was : ...
2
votes
2answers
5k views

What is yet another explanation of the difference between sprites and tiles?

I'm making a game where it came to adding a base tile class, but I already have a sprite one, which does the same at first glance. Rasterizers are the ones I should have started with but I missed ...
0
votes
0answers
32 views

Layer sprites according to their vertical position

I need advanced blitting options in my game. It's a 2D game that has trees' sprites along with the player's sprite. I want that every tree sprite to be displayed either in front of or behind the ...
0
votes
0answers
97 views

Unity 2d Sprite Swap Help

i know that that's is a very old unity issue. I'm doing a 2d pixel art rpg and i want to sprite swap whenever the player gets an armor (helmet,vest,boots...). I created an empty gameobject and childed ...
1
vote
1answer
193 views

How to prevent a sprite to move in an angle that will lead to collision

I have two sprites that can move in any angle. The sprites are rectangular. I created bounding boxes for both the sprites. These boxes rotate whenever the sprite rotates. They always surround the ...
0
votes
1answer
52 views

How to keep objects in the same position relative to their parent?

I'm writing a simple game in C# and i'm having some difficulty to calculate the local position of a sprite. What i'm aiming to achieve: Calculate the sprite "local position" relative to the ...
1
vote
2answers
542 views

Loss in quality on downsized sprites in Game Maker

I'm having an issue with sprites quality in Game Maker. I have some sprites used for UI with an original size of 2048*512. I need to resize them in game to 512*128. But when I do, I got a loss in ...
-1
votes
1answer
30 views

How can I create a musical sheet using sprites?(Ocarina of time )

I am looking to make a musical sheet similar to the image below: I want to: use sprites prefabs have each sprite correspond to a different line Move down notes are more are being played have tail ...
0
votes
1answer
84 views

Why my canvas isn't showing anything after I put code in the loop for tile map?

My canvas stop showing anything when I want to display a tile 25 times. No errors. Here is the code: ...
5
votes
1answer
2k views

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone. Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq On the desktop ...
0
votes
1answer
314 views

Cocos2d-x setContentSize, setScale give poor graphic quality

I want to create sprite with size is relative to the screen size. I.e: Sprite size is equal to screen width * 0.2. I use setContentSize and ...
0
votes
1answer
32 views

Sprite transparency fails when rendered through shader

I am currently trying to implement a shader to a sprite of mine, but the transparency is completely removed when the texture goes through a Sample Texture 2D node. The sprite under the Sample Texture ...
4
votes
3answers
9k views

In what size should i design sprites for unity iOS? [closed]

I am developing a 2D platform game in unity.I have conceptualised the game and have to design the art assets/sprites, but the problem is at what resolution or size do i design them? If I target the ...
0
votes
1answer
80 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 ...
0
votes
1answer
61 views

How to select a sprite with the mouse in c# XNA?

I'm attempting to create a chess game, for the movement I need to be able to click on a piece with the mouse, and then the square I'd like to move it to. Each piece on the board is a sprite, and I'm ...
0
votes
1answer
7k views

Pygame - Increase and decrease the image size

I'm creating a 2D game where the player shoots cannonballs. To give the impression of movement, I want the cannonball to increase its size until half of the path, and then decrease it until it reaches ...
4
votes
2answers
4k views

In Ren'Py, how do I show a different image depending on variables?

At the start of my RenPy game, the player chooses a male or female character. The game plays out the same for both, save for some details. The problem is that I want to write: ...
0
votes
0answers
47 views

How to make under-construction sprites have blueprint graphics?

In my game, every placeable object and structure will only be placed as a blueprint, which the characters will then automatically build. An example from "RimWorld": Objects placed as ...
0
votes
1answer
16 views

SpriteAtlas's sprites not initialized in ScriptableObject?

I am trying to implement a simple abstraction over SpriteAtlas where I can simply request texture coordinates for a certain ...
0
votes
0answers
41 views

How many Sprite Atlases should be used?

I am using Sprite Atlases in my game to fix a bug with gaps between tiles as a result of oversampling, and I started wondering how the atlases should be used. What I'm asking here is whether I should ...
6
votes
4answers
10k views

Two sided sprites

What is the most efficient way of making two sided sprites in Unity's new 2D tools? I'm looking to make playing cards with a backside and a front side.
1
vote
0answers
59 views

2D Armor/Weapon System (Paperdolling)

I´m currently working on a 2D RPG where you should be able to compose your character from diffrent armor/weapon parts. For example the character can wear a "wooden helmet" and a "chain ...
1
vote
1answer
46 views

Making Sprite Movement Appear More Natural

Currently I have a 2D game in which the player and a computer controlled (non-player) sprite move from point to point collecting tokens in a continuous environment. The player and the non-player ...
9
votes
3answers
17k views

How to decompose sprite sheet

I have a lot of spritesheets that are poorly formatted that I want to decompose, or split out into many small images, one for each sprite. If I can do that, I can use my custom texture packer tool to ...
3
votes
3answers
6k views

Sprite sheet generator

I need to generate a sprite sheet with squared sprite for a 2D game. How can I generate a sprite sheet where each frame has x = y? The only think I have to do is to "insert" some blank space between ...
1
vote
1answer
54 views

Editing Pixel Art, Copyright and "The Ship of Theseus" Problem

(Please read the entire question before you crucify me :p) This is a question that has been on my mind for some time. Basically, How much of a sprite needs to be changed in order for you to claim &...
0
votes
1answer
26 views

text - part of the sprite or dynamically generated

I am trying to reproduce the same stamping tool as the one we found in the video game "Papers, Please". In my case I want my users to be able to modify the text they are going to stamp. I ...
0
votes
0answers
66 views

How to remove a sprite from a group?

I am trying to make a chess game with Pygame, but am unable to remove the chess piece when it is captured. Stack Overflow already has a question on this here. But this code doesn't seem to work. When ...
2
votes
2answers
313 views

Loading Texture2D is extremly slow on XBOX360

I have ~100 sprites for each level im my XNA game. On windows it takes ~2 seconds to load them all. Unfortunately on XBOX360 it takes ~30-60 seconds. Am i doing something wrong? Essentially the ...

1
2 3 4 5
22