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
18 views

Unity: BoxCollider2D used as reference to Collide with GameObjects but it uses the original size Sprites size to Collide

Im a beginner in Unity and pretty much copy and pasted the code but i can't figure out why the game is using the size of the sprite and not my BoxCollider2D as a reference to collide. I downscaled the ...
0
votes
0answers
28 views

Unity sprite takes 5 times more memory in profiler

So as stated I have a sprite that when compressed takes 2 MB. But when I look into the memory in the profiler, it says that the sprite uses 10 MB! This happens both when I profile in the unity editor ...
0
votes
1answer
375 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
vote
1answer
1k views

How to leave a permanent skid mark on the ground in Unity2D?

I am working on a 2D driving game. I have a sprite of a car and I set the car movement. Now I need to create a skid mark on the ground. For that I have created an empte game object and added a Trial ...
-1
votes
1answer
57 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
42 views

Choosing Number of Points and PPI Resolution To Future-Proof Game Images

I'm working on an iOS SpriteKit game and I'm currently designing some images to be used as character animations in Photoshop. There are many different iPhones with various screen sizes and resolutions,...
0
votes
0answers
7 views

Adobe Animate Visible Masks & Layers for Character Mouth/Teeth Movement

I'm working on animating a characters mouth opening and closing. The layers for this character are currently ordered:Body < Mouth < Teeth. When I animate the ...
0
votes
1answer
290 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 : ...
0
votes
1answer
23 views

How to change size of a SINGLE tile on a tilemap at runtime?

I'm having trouble figuring out how to change the scale (size) of a single sprite (tile) on a Unity Tilemap. In the game, I place trees as tiles on a tilemap, and when they grow over time, I want to ...
0
votes
1answer
67 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
vote
1answer
197 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 ...
1
vote
1answer
1k views

How to use collision masks and overlap_area in pygame?

So, I've been prototyping a game, and I've been using sprite collision, and it's not cutting it any more. I read up on the documentation about masks and overlap area: https://www.pygame.org/docs/ref/...
0
votes
1answer
85 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: ...
0
votes
1answer
316 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 ...
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 ...
-1
votes
1answer
229 views

Circular trajectory for sprite in LibGdx

I want four sprites to orbit a single origin point. But if I use like this ...
0
votes
1answer
352 views

Lag in collision detection

I am a beginner with PyGame and am currently making a simple game using but I am having difficulty with the collision detection. When the game runs, the response to the collision detection (printing ...
1
vote
1answer
627 views

Cocos2d/Cocos2d-x Attaching an arrow (sprite) to another body sprite (person)

I am trying to set up a simple bow and arrow game. When the arrow hits the enemy body, the arrow's body is deleted and the arrow sprite continues to update, keeping the position correct in relation to ...
0
votes
1answer
37 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 ...
1
vote
0answers
23 views

Two neighbouring wall sprites have visible connecting egdes (generated in Blender)

I use Blender to model walls. I render 2d sprites of these walls in a (gaming) isometric perspective. My problem pertains to the "edges" of the 3d wall: On both left and right ends of the ...
0
votes
1answer
86 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 ...
3
votes
1answer
150 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
73 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 ...
1
vote
4answers
5k views

Unity tiles with wierd border flickering when moving horizontal 2D

I recently made some Tiles using a program called Pyxel Edit to create some placeholder graphics. The problem I'm having is that when I move the camera horizontal the edge of the tiles starts to ...
-1
votes
1answer
38 views

Create list of objects with a for loop pygame/python

Hi everyone I am trying to make a Mahjong Solitaire game using pygame. I want to create a list of objects (the tiles of the game) using a for loop, but I can't manage to set a different type (the ...
0
votes
1answer
85 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
556 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
223 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
721 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 ...
0
votes
1answer
100 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

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
173 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. ...
1
vote
1answer
75 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
11 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
51 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
53 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
56 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
157 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: <...
-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.
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
34 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
118 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 ...
0
votes
1answer
62 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
557 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
31 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 ...
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
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 ...

1
2 3 4 5
22