A 2D rendering of an object in space.
1
vote
1answer
54 views
Sprite rotation
I'm using OpenGL and people suggest using glRotate for sprite rotation, but I find that strange. My problem with it is that it rotates the whole matrix, which sort of screws up all my collision ...
0
votes
1answer
85 views
GLSL billboard move center of rotation
I have successfully set up a billboard shader that works, it can take in a quad and rotate it so it always points toward the screen. I am using this vertex-shader:
void main(){
vec4 tmpPos = (MVP * ...
0
votes
0answers
16 views
movement of sprites with kinect and xna
im working on a proyect with kinect sdk and xna 4.0. i need take the position of the hands and draw a sprite over it. im doing it directly and, because of that, i get a "trembling hands" effect. so, i ...
0
votes
1answer
85 views
Why does my goblin only choose a walk direction once? [on hold]
I'm working on a simpe 2d canvas game that has a small goblin sprite who I want to get pathing around the screen.
What I originally tried was a random roll that would choose a direction, the goblin ...
2
votes
1answer
61 views
How can i create sprite sheet from 3d model (3D studio max)
I built simple 3D model of a car, with simple animation in which it's wheels are turning.
Now i want to create a sprite sheet, the only way i know how to do it, is to render manually 20 frames from ...
0
votes
0answers
22 views
Bones & Blood Sprite [duplicate]
I'm currently playing with a small 2d canvas game for fun.
I'm looking for some images, primarily some bones and blood to be left in an XY position after killing an enemy.
Does anyone know where I'd ...
2
votes
1answer
76 views
Drawing Sprites at Correct Z-Index without A Sprite Map?
My game is in HTML5 canvas, but I assume this concept applies to any language.
In the past I've used a multi-dimensional array to keep track of sprite positions. Here is a simplified example:
[
[ ...
0
votes
1answer
53 views
Getting a sprite from multiple sprites for right material pattern
Not sure how accurate the question was but I'll put it this way. I'm developing a game where player will construct his/her own stuff, like bridge, building etc. using cocos2d-iphone and Box2D. First ...
3
votes
2answers
89 views
LibGDX stretching 2d graphics
I have a problem with stretching sprites in LibGDX.
I have one png file for the sky in the game (1 x 1000px) and I want to render it 1000 x 1000px
sprite.setSize(pixelWidth,pixelHeight);
I want to ...
1
vote
0answers
44 views
Spawning a sprite later
How do I spawn a sprite anytime later in the game when the game starts?
I'm using FlashDevelop with Flixel. I did try it in override public function create(): void. It works only in the beginning. I ...
0
votes
2answers
136 views
Spritesheet vs single tiles
I am currently programming a 2d platformer and this is the first time I am coding a video game. Now I've downloaded the 'platformer art deluxe' package. In the tiles folder there are single tiles and ...
0
votes
2answers
44 views
How to define axis of Sprites in a CCAnimation?
I'm struggling to find how to define a kind of axis in my frames, when my sprite punches it moves back. I want to define the head as a pivot for the other sprites with different sizes.
How can I ...
-3
votes
2answers
84 views
Is it possible to render controls inside controls in XNA?
I want to know if there is an easy way to render sprites in XNA inside other sprites or something similar (I don't know if sprite is the best or unique way to draw in XNA). For example, I want to draw ...
2
votes
2answers
150 views
How to implement pathfinding in this situation
So I'm creating a game for android using the libgdx library. I render the map from a tmx file and in it all the water tiles have the property of blocked. My player(a sprite) moves to where I ...
1
vote
2answers
104 views
Twitchy sprite movement
I'm having an issue with sprite movement, and I'm not sure how to deal with it.
When I set a destination for my player sprite (by clicking the screen), it sets the player moving in that direction. ...