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.

159 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
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 ...
user avatar
  • 51
4 votes
1 answer
533 views

How can I apply a "genie animation" to a CCSprite?

I am new to Cocos2D and following this tutorial. I want to animate a CCSprite with the genie effect that OS X uses for hiding windows to the dock and showing them ...
user avatar
  • 168
3 votes
1 answer
197 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 ...
user avatar
3 votes
0 answers
48 views

Sprites being skipped over in simple sprite change script

Each instance of the prefab in question has a copy of this script on it, but they seem to be interfering with each other in some way. I would forego prefabs, except the final game I'm prototyping for ...
user avatar
3 votes
0 answers
367 views

Flow effect to static water on a isometric city

Hello everyone I want to give the idea that the river in my city is flowing but I am having an hard time to figure how. Do you have any idea of what I should look into to?
user avatar
2 votes
0 answers
31 views

Unity 2D Sprite Cutout with border

I'm working on a 2D simulation game and have one object floating on top of another one. I have a Sprite Mask on the object on top to achieve cutout like effect so the background is visible where the ...
user avatar
2 votes
0 answers
101 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 ...
user avatar
  • 21
2 votes
0 answers
102 views

Multipart character sprite and transparency

In my 2D platform game I have characters made of multiple separate pieces that can move independently in a hierarchy, so that I could move the limbs and head, change facial expressions etc., or add ...
user avatar
2 votes
0 answers
149 views

Splitting a sprite sheet into sprites

Each animation has its own sprite sheet. First I tried to give each sprite their own rectangle and do some calculations to make sure that the bottom left corner of each sprite would be at the same ...
user avatar
  • 193
2 votes
0 answers
471 views

Set sprite for UI2DSprite from NGUI at runtime

How can I set sprite for UI2DSprite from NGUI at runtime? This is what I tried: ...
user avatar
2 votes
0 answers
119 views

How to store sprite data in a VBO?

I'm planning on rendering many sprites in my games, but I am not sure which method of storing their data to use. I haven't tried all of them yet, but I want to see if I also have anything important ...
user avatar
2 votes
0 answers
205 views

Sprite animation in Android view

I'm looking for a way to have different sprite animations in individual Android views. I try to use LibGDX and AndEngine but most I could find was how to get an Activity with the sprite animation. ...
user avatar
2 votes
0 answers
121 views

Get a body from TiledMap via MapBodyBuilder and draw a sprite on it in LibGDX?

I use a various of MapBodyBuilder in my Libgdx project. I created a body from map.tmx via my MapBodyBuilder and in my SpriteBuilder buildSprite method i created its sprite: ...
user avatar
2 votes
0 answers
208 views

Editing sprite shading to change perspective?

I'm currently developing an RPG in Java with some of my friends, and one of my tasks is to do the pixel art. I'm a beginner at it, but I know that I'll get better in time. I recently finished the ...
user avatar
2 votes
0 answers
582 views

How to get rid of half pixel artifacts?

I've been having a bit of trouble using OpenGL to make 2D games. I am using a traditional ortho perspective with just some sprites being rendered and moved around. It all works perfectly but there is ...
user avatar
  • 3,091
2 votes
1 answer
265 views

Is there a method to add partial scorch marks or decals on top of existing sprites?

Let's say what I have is a planet like so: What I want to do is to add a scorch mark like this: Now, if this was a one time thing, it wouldn't be a problem. I'd make a sprite for this specific ...
user avatar
1 vote
0 answers
24 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 ...
user avatar
1 vote
0 answers
84 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 ...
user avatar
1 vote
0 answers
58 views

How to properly delete unwanted models

I am implementing bullets into my game, and each bullet has a lifetime. Whenever the bullet has existed for a set amount of time or collides with an object, the bullet should be deleted. I implemented ...
user avatar
1 vote
0 answers
64 views

Parsing Sprites from Spritesheet

How can I parse a spritesheet consisting of scattered sprites with different sizes, like this example and return the (x, y) and ...
user avatar
  • 23
1 vote
0 answers
78 views

How to use HD and SD sprites in Unity addressables

I am able to load sprites using Unity addressables. But how can I use SD or HD variants of a sprite based on my device resolution? Previously I was using LIBGDX, and it has ...
user avatar
  • 11
1 vote
0 answers
199 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: ...
user avatar
  • 217
1 vote
0 answers
56 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, ...
user avatar
1 vote
0 answers
196 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 ...
user avatar
1 vote
0 answers
112 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 ...
user avatar
  • 11
