A 2D rendering of an object in space.
1
vote
0answers
9 views
Java Libgdx Attaching Sprite to Box2D Body
So I am working on programming a java 2D platformer for fun on the side and I have a rendered TMX level and a box2d body (just a circle shape) that I am currently using as my player. All the controls ...
0
votes
0answers
14 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.
...
-2
votes
0answers
25 views
Tiled Map Editor [on hold]
I have a problem. I using Tiled Map Editor and create map. Uploaded it to the game everything is working well. In the game when I move the camera tiles lagging. What I must do for fix this problem?
3
votes
1answer
31 views
place sprites in grid pattern within an area
I have been trying to do this for a few hours in unity now but cant get my head around it. basically i have 4 points(vector3) 1 each for the 4 corners topleft, topright, bottomleft, bottomright. now i ...
0
votes
0answers
12 views
Packing a load of irregularly shaped textures with UV bounds into a single texture
I'm developing a 2D game that uses a very large and varied set of high resolution tiles.
Some of the shapes are large and diagonal, so when when it comes to batching all of the images into a single ...
-1
votes
0answers
20 views
Does anyone know any websites that make free sprites [closed]
I need a sprite sheet for my game but I don't really have the time to create one myself, so if anyone knows any websites that create sprite sheets of people without using photos, please can you tell ...
0
votes
0answers
22 views
How to get vectices of a sprite in correct order in Unity?
Currently, when I examine sprite.vertices, I see that it is ordered in crossed way, like: one from bottom, one from up, another one from somewhere else... etc.
I need the correct order to make array ...
0
votes
1answer
39 views
Unable to load two enemies with same pic in sdl2
I have loaded two enemies(with the same pic) into my game. However, when I draw them onto the screen it only draws and animates one enemy, instead of two. I can't seem to figure this out.
Here is my ...
0
votes
0answers
31 views
Tilemap not rendering properly
I'm making a single-screen scrolling platformer (OpenGL/SDL) and I've made a tilemap out of a 2D array, pre-sized with variables of the LEVEL_HEIGHT and LEVEL_WIDTH. Each element in this 2D array ...
0
votes
0answers
6 views
Is there a way to make spritesheet from file with many sprites? [duplicate]
If I have a spritesheet that already has all the sprites laid out, is there a way to automatically break up those sprites and make an atlas out of them? I tried loading the image into TexturePacker ...
0
votes
0answers
7 views
How can I crop sprites of different sizes into many files
I have an image with a punch of different sprites. The sprites are roughly 50x50px but not exactly.
Is there any easy way to go through and convert this to various images?
2
votes
1answer
27 views
Having trouble creating multiple sprites from one class
So I am trying to make more than one sprite using a single class but I cannot seem to get the sprites to be drawn at all or drawn in different places (they are all just on top of one another).
In my ...
3
votes
1answer
115 views
Why flip sprites instead of creating extra assets?
Why is the preferred method for changing the direction a character is looking in a 2D game a sprite flip? Why not just create the extra asset and show that one on screen?
0
votes
1answer
23 views
Libgdx + Box2d working with 2 cameras
Recently I have read that you can work with 2 cameras whenever you involve Box2d, which only works in meters.
In my Renderer class, I receive all the entities in the game and then draw them. I work ...
0
votes
0answers
37 views
Lip Sync Sprite Animation in LibGDX
Is there any free sprite package to achieve lip syncing animation ? This is what I have in mind.
User will input text
The character will talk with the appropriate lip sync.
I know there are ...
1
vote
1answer
63 views
How could I implement destruction of bases in Space Invaders type game?
What approaches could you use to implement the the gradual destructions of bases/shields in a top down shooter type game similar to Space Invaders?
The simplest approach could be to use a series of ...
0
votes
0answers
40 views
Responsive animation based on mouse position
I'm currently developing a topdown 2d rogue-lite game in Unity, where the combat will be mainly focused on archery and different adaptions based on archery. My problem is that I have a hard time ...
0
votes
1answer
49 views
Sprite Sheet Texture not being rendered
I'm making space invaders (in OpenGL/SDL) and I've run into a problem
when trying to draw the sprite for the spaceship from the spritesheet.
In my entity class, I have a pointer for the sprite that ...
1
vote
3answers
173 views
Box2d set sprite to body that rotates around specific point
I want to rotate kinematic body around a specific point (I already done this part using
shape.setAsBox(1.8f / PPM, 0.2f / PPM, new Vector2(5.2f, 0), 0);
What I try is this:
PolygonShape shape ...
0
votes
0answers
48 views
How to make this 2D jumping animation smooth in XNA?
I am currently developing a game where I have a sprite that its objective is to jump over boxes coming at it. I know that you have to change the Y values. When spacebar is hit, it goes up but then I ...
0
votes
0answers
25 views
Adding rhythmic combat in Construct 2?
Just a simple question here: Is there any way to integrate counter-attacking, stun and punch rhythmic combat mechanics seen in the Batman: Arkham franchise and Shadow of Mordor? I know that Construct ...
0
votes
2answers
37 views
Struggling to define js sprite sheet
I've been working on this for a couple days, unable to get anything to load. Here is the whole page. Please help me find what I'm doing wrong. Right now, I'm only trying to render the first card in ...
0
votes
1answer
71 views
Libgdx rotate sprite with collision
Im making a game where I have an object in the center of the screen and then balls come out from the sides of the screen. When you touch the screen the object rotates 90 degrees clockwise and it has ...
0
votes
2answers
118 views
Unity sprites rendering problems on Android
I'm creating a simple 2d game for android, with normal sprites and animations. The problem is that when I open the game on my smartphone (Samsung galaxy trend plus), The sprites are rendered this way:
...
0
votes
0answers
33 views
how can I load a sprite to a sprite variable in my script?
I want to add to my Sprite variable x2 a sprite in my code. Here's my code:
Sprite x2;
void Start () {
x2 = ?
}
how can I tell the code to add a certain sprite to that variable?
2
votes
1answer
44 views
Rendering a dynamically sized box
So in games where there are textboxes with different sizes appearing, how does one actually render them efficiently? Games like Final Fantasy IX have dynamically sized speechbubbles for example, each ...
4
votes
1answer
198 views
Doom-style 2.5D Movement Animations
I've started working on a demo for my 2.5D game. For a basic scene I figured I would just use the good old fashioned doom sprites textured to a double sided plane. Simple enough. But I've been ...
0
votes
2answers
68 views
Calculate ticks for animation delay
Hi guys I am trying to calculate the correct elapsedTime for each frame in my animation.
Example I have a sprite called stance that has 20 frames I want to give each frame a tick delay property that ...
1
vote
1answer
53 views
How can I combine sprites and attach them to a GameObject?
I have the following sprites:
Background
Foreground
Combined they should look like this:
The first problem is Unity can only show one sprite with its Sprite Renderer, so I can't combine them ...
2
votes
1answer
58 views
Looking for a clever way to differentiate objects [closed]
I have a lot of cubes in my game (2d squares) and I decided to add some skins to them. However the colors that they have don't really make them look appealing.
For example, I have this sprite:
...
-1
votes
1answer
72 views
Which Sprite would be rendered out of two overlapping sprites in a 2d world?
For example, in a 2d setting, I have two sprites(one of green color and other of blue) of same size and y-axis and are at some distance apart from each other in x-axis. If there distance is gradually ...
0
votes
0answers
40 views
Difference between sprite and texture? [duplicate]
Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture?
I read this comment on the ...
0
votes
2answers
66 views
Positioning 2D (non-UI system) game objects
As an old Flash dev I'm slightly confused about how you position game objects on the screen in Unity since game objects have no width or height (only a scale).
Let's say I have a container gameobject ...
0
votes
0answers
66 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 ...
0
votes
1answer
62 views
Sprite cut in half after placed on Scene
I have noticed a very odd behaviour in Unity 5.2.1. When I drag and drop a Sprite into the Scene, it's cut in half like this:
I tried with PNG and PSD formats but it didn't help. Although when I ...
0
votes
1answer
86 views
Why is the alpha value of a Sprite in LibGdx 0.99607843 and not 1?
I'm developing a game in LibGDX and one of my problems is related to the alpha value of a Sprite object.
If I create a new Sprite sprite object then sprite.getColor().a is equal to 0.99607843 and not ...
0
votes
1answer
34 views
Texture becomes white box when drawing it?
My problem is that when I try to render my sf::Sprite it only renders a white box in my window.
I did some reading on this and couldn't really find anything that helped.
Some said that it's because ...
0
votes
0answers
111 views
Re-design a 8/16-bit sprite
I'm new to game development, and my skills on photoshop are not that great...
I was planning to try to convert a old game to HD, but for this I need HD sprites... what is the best way to convert a ...
0
votes
1answer
57 views
Positioning partials of character sprite animations
I'm not entirely sure how to best explain what I'm doing. Maybe I'm going about this completely the wrong way. If any of you find that that is in fact the case, I would appreciate it if you told me ...
0
votes
0answers
26 views
Libgdx Box2D - Object not showing up
I am trying to put a sprite into my b2d-world.
But for some reason, it is not showing up. I've already checked the camera settings, they are defenetly correct. Then I came to the point to check the ...
0
votes
0answers
31 views
Sprite animated position outside unity
our artist chose to animate the position outside unity because he want the precision of how the animations should look like what this means is when the monsters is jumping he literally moved the art ...
0
votes
1answer
56 views
Basic Moving/Anim Script [Unity CSharp]
So, I got this to do the anims for my sprite in Unity 2d...
using UnityEngine;
using System.Collections;
public class Move : MonoBehaviour {
public float Speed = 2;
Animator anim;
// Use this for ...
1
vote
1answer
100 views
Is it possible to interpolate different sprites? [duplicate]
I can interpolate different animations based on position, rotation, and scale. I want to do the same for different sprites, automatically.
For example, lets say I have a soda can being crushed. I ...
1
vote
1answer
69 views
How do I make a 2D sprite flash green when tapped?
I have a sprite that is based on an image of a gray circle. When the user touches the sprite, I want the sprite to flash green, as in I want the circle to appear to turn green for 0.2 seconds. I tried ...
1
vote
3answers
418 views
In what size should i design sprites for unity iOS?
I am developing a 2D platform game in unity.I have conceptualised the game and have to design the art assets/sprites, but the problem is at what resolution or size do i design them?
If I target the ...
0
votes
2answers
121 views
Unity 3D: How to stop/reset 2D sprite animation after releasing key?
Im following a tutorial to create animations with a 2D sprite character.
But i put in my own. Which has 8 animation positions.
For some reason when my guy walks around,then stop, the walkings ...
2
votes
0answers
43 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.
...
1
vote
1answer
102 views
How to code sprite sheets?
First of all, the XNA Framework works on my computer, but I do not wish to use it for reasons. I am set with the task of coding my own sprite sheet class. I do not know if a class is the best way to ...
3
votes
1answer
80 views
Scene2D Actor walking animation?
I used to extend my Player/Entity class with Sprite, that way I could create a walking animation using SetRegion and super(stilldown.getKeyFrame(0));
I've recently started porting everything over to ...
-1
votes
1answer
35 views
Change Andengine Text By clicking and typing a new text like native android EditText
I have a board in my game, with a name. I want to edit it on a button click (not by text.setText("text") method ) i want the user to enter a text and set it there. I couldnt find, how to change the ...