The simulation of an in-game entity's motion, such as running or sitting or striking.

learn more… | top users | synonyms

1
vote
1answer
258 views

How can I change the path a sprite is following in real time?

Is there a common way to implement a character following path that is issued and replaced in real time? For example: the character follows a path issued, and while it's on that path, if a new path is ...
1
vote
1answer
254 views

Game Designer or Game Programmer, please help me choose! [closed]

I know this question is asked a lot but I am still so confused and overwhelmed by the different opinion and comments everybody has on the internet, that I wanted to ask my questions in a single thread ...
1
vote
1answer
90 views

How to linearly “blend” between multiple 3D points?

I have a set of 3D points that I need to "blend" between. Lets say I have points [A,B,C] and I have the amount I want to blend each as [0.5, 0.2, 0.8], how can I blend between these points with the ...
1
vote
2answers
86 views

How to use blender files in your own engine?

It is not trivial to use your own shader on blender, so I've created a good-looking webgl shader. Now, what do I need to use the things I made in blender on it? An obvious first idea would be to parse ...
1
vote
1answer
155 views

How should I handle animation states in Mecanim?

I did a tutorial which associated an integer to each state and manually set transitions from one state to another based on that integer, but that seems really sloppy. Is there a more elegant way? I ...
1
vote
2answers
84 views

SDL sprite animation problem

I'm currently drawing my character from a single file, and my sprite class handles it taking the file path as an argument. Now, I need to add a simple animation, cycling between two frames. The ...
1
vote
1answer
125 views

Handling collision for sprites with different frame sizes

I am creating a platform game, and the main character has three images for its left and right animation. The problem is that when it is walking and the player run into a block, if at that moment it ...
1
vote
1answer
421 views

Armature in Unity3d distorted

On the left is a base mesh with armature in Blender. I imported this model and armature into Unity3d. The result is on the right. The arms are clearly distorted, and I can't seem to fix it by ...
1
vote
2answers
310 views

Make a 2D character stop moving and going back when encounter an obstacle

I am using a 2d character who is sliding infinite ( huge incrementation of the X or Y value ) when moving. He can only move up, down, left, right inside a virtual grid, made of multiple squares. Now ...
1
vote
3answers
454 views

Moving a 2D character on a straight line

I am trying to create an Android Game and I am facing my first big problem. After reading blogs, tutos ... I am able to easily move a character with a drag and drop, make it move move to a touched ...
1
vote
1answer
156 views

How to handle sprite speed when objects move using Box2d?

I have a basic platformer using Box2d that works great. However, I now want to stop using my default square, and implement some running and jumping animations. How can I ensure that: When running, ...
1
vote
1answer
280 views

Is using Sprites the most recommended way for doing 2d animations with Directx?

I am working on a game engine of my own and I was using Vertex buffers to create triangles and then draw textures on them. Now I want to extend it so I can do simple 2d animations using "sprite ...
1
vote
2answers
235 views

Sprite animation problem

I have this sprite I have to animate. The sprite is 7 images total but animation is 10 frames (2 positions are repeated). The order I want to go through the frames is like this: 3 -> 4 -> 5 -> 6 -> ...
1
vote
2answers
521 views

Cascade(Waterfalls) particles animation - openframeworks, alternatives

Has anyone tried to create a waterfall particles animation using openframeworks? Is it possible? Is it good? If not, can you recommend any other frameworks for easier creation of cascade animation? ...
1
vote
1answer
399 views

Special Effects in a 3d game

I am creating a 3d game ( a car racing game) using opengl ES. i know the rendering concept and also using a physics engine for all the physics stuff. All modeling is done using 3d modeling softwares. ...
1
vote
1answer
626 views

SWiSH alternative Flash animator for AS3

In the past I've used SWiSH to create small animations that I could use for Flash projects, however, I'm now trying to move to writing AS3 which SWiSH doesn't support. Whilst I have access to Flash ...
1
vote
3answers
942 views

Blender books for advanced character animation and modeling?

