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

learn more… | top users | synonyms

2
votes
2answers
261 views

How do I render an animation where some frames appear twice?

I am animating a sprite. The sprite has 7 different frames, but the animation is 10 frames long. This is because 3 of the original frames appear twice in the animation: 3 -> 4 -> 5 -> 6 ...
3
votes
1answer
185 views

Most efficient way to implement delta time

Here's one way to implement delta time: /// init /// var duration = 5000, currentTime = Date.now(); // and create cube, scene, camera ect ////// function animate() { /// determine delta /// ...
0
votes
0answers
66 views

2D Platform Jump Animation

I have implemented the jump and want to add some animation to it. I have a tile for "preparing for jumping", one for jumping and one for landing. I use a time based system for jump and I already ...
0
votes
1answer
82 views

How to animate two interacting objects

I'm not very familiar with animations but as far as I know, most of the animations are done frame by frame. For example animating a character walking etc. However, let's imagine this scene: There's ...
4
votes
1answer
109 views

Why is my Slick2D spritesheet animation cut off when it loops?

I am loading a SpriteSheet with Slick2D and using the Animation function in the render method to display it. The spritesheet loads perfectly, but when the animation loops, it does so moved down a few ...
0
votes
1answer
69 views

How can I animate the stretching of a sprite over time?

My goal is to find the function to stretch a sprite like my example below, and then get it to animate during a certain time. It is like an interpolation, where the starting point is the original ...
2
votes
0answers
95 views

2D Animation Blending [closed]

I have been researching on 2D Animation Blending technique similar to what Unity 4.3 has. I know how Animation blending in 3D works but I have no idea how it works in 2D. How does 2D Animation ...
1
vote
1answer
119 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?
2
votes
1answer
462 views

How do I support animation with frames of different sizes?

I'm trying to create a simple top-view 2D rpg, in the style of Zelda and Secret of Mana, using PyGame. I've managed to make the beginnings of a game, with an animated character walking around. ...
1
vote
1answer
444 views

How can I move keyframes further apart in ToonBoom?

I've created an animation entirely out of screen capture fragments and keyframes, and I haven't allowed enough time for one portion. I'd like to simply stretch out the time between two keyframes, ...
0
votes
1answer
95 views

How big a transition from programmer to modeler/level designer/creator [closed]

So I think I may take a break from the programming side, I have put in 6 hard months learning C++ and graphics theory, I have learned a huge amount but over the last few days have been studying level ...
5
votes
2answers
223 views

What does the Particle engine do and how are special effects created/processed?

For example, take bullets, sparks, fireballs, light sabers, lightning bolts, any kind of special effect in a game. Are there various ways to implement these effects in a game. As far as I can see you ...
0
votes
0answers
154 views

Unity not updating sprite animations (possible bug)

I have a simple animation of a foot which i want to change sprites from one sprite to another, which is seen in the following two images: now as one can see in the animation timeline there is a ...
1
vote
1answer
85 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 ...
0
votes
1answer
756 views

Skeletal animation with Unity2D?

I want my character to aim with the mouse so, arms and head must move following mouse cursor and when the character is stand still it could change its stance a bit to accommodate the arms position. I ...
3
votes
1answer
369 views

How do I animate a tilemap in Flixel?

I am trying to animate a tilemap using Flixel 2.55. I found this code that apparently enables the use of sprites as tiles. To my understanding, this loops over the tilemap's graphic and replaces the ...
1
vote
2answers
124 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 ...
0
votes
0answers
141 views

Animate 2D Human body Skeletal with Hands using JS

I am working on a JavaScript app to create interactive 2D animations in the browser. I'd like to create a human body. Let's consider this simple scenario to better explain what I want to achieve: I ...
0
votes
1answer
48 views

How to find the right direction to plug a sword into a rig's hand after projecting it?

I've downloaded BVH animations and projected it following a book. I can now see a 3D moving rig and it looks alright. The problem is, now I want to plug a sword on the hand of the rig, but I don't ...
0
votes
1answer
119 views

Why doesn't my animation stop when I press a key?

I wrote a program that animates two squares diagonally across the screen, from opposite sides. Used Timer object to do so. The squares collide with each other and also with the frame boundary to ...
1
vote
1answer
111 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 ...
0
votes
1answer
43 views

How to use mocaps in your game if they don't loop smoothly?

Following suggestions on IRC, I've downloaded, parsed and incorporated the Free Release of 2500 mocaps to my game. I've noticed, though, that none of those loop perfectly. It does not connect and thus ...
0
votes
1answer
130 views

2D animation is not rendered as it supposed to

I'm working with Melonjs, i have configured everything to update the character movement and still get this "delayed" rendering of the character. below is the constructor // call the constructor ...
1
vote
2answers
641 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
votes
1answer
648 views

Animating a sprite with mecanim

