A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

0
votes
2answers
66 views

Technical Design Document and PNG filesizes

I am writing a Technical Design Document and starting to list assets and their file sizes. The formula for calculating the file size of a PNG is easy: width x height x bit depth. I am having a ...
0
votes
1answer
19 views

Drawing in SFML outside of the main function (passing the window over to other fuctions) doesn't work

Why does the drawn Sprite only appear in the Window when drawn from the main-function, but not when drawn from an external function and how can I change this? class Class { private: sf::Sprite ...
0
votes
0answers
20 views

Radial color fill for sprite in Unity

I have a white circle sprite and want to have some "slices" colored of different colors like the image below, with the possibility of changing the "slices" dimensions and color. How would you obtain ...
0
votes
1answer
17 views

Sprite editor “minimum size” feature alternative in Unity 5

As you know , unity has been removed its minimum size feature in sprite editor multiple auto slice mode. In some pics Unity discovers a lot of tiny rubbish sprites for example as 4x3 or 10x5 pixels. ...
0
votes
0answers
14 views

sprite sheets with atlas/pack resource website?

Im currently learning bout properly usage of spritesheets. I know how to use them etc but I find it cumbersome to manually write down all the cooords for each sprites start location into atlas etc. ...
0
votes
1answer
58 views

Making a 2D Game: Figuring out sprite sizes?

I'm currently making a 2D game as a school project using Game Maker and its language. My concern however is around the spriting and art... I can't figure out how to correctly size everything so it ...
0
votes
0answers
26 views

Python Pygame Collision with a Rotating character

Trying to make my character not be able to pass walls, I'm finding it difficult as my character rotates to face where ever my mouse is while moving with WASD to do this I have used self.pos to keep ...
0
votes
2answers
28 views

I need to move a sprite from point A to point B. I have objX1, objY1, frames, and X2, Y2

I have a custom sprite class in Unity and I'm trying to make a method in where it moves from one point to another. Instead of using an Enumerator for time, I'm using real time game frames using static ...
0
votes
0answers
32 views

Tiled2unity problem. Every tile is one color

I'm trying to get Tiled2Unity working on ubuntu. I followed the instructions for Tiled2Unity Lite and I got it running by using the following command: mono $CSSCRIPT_DIR/cscs.exe Tiled2UnityLite.cs ...
0
votes
3answers
24 views

Detecting mouse click for the uppermost layered 2d sprite in Unity

I have two sprites. One for the entire background and another small sprite, which is a foreground object. I have written code for both of these objects in their OnMouseDown() functions. When I click ...
-1
votes
0answers
39 views

sprites in a list C# [closed]

I can't find any good info on how to call different sprites in a list. My list looks like this: Heroes.Add( new HeroList(false,false,"green", 10)); And I want to call a specific sprite ...
0
votes
2answers
35 views

How add a sprite to canvas using JavaScript?

I'm very new to sprites and I'm trying to figure out how to use them. I want to use a simple solution. Something like this: var c = document.getElementById ('canvas) var ctx = c.getContext ('2d'); ...
0
votes
1answer
57 views

Only 20fps framerate in libgdx Android with ~190 Actors being drawn

I'm getting bad frame rates while developing a game on Android. I have been developing on desktop too and only have the issues on Android. I am testing with a Nexus 6 (can't imagine how badly it ...
-3
votes
1answer
69 views

Change sprite in C# Unity using Visual Studio [closed]

I read the answer of Change the sprite of a Object in Unity but I can't seem to make Unity to understand what to do. visual studio can handle the code but as it says drag the sprite to the code don't ...
1
vote
0answers
49 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?
1
vote
2answers
92 views

How to fake a 3d character displacement by sprite scaling in GameMaker?

I want my 2D sprite to become bigger when moving down the screen (closer to the camera), smaller when walking away and to maintain the same size when moving left or right. The scaling along the y ...
0
votes
0answers
21 views

Phaser reset sprite to a new position on click

I am using phaser along with its isometric plugin but I this problem probably applies to Phaser in general. I have made a function that spawns a new sprite ( in this case a isoSprite ) and added some ...
1
vote
0answers
49 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 ...
0
votes
0answers
24 views

Stretching certain part of a sprite (like ui)

I want to have a line with two arrows at each end , and I want to give it an end point and start point and have it stretched between the two point but I don't want to mess up the arrows. I know we can ...
0
votes
1answer
58 views

Can you get polygon collider 2d shape from a sprite?

When you create an object with polygon collider 2d from inspector, unity automatically generates polygon collider that approximately fits the sprite. My question is if there is a way to do that when ...
1
vote
1answer
47 views

Do the sprites inside a PoT spritesheed need to be PoT aswell?

I use TexturePackerGUI to create PoT spritesheets. But do the sprites inside the spritesheet need to be PoT aswell? If they need to, do I need to disable trimming? The framework I use is libGDX.
0
votes
1answer
53 views

How to achieve light effect on a car panel icons?

I'm making a car and I want to make lightable icons on its panel. I want to add 'on' and 'off' effect to them separately. The Sprites are plane objects, with one material and UV texture for each plane....
0
votes
1answer
67 views

Syncing Sprites themselves over a Network

Ok, just found out I can't use [SyncVar] for a sprite gameobject. Furthermore that, [SyncVar] works only on simple values. My question is How would I go about syncing a Sprite over a network? To ...
0
votes
1answer
101 views

Looking for a dirty pseudo 3D trick

To be specific I want to do bad sprite scaling like in Operation Thunderbolt. For some reason I'm getting it all wrong so far. I started over from scratch and I've literally got a sprite that follows ...
0
votes
1answer
24 views

Layers in PixiJS

I am using the PixiJS framework to create a 2D RPG Game. How can I create a PIXI.Container with a transparent background which I can render on top of my main stage container? My goal is it to have 4 ...
0
votes
1answer
26 views

Problem with setting box2dsprite dependencies error Could not find property 'gdxUtilsVersion'

Hello i am trying to use BitBucket's Box2DSprite, i am having trouble in setting dependencies i used this link for Dependency https://bitbucket.org/dermetfan/libgdx-utils/wiki/Dependency%...
1
vote
1answer
70 views

Sprite rotation: is it better to rotate with a quaternion or via sprite swap?

Considering this question: "In a generic game engine where you have an object sprite (e.g. Unity), is it better (in terms of performance) to implement a clockwise rotation calculating at each frame ...
1
vote
1answer
64 views

What is the math behind rendering isometric with the aid of Depth Maps?

I am currently in the process of designing an Isometric game, and one of the features we are trying to add, is using sprite depth maps to render geometry in the correct order. The reason we are ...
0
votes
0answers
26 views

Cant figure out how to add my sprites to my map that i made with Tiled on a unity 2d project

I have made the map I want to use, collisions and all. I just cant figure out how to add the sprites I want to use into the map. They either wont show up or nothing will happen when I drag them into ...
0
votes
1answer
12 views

In Libgdx sprite displaced from their bodies position just after colliding with another body

In my game i have a ball falling from above and a rectangle below. when my rectangle collide with ball,sprite position displaced from body automatically,i could not understand this. and i also tried ...
0
votes
1answer
50 views

My 2D Sprite/Diffuse material is not lighting when I start the game

I put a Sprite/Diffuse Material on my Player. In the scene, before starting the game it looks ok (1st screenshot). After starting the game it still works fine, but when I am starting to move the ...
0
votes
0answers
35 views

How can I pass the xy coordinates coming thought websocket to moveToXY to move the sprite

//Code for received coordinates /************ON RECEIVING MESSAGES VIA WEBSOCKET *//// ws.onmessage = function(event) { var mySpan = document.getElementById("messageGoesHere"); var mySpan2 = ...
0
votes
0answers
30 views

Javascript sprite animation without game engine

I've programming for a while now, and I want to create my first game. Unfortunately, I am kind of stuck with the Sprite animation. So far, I have a gameloop fully working, with a 'Sprite 1' row! What ...
0
votes
1answer
53 views

What image resoluiton for sprites in 2D mobile game? [closed]

I am an experienced iOS developer, however I have never worked on games before. We are planning to make a mobile game using Unity 3D. Our graphics designer needs to know what resolution should he ...
0
votes
0answers
49 views

Andengine randomly added multiple sprites overlaps each other when falling from top of the screen

I am new to AndEngine and developing a game in android using AndEngine. I am adding multiple sprites to the scene randomly and making them to fall from top of the screen but they overlaps each other. ...
4
votes
1answer
33 views

Javascript canvas rotating single sprite instead of entire context

I am trying to recreate asteroids, but I need the ship to rotate based on user input. I have w,a,s,d keys set to change the [pos] of the ship by 1 in the corresponding direction, but now, I need to ...
0
votes
0answers
38 views

Scaling unity sprite sheet for different resolutions

How can I scale down a Unity2D sprite sheet that contains multiple sprites to support different devices. for Example HD and SD. also I want the SD version to have less physical size than the HD one. ...
0
votes
1answer
33 views

Circular trajectory for sprite in LibGdx

I want four sprites to orbit a single origin point. But if I use like this sprite_p1_avatar = new Sprite(dummyText); sprite_p1_avatar.setPosition(200, 200); sprite_p1_avatar.setOrigin(100,...
0
votes
1answer
31 views

Trouble loading sprite from spritesheet with Phaser

I am working on re-creating a breakout clone to help me learn Phaser (following the overall design of jsbreakouts.org). Anyway, I have the start screen set up. From the start screen, I can transition ...
0
votes
1answer
84 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 ...
0
votes
1answer
28 views

MonoGame sprites not consistently drawing

Please don't mark this as a duplicate of my previous question which was asked anonymously. this is a reattempt because i cannot edit the first attempt. What I have so far is: - randomly generated ...
0
votes
0answers
59 views

MonoGame: 2D Sprite acting weirdly

I have a double array of tiles that show the ground. They are randomly populated with a variety of items. one item that only spawns one is a creature spawner. this spawner spawns up to 5 creatures (...
-1
votes
1answer
93 views

What is the difference between sprites and tiles?

I'm making a game, where it came to adding a tile class, but i already have a sprite one, which does the same at first glance. Can you explain the difference with a couple of examples?
3
votes
1answer
60 views

How to save one color channel, taking only 1 byte per pixel?

How can I save only one color channel, such that it would only take 1 byte per pixel? I only want to save the alpha channel and apply colors later using a custom shader. But all the formats I tried ...
0
votes
2answers
53 views

Transition the scale of a sprite

I'm new to this engine 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 ...
1
vote
1answer
110 views

Programmatically change combination of sprites

I am a total newby to unity and cannot figure out how to achieve the following: I want to show a picture composed of different sprites. E.g., a pen with four binary features: the pencolor (black or ...
1
vote
2answers
132 views

How do I use Sprite in libgdx ashley ecs framework?

In the libgdx ashley wiki there's an example of Position and Velocity components, which is pretty easy to understand. My problem now is I don't know how do I integrate Sprite class as Component. In ...
1
vote
1answer
54 views

Which is the most efficient way to make the screen follow a sprite?

This is my first non-board game and I'm trying to learn a bit about 2D graphics in Java. But I don't know, how should I efficiently implement a camera to make the screen follow the main character. I ...
1
vote
1answer
230 views

Multiple Sprite animation layers overlayed in Unity Animator

I have an animator with two layers, an axe layer and a body layer. I would like to animate the two in sync with each other. They are both 64x64 sprite animations, frame-by-frame bitmaps. The ...
0
votes
0answers
46 views

Sprites Positons

I create my sprites for 800x480 and position them accroding to this On dealing with multiple resolutions I use a method that set sprite size and position according to the current resolution instead ...