A 2D rendering of an object in space.
0
votes
1answer
22 views
Performance optimization when changing Textures LibGDX
In the main Screen class of my game there is a ListArray<Card> which makes up the deck of cards . The Card's texture is set in the constructor like so :
cardTexture = new Texture(Gdx.files....
0
votes
0answers
38 views
Create a spreadsheet for a tiled map
My plan is to write a tile map generator, that will automatically take the right sprite out of a spreadsheet, and place it on the game board starting from the basics in this tutorial for Unity.
My ...
0
votes
0answers
16 views
How to animate a sprite in libgdx with Spriter
So, I have an animation that I've created in Spriter and a class in libGDX that extends Sprite and contains a box2D body. What I've done previously is have a texture atlas and loop through it to set ...
0
votes
0answers
10 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 animations have the flipX property ...
0
votes
0answers
44 views
Monogame: Unwanted borders/gaps around sprites?
I've been struggling with this problem for quite a while now, and unfortunately haven't found a satisfying solution yet. So, here we are.
I'm working on a 2D game using monogame in an isometric ...
0
votes
2answers
71 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
20 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
21 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
18 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
15 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
62 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
25 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 ...
0
votes
2answers
38 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
58 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
51 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
96 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
22 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
63 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
72 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
25 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
13 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
51 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
34 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
39 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
34 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
32 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
29 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
95 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
54 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 ...