Questions tagged [sprites]

A 2D rendering of an object in space.

153 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
1k 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 ...
4
votes
1answer
522 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 ...
3
votes
0answers
67 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 ...
3
votes
0answers
44 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 ...
3
votes
0answers
353 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?
2
votes
0answers
20 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 ...
2
votes
0answers
76 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 ...
2
votes
0answers
137 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 ...
2
votes
0answers
443 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: ...
2
votes
0answers
116 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 ...
2
votes
0answers
199 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. ...
2
votes
0answers
115 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: ...
2
votes
0answers
197 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 ...
2
votes
0answers
567 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 ...
2
votes
1answer
253 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 ...
1
vote
0answers
101 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: ...
1
vote
0answers
44 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
148 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 ...
1
vote
0answers
62 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
0answers
31 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 <...
1
vote
0answers
58 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 ...
1
vote
0answers
35 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 ...
1
vote
0answers
128 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 ...
1
vote
0answers
50 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 ...
1
vote
1answer
524 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 ...
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....
1
vote
0answers
124 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 ...
1
vote
0answers
113 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 ...
1
vote
0answers
180 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. ...
1
vote
0answers
90 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 ...
1
vote
0answers
20 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 ...
1
vote
0answers
89 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 ...
1
vote
0answers
306 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 ...
1
vote
0answers
37 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,...
1
vote
2answers
485 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
vote
0answers
211 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 ...
1
vote
0answers
910 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 ...
1
vote
0answers
103 views

sprite jitter when max acceleration reached at camera

Camera seems making sprite jitter when max acceleration is reached : Thats my camera code : ...
1
vote
0answers
453 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 ...
1
vote
0answers
502 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 ...
1
vote
2answers
489 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 ...
1
vote
0answers
77 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 ...
1
vote
0answers
39 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 ...
1
vote
0answers
33 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. ...
1
vote
0answers
464 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 ...
1
vote
0answers
80 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 ...
1
vote
0answers
307 views

Unity: Can I use sprites for tiles to overlay a grid over a plane mesh?

I have a plane mesh in Unity. I have various other meshes on this plane (props) with tags that denote the areas under these props are unwalkable. I raycast, project and generate a grid on this plane ...
1
vote
0answers
125 views

Is this a good way to “get rid of the sprite shakes” for my sprites that “target” other sprites? (XNA)

I'm relatively new to XNA, but very proficient with C#. I want to know if this is the best way to solve the sprite shaking problem. I had a sprite class that can target a place/other sprite on the map ...
1
vote
0answers
30 views

Proper way to wrap sprite for Z dimension

I am using SFML, but I need to add some emulation of 3D by wrapping the sprite with a Z component. When sprites are drawed (or when objects moved?), their X and Y will change depending on Z. My ...
1
vote
0answers
680 views

Unity UpdateExternalTexture from MovieTexture windows crash

I'm trying to play a MovieTexture object with a SpriteRenderer object. My code is working fine on OSX. It crashes my windows 7 ...