A 2D rendering of an object in space.
0
votes
1answer
25 views
Why Won't Image Drawing Work In JavaScript
In my game at the beginning the first thing that you'll see is a campfire with this code:
var campfire = new Image();
campfire.onload = function () {
ctx.drawImage(campfire, campfireX, ...
1
vote
1answer
33 views
Sprite Animation of Tank Turning - how many items in sheet
I have a question about this tank you can see below. It's from a game called Command and Conquer from the 90s. My question is, how is something like this animated as the tank is turning? Did the game ...
1
vote
1answer
38 views
Any way to combine instantiated sprite renderers into one texture so I can apply into a plane at runtime?
So I am procedurally generating a tile set in Unity by instantiating different tiles that only have a transform and sprite renderer components. I managed to pack the sprites using unity sprite packer ...
0
votes
0answers
8 views
multiple prefab should have multiple values
I have a prefab having three text fields and two UI buttons, and using for loop i am instantiating it multiple times. now i want to get different text field value everytime in multiple prafabs.can ...
0
votes
1answer
37 views
How to make a tile that can be stretched out
I was playing angry birds and I saw that the elastic used to throw the birds is a texture that expands well when you push it with your finger.
How can textures like this be made in java with libgdx? ...
-2
votes
0answers
29 views
How to make sprite sheets that work?
For a while now I have been having a lot of trouble with making my own sprite sheets. I have tried using both Photoshop and Adobe Flash, as well as the free version of TexturePacker, and I keep ...
1
vote
2answers
64 views
Using sprites in pygame without classes and objects
Relevant information
I'm in a grade 11 computer science class that uses Python & Pygame. We're aloud to use sprites and images though we're never taught it, just drawing graphics like squares and ...
0
votes
2answers
41 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
35 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
44 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
16 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
0answers
55 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
29 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
36 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
43 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
67 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
18 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
55 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
83 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
38 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
28 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
24 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
32 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
83 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
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
38 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
40 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
51 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
104 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
73 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
62 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
129 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 ...
1
vote
0answers
67 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
28 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
131 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
49 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
63 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
89 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
107 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
47 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
44 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
79 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
80 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
1answer
26 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
65 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
41 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
33 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
66 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
59 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
35 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 ...