I want to try animating sprites with the Unity's mecanim. All the tutorials I found used bipedal humanoids, which already have the avatar for the animator component and imported animations. What I ...
1
vote
0answers
1k views

LibGDX RPG walking animation [closed]

I've been trying to nail down a walking animation with libGDX. I'm making an RPG with the character that can move up, down, left, and right. I have this movement in a spritesheet. I've been ...
1
vote
1answer
1k 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
1answer
137 views

Multiple FBX Animation Files in Maya

I bought some animated models which came as FBX files from the unity asset store and I'm trying to export them to PNG sprite sheets in Maya (for an html5 web project). The file seems to be main fbx ...
1
vote
2answers
118 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 ...
2
votes
1answer
119 views

How can I reuse animated meshes?

When creating meshes, I made a mesh class and then used that one as base model and redrew that same mesh for each instance of an object with that mesh. (For eaxmple, one rock mesh, many rock objects.) ...
3
votes
1answer
533 views

Animations not accepted in animator

In the official Unity Animator State Machine tutorial video animation clips are dragged out from the assets folder into the animator and dropped. I have a 3D model that i bought online to experiment ...
0
votes
2answers
82 views

JavaScript character direction delay [closed]

I am developing a top down game and I'm having trouble with a delay in switching from one character walk direction to another, particularly if the previous direction key is still being pressed by the ...
2
votes
2answers
1k views

Rotate to a set degree then reverse and repeat in Unity

I'm making my first project in Unity, a simple game where touching objects adds points to the player's score. I'd like the objects to have a pleasant back and forth swaying animation on the Z axis. ...
0
votes
1answer
3k views

Switch character to play animation() in Unity3D using c# [closed]

I have two or more 2D character (Character A, B, n..). I made an animation on the character using the Animator class "AnimCharacter.cs". if i press the 'PgUp' character 'A' can call the function ...
1
vote
1answer
106 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 ...
3
votes
1answer
2k views

Moving a character according to the animation, rather than code

I'm using 3ds Max to export character animations in which my character is moving. I expected this to mean that the character will move in Unity, but it doesn't... For example, if my animation (in 3ds ...
0
votes
0answers
77 views

Skinning mesh with Hermite Interpolation

I'm trying to implement an skinning mesh and I use Hermite Interpolation for evaulating frame's position. When I use the normal interpolation t*p1 + (1-t)*p2, it run well, but when I change to ...
9
votes
3answers
5k views

What animation technique is used in 'Dont Starve'? [closed]

While playing a few games in my personal time off development I've stumbled across a survival 2D/3D survival game. The game was apparently made in SDL and GLUT (Dont starve) but what really amazed me ...
2
votes
1answer
204 views

How do I animate pieces between puzzle states?

I'm developing a simple C# puzzle game as a learning exercise, using OpenTK. It's similar to Puzzles and Dragons' puzzle part: The aim is to match 3 pieces to remove them. Removed pieces are replaced. ...
-1
votes
4answers
2k views

Too much animation work for 2d characters. Creating 2d character animations by prerendering an animated 3d model?

I've read a bit about creating assets for games and the consensus seems to be that 2D is cheaper than 3D in all aspects with the exception of character animation. That's caused by the need of ...
2
votes
1answer
130 views

Mixing animations

I'm working on a swing animation and mixing it with a turn animation in a motorcycle game. The issue is that for the swing animation to work while turning only the swinging arm has to animation, ...
1
vote
1answer
214 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
94 views

Can you export lighting models directly from 3D application to a real time renderer?

is it possible for example to insert lighting in a 3D Model software like 3DSMAX and export an animated model like md5,..etc. and export the lighting too ?
0
votes
0answers
49 views

FBX animation file - Fixing Multiple Roots

I have a collection of nicely animated fbx files that all have the same issue explained here http://www.unwrap3d.com/u3d/quicktip_xna.aspx under 'Fixing multiple roots' section. This requires ...
0
votes
1answer
212 views

How do you do FlashPunk-style animation in libGDX?

In FlashPunk, you can have multiple animations set, and then choose which one to play at any time, and it'll do it. Example: animatedSprite.add("running", [0, 1, 2, 3], 50); ...
6
votes
2answers
2k views

Animation Workflow from Blender to Mecanim in Unity 3d

I've recently started learning Unity and one of the things that's really really slowing me down is not being able to add custom animations to the standard FBX's you get from unity's app store. When I ...
2
votes
1answer
160 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
2k 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
votes
1answer
118 views

Animating values using splines

I'm trying to create a system similar to Blender's f-curves or Unity's animation curves (google it, I'm not allowed to post more than two links yet). It's basically a 2D spline where time is on the ...
5
votes
1answer
454 views

Why are my animated objects (from Blender) always playing at the global origin in Unity?

I created and animated a sledgehammer in Blender 2.67b using an armature. The sledgehammer has one animation (created using the Action Editor) called "Idle". I parented the imported sledgehammer to an ...