A 2D rendering of an object in space.
0
votes
1answer
19 views
How to set a static size for an object in GameMaker?
I have many sprites with different sizes, and I have an object in which I set those sprites, but this object gets resized by the currently displayed sprite.
How can I set a fixed size for the object ...
0
votes
1answer
18 views
How to change the sprite of an object from another's script?
I have an object A and an object B, I want that when object B is in a certain position, the sprite of object A changes to that corresponding to that position, how do I change the sprite of object A ...
0
votes
2answers
34 views
Gamemaker: images appear blurred in application
I'm making a practice game (generic space invaders clone) in Gamemaker Studio. However, there appears to be a problem with the images. While they look acceptable in Gamemaker Studio (not amazing, due ...
0
votes
0answers
11 views
Sorting sprites above the surface of 3D mesh?
I'm having trouble getting sprites to display on top of a 3D mesh. My requirements are as follows:
Sprite should billboard
Sprite should not clip into the mesh
Sprite should be hidden when on the ...
0
votes
1answer
41 views
How to create a 2d character turning his head animation?
I'm learning to create a 2d character animation for games. I've seen some tutorial where we use skeletal animation to move images and create several frame to create an animation.
But, for an ...
0
votes
1answer
27 views
How to get the attack animation cycle all the way through after one KeyEvent without twitching? (Java awt)
So I figured by myself (supposedly) how to make the attack animation cycle all the way through after pressing a key without needing to keep it pressed. But now it doesn't always start at the same ...
0
votes
1answer
29 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
42 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
28 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
11 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
50 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
81 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
29 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
23 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
20 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
20 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
68 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
27 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
29 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
33 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
32 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
45 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
76 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
71 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
54 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
104 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
31 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
56 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
25 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
80 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
48 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
55 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
81 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
103 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
34 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
35 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
74 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
66 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
23 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
55 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
38 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
32 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
60 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
50 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
45 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
36 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
34 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
90 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 ...