1 vote
0 answers
46 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 <...
user avatar
1 vote
0 answers
64 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 ...
user avatar
  • 1,599
1 vote
0 answers
61 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 ...
user avatar
  • 200
1 vote
0 answers
157 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 ...
user avatar
1 vote
0 answers
73 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 ...
user avatar
  • 105
1 vote
1 answer
817 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 ...
user avatar
  • 11
1 vote
0 answers
42 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....
user avatar
1 vote
0 answers
151 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 ...
user avatar
1 vote
0 answers
166 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 ...
user avatar
1 vote
0 answers
196 views

Playing an animation in Godot

I have been working on making a platformer in Godot but can't seem to get a walk cycle to play when I press left or right. ...
user avatar
1 vote
0 answers
96 views

Modding sprites in New Super Mario Bros. DS

I'm a New Super Mario Bros. DS modder. My goal is to create a custom sprite over an existing unused sprite. I checked in on fellow modders and they said theoretically, I could copy another sprite's ...
user avatar
1 vote
0 answers
22 views

Is there a way to set a pallet for colours in an SVG image and change them at runtime for one gameobject?

in the latest beta build for unity they introduced the ability to import svg files. What I'd like to know is if there is a way to identify all svg shapes by colour, and then change those colours, as ...
user avatar
1 vote
0 answers
339 views

Will my huge sprites for a 2d game create performance issues?

I'm new to Unity, and have been confused about this issue for a while. Some people say that for 2D games you don't need to worry about performance (I'm making the game for PC, not mobile) while others ...
user avatar
1 vote
0 answers
43 views

Unity inconsistent memory profiling when running same scene

I'm in the making of a 2D silhouette style game where I'm trying basically 2 setups: One where it consists only of sprites, One where it consists of a mix of sprites and meshes with NO texture. Now,...
user avatar
  • 269
1 vote
0 answers
256 views

Default with SDL_RendererFlip Horizontal (SDL, C ++)

When I execute my sprite sheet animation and apply renderer_flip_horizontal, a line appears in the sprite. Without the flip render, everything works fine. Example image: Note: The sprites are ...
user avatar
1 vote
0 answers
1k views

How does Unity's QualitySettings.masterTextureLimit work?

I'm trying to get to the bottom of how masterTextureLimit works, but my results have been inconsistent so far. I created a massive sprite (8192x8192), and I'd like to resize it at runtime to save ...
user avatar
  • 331
1 vote
0 answers
116 views

sprite jitter when max acceleration reached at camera

Camera seems making sprite jitter when max acceleration is reached : Thats my camera code : ...
user avatar
1 vote
0 answers
548 views

Unity 2D play animation with flipX then enabling and disabling GameObject "locks" flipX

I have a GameObject with an Animator that contains many different animations. In C# I switch between these animations with animator.Play("AnimName"). Some of the ...
user avatar
  • 121
1 vote
0 answers
561 views

2D Voxel isometric rendering with non grid-aligned objects

I'm currently working on making a simple SDL2 game (written in C++) where the maps are comprised of sprite voxels (essentially just a png of an isometric cube). Game entities move in 3D space. The ...
user avatar
  • 33
1 vote
2 answers
576 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 ...
user avatar
1 vote
0 answers
87 views

Renderable object abstraction

In my engine I have 2 types of 2D renderables: sprites and groups (and maybe primitives later). Sprites are just textured quads and groups are multiple renderables grouped in a single object. I have ...
user avatar
1 vote
0 answers
49 views

Setting useImmersiveMode to true makes a moving sprite blink in a LibGDX game

I'm developing a simple game where i have gravity and a body which jumps when i touch the screen and a sprite displaying in its position. All is good until i set ...
user avatar
  • 111
1 vote
0 answers
35 views

Effect of merging sprite

I want to create the effect of merging of colours if they are overlapping. My game is a tile-based game. For all intents and purposes, lets consider a tile from (0,0) to (1,1) in the entire example. ...
user avatar
  • 434
1 vote
0 answers
469 views

Using canvas graphics instead of traditional sprites in phaser

I'm trying to learn Phaser (total beginner with mild JS experience) and I'm following tutorials and such where everything is using sprites. I'm trying to get by with basic canvas shapes instead of ...
user avatar
  • 111
1 vote
0 answers
85 views

How can I detect sprite collisions out of screen?

I am creating an Android game using andEngine library. I have enemies coming from out of the screen into the screen. I already know how to detect collisions, but is there any method I can use to ...
user avatar
  • 113