I've been messing with Blender on and off for over a year, and am now ready to put a lot of sweat into making a great model for an iPhone app I'm working on. I want to learn tips and tricks on how to ...
1
vote
1answer
60 views

How can I play an animation in response to an event?

I've written a script to play an animation, but it starts immediately as my level loads. Instead, I want it only to start when triggered by some event or after a given timeout. How can I do this?
1
vote
1answer
48 views

How can I make an attached gameobject behave correctly on character flip?

I have a character that on start-up is equipped with another gameobject/prefab as a weapon, attaching it to a hand. void Start() { handFront = transform.Find ...
1
vote
1answer
58 views

Running two simultaneous animations on a model? [duplicate]

I am just looking for a broad answer to this question. I am more curious about the general information rather than the specific. Also, I tried to search for this, but I think it's hard to word it so ...
1
vote
1answer
111 views

How can I make an animation using arrays?

I want to take an array of sprites, for example sf::Sprite animation[3] = { stepLeft, inMiddle, stepRight }; and construct an animation by looping them. Is this possible? How do I go about it?
1
vote
1answer
117 views

How to handle animations for a turn based deterministic game?

I have a turn based combat system where all monsters act one turn, then all players, etc. The combat mechanics are completely deterministic - I can pre-calculate the outcome of a turn. I'm interested ...
1
vote
1answer
178 views

Is it possible to achieve a smooth sprite animation with a fixed 60 FPS using Java 2D?

I've seen a lot of different game loops, and before implementing anything complicated I decided to start with a capped 60 FPS. My run method looks like this in my game thread: /** * Fixed Frames Per ...
1
vote
1answer
79 views

How to show the bow string stretching animation (?)

I was wondering how the animation in the angry birds of pulling the slingshot is done. One similar animation is available in this game but with a bow and arrow. I think both of them use the almost ...
1
vote
1answer
117 views

Flashing candle light

What is a simple way to simulate flashing candle / torch / fire light? I'm not asking about animating the flames, I'm only interested in the light surrounding the fire, similar to what this device ...
1
vote
1answer
1k views

How to switch sprite animations in cocos2d-x?

I have a "GameCharacter" class where I have a sprite for my main character in the game, I loaded the frames and animations correctly. I can switch between animations with single touches or swiping ...
1
vote
2answers
288 views

Smooth animation when using fixed time step

I'm trying to implement the game loop where the physics is independent from rendering but my animation isn't as smooth as I would like it to be and it seems to periodically jump. Here is my code: // ...
1
vote
2answers
245 views

Exporting distinct images from a sprite sheet using GIMP

I have recently found that in Photoshop there is a script that enables you to export individual images on different layers into distinct png images on disk. Is it GIMP capable of doing the same ...
1
vote
1answer
354 views

Change animation speed of a 3D model

I am working on a small simulator. There is a 3D character on the screen and it randomly plays an animation (I used animation.PlayQueued(...) command inside a for loop). Now I have added a slider ( ...
1
vote
1answer
307 views

How to Animate a Mechanical Model to work with Unity's Mechanim?

I made a relatively simple model in 3D Studio Max to be used in a game. It's a simple stationary laser turret with an openable maintenance hatch. I want to use Mechanim to handle the animation states. ...
1
vote
1answer
172 views

Skeletal Animation with UV seams

I have a UV-mapped model that I am about to animate and load into my game. Like most unwrapped models, I have several UV seams. In order to render the model correctly, I split each vertex along the ...
1
vote
2answers
528 views

Use FlxAnim to Animate a FlxSprite in Flixel on FlashBuilder

I am trying to animate a FlxSprite, whose image I loaded from an embedded sprite sheet. I instantiate the sprite like this: // embedding a png file given a relative path ...
1
vote
1answer
504 views

Running one action on multiple sprites simultaneously

I have created a spiraling animation for a football. I want to be able to run it on 2 sprites simultaneously. This is what I have done: CCAnimation* footballAnim = [CCAnimation ...
1
vote
1answer
438 views

Frame Interpolation issues for skeletal animation

I'm trying to animate in-between keyframes for skeletal animation but having some issues. Each joint is represented by a quaternion and there is no translation component. When I try to slerp between ...
1
vote
2answers
837 views

How do you make game objects (enemies, NPCs) move in interesting, non-linear ways? (e.g. shoot 'em up enemies)

I'm using a series of easing equations to make menus and transitions a little more interesting in my first game. That got me thinking about how game objects (enemies, NPCs, spaceships, whatever) are ...
1
vote
3answers
1k views

Detecting End of Animation

So I am making a death animation for a game. enemy1 is a UIImageView, and what I'm doing is when an integer is less than or equal to zero, it calls this deathAnimation which only happens once. What I ...
1
vote
1answer
218 views

Process for developing psd images into animation

I wrote a kids' picture book that I want to make into an iPad app and iPhone app. (More of a story than a game, but same principles, I guess.) Here's a sample page: ...
1
vote
1answer
482 views

How to determine what animation to render in a component-based system without breaking encapsulation?

In a component based system, how should change the rendering/visual state of an entity such that I know what animation to use, without breaking encapsulation? My guess is that it would have to be ...
1
vote
2answers
1k views

How to animate a flip of a card in Cocos2d?

I am working on a card game and would like to ask if someone could advice me how to implement a flip of a card in Cocos2D?
1
vote
1answer
1k views

Smooth animation in Cocos2d for iOS

I move a simple CCSprite around the screen of an iOS device using this code: [self schedule:@selector(update:) interval:0.0167]; - (void) update:(ccTime) delta { CGPoint currPos = self.position; ...
1
vote
1answer
721 views

Should I use animated objects or use the physics engine on iOS scenes with lots of rigidbodies?

I have a scene with lots of houses and other objects. These objects will be bombarded from the sky. How to handle these kind of settings having in mind that you want the physics to be as realistic as ...
1
vote
2answers
937 views

Having a slight problem moving my camera based on time passed using GLUT/OpenGL

Before anyone asks, this is for a university project and I have to use GLUT. I'm not tagging this as homework because this is not a requirement, nor will I have extra points for this. With GLUT, for ...
1
vote
1answer
1k views

My first animation - Using SDL.NET C#

I'm trying to animate a player object in my 2D grid when the user clicks somewhere in the screen. I got the following 4 variables: oX (Current player position X) oY (Current player position Y) dX ...
1
vote
1answer
1k views

What external 2d animation formats can I use in android?

For an artist who won't be dealing directly with the code, what formats for 2d animation could they use that would be portable into an android game? In my particular case there are no collision ...
1
vote
1answer
58 views

Who should handle animations when game logic is separated from rendering?

Suppose I have a tile-based game and I want the step to be 1 tile but also want the movement to be smooth while the player is getting there. If I understand correctly, the only way to achieve this ...
1
vote
1answer
70 views

How do I scale a motion capture animation?

I used motion capture in my room using the Kinect. As I don't have much space I make compressed running moves, i.e. I put my legs up and down while not moving far forward. How can I stretch the ...
1
vote
1answer
584 views

Why do my animations need to be marked as “legacy?”

I'm in the beginning of a project and I'm not really using 3D models but rather a hierarchy of primitive shapes. I made a couple of animations that suddenly don't work anymore. I get an error about ...
1
vote
1answer
110 views

Creating a card dangling affect using 2d sprites

I'm working on a 2d card game for iOS and using Cocos2d. When a player picks up a card and drags it I would like to make it appear that the card is lifted off the table and dangling just below their ...
1
vote
1answer
99 views

How to render models using a personalized projection matrix?

I'm creating a game with a great sprite demand. Out team is considering automatizing the sprite generation using 3D models. The problem is we have a very particular ortographic projection: We have ...
1
vote
2answers
478 views

How can I create and animate 2D skeletons for HTML5 Javascript games? [closed]

I'm trying to make a 2D fighting game in HTML5(somewhat like street fighter). So basically there are two players, one AI and one Human. The players need to have animations for the body movements. ...