Questions tagged [animation]

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

Filter by
Sorted by
Tagged with
43 votes
8 answers
28k views

How to learn 2d animation? [closed]

Where can I learn how to do simple 2d animation well? Or is it really just literally drawing every single frame of something in photoshop? Is there tips or tricks? Tutorials to help get started? Also,...
user avatar
  • 891
14 votes
5 answers
8k views

Which is the best approach to make a 2D character to be able to use tons of different equipments when in action?

I want to create a 2D game but I'd like to have the character to wear tons of different equipments on different combinations, like a RPG or something. So let's say the user changes his/her shoulders ...
user avatar
10 votes
1 answer
13k views

What's the best way to create animations when doing Android development?

I'm trying to create my first Android game and I'm currently trying to figure out (with someone that will do the drawings and another programmer) what the best way to create animation is. (Animations ...
user avatar
25 votes
8 answers
21k views

What is a good tool for producing animated sprites? [closed]

Has anyone come across a software package that allows you to build animations in a similar way to how you can in Flash (i.e. using techniques such as tweens & bones & easings, etc) and then ...
user avatar
  • 848
25 votes
9 answers
19k views

Tips and Tools for creating Spritesheet animations

I am looking for a tool that I can use to create sprite sheet easily. Right now I am using Illustrator, but I can never get the center of the character in the exact position, so it looks like it is ...
user avatar
  • 2,965
30 votes
3 answers
8k views

How do I lerp between values that loop (such as hue or rotation)?

View Demo I'm trying to make the joint rotate smoothly around the center of the canvas, toward the angle of mouse pointer. What I have works, but I want it to animate the shortest distance possible ...
user avatar
7 votes
1 answer
9k views

Tools for 2D skeletal animation [closed]

What good free and widely used tools are there for editing 2D skeletal animations? Preferably, one that allows me to write custom animation exporters. One pretty good indie tool that I know of Demina,...
user avatar
  • 3,167
11 votes
2 answers
2k views

Easing Functions

I started to involve myself with easing functions (Flash AS3), came about in trying to understand TweenLite and Robert Penner's website: http://www.robertpenner.com/easing/ The question I have is ...
user avatar
5 votes
1 answer
9k views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...
user avatar
  • 91
5 votes
1 answer
1k views

How do I make a jumping dolphin rotate realistically?

I want to program a dolphin that jumps and rotates like a real dolphin. Jumping is not the problem, but I don't know how to make the rotation. At the moment, my dolphin rotates a little weird. But I ...
user avatar
  • 89
24 votes
2 answers
12k views

Animation Blending Basics

Say I have a framework with characters that can run and walk and of course, stand still. Am I right in thinking that animation blending is the process of smoothly transitioning between these by ...
user avatar
  • 3,280
14 votes
2 answers
5k views

Data-driven animation states

EDIT: To clarify what exactly my question is: is this a good way to handle animations / animation state in a game engine with the eye on content creation / management? What are the flaws in doing it ...
user avatar
  • 590
8 votes
3 answers
8k views

How can I generate isometric sprite sheets from 3D animations?

I want to generate sprite-sheets for an isometric projection of various 3d assets purchased from the Unity3D asset store. I'd preferably also render the normal maps. I am a programmer, but new to 3D ...
user avatar
6 votes
1 answer
2k views

2D animation: Animated 3D models or sprites with animation frames?

Starting out with new project, I am stuck choosing between: 3D textured model animated directly through the renderer 2D sprites and drawing each animation frame The game will be 2D platform, I would ...
user avatar
  • 215
17 votes
3 answers
14k views

Ledge grab and climb in Unity3D

I just started on a new project. In this project one of the main gameplay mechanics is that you can grab a ledge on certain points in a level and hang on to it. Now my question, since I've been ...
user avatar
4 votes
1 answer
5k views

How do I make a 2D character aim their gun toward the mouse?

Heli Attack is a perfect example of the shooting mechanic I'd like. The character aims perpetually toward the mouse. What's going on here? From what I've read so far, you could separate the arm and ...
user avatar
  • 221
18 votes
5 answers
5k views

Sprite Animation Best Practices

I'd like to get a better handle on how people in the real world are handling their animation. Do you load 1 large image and then draw different rectangles based on the animation frame? Do you load X ...
user avatar
  • 295
24 votes
4 answers
8k views

How to animate abstract 2d top down water texture?

I currently implement a game with a top down view of the ocean. I use the following, a little abstract texture: The actual texture is transparent, I added the green-like color for clarity. The ...
user avatar
12 votes
3 answers
12k 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 ...
user avatar
  • 2,014
8 votes
1 answer
42k views

How can I make a sprite-sheet-based animation system? [closed]

I want to make animations based on a sprite sheet, but I'm stuck implementing it. The key things I need my code to do are: Play through a set of images once (e.g. a jump animation) Loop through a ...
user avatar
  • 97
11 votes
3 answers
10k views

Exporting Blender bones

I wrote an exporter for blender models that works great for meshes. I'm attempting to extend that to bones defined in blender. However I haven't found good information for exporting bone data. How can ...
user avatar
  • 72.7k
13 votes
6 answers
98k views

Unity: detect animation's end

I need a way to detect if animation's clip finished playing and then execute a certain code. Here's some script, that I wrote (called in Update): ...
user avatar
  • 131
4 votes
1 answer
1k 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 ...
user avatar
  • 171
4 votes
2 answers
3k views

canvas ball physics animation

I want to animate ball in html canvas like this. ctx.beginPath(); ctx.arc(75, 75, 10, 0, Math.PI*2, true); ctx.closePath(); ctx.fill(); start position is left ...
user avatar
1 vote
4 answers
29k views

How can I do something only after an animation has finished?

I'm making this 2D platform based game. Basically what I want is when the player walks into spikes (which have a "deadly" tag") it displays the animation that has the parameter of animate with the ...
user avatar
2 votes
2 answers
3k views

Animating 2d character which can wear items?

In my game the player can control a character which can wear items. Now it is not visible but I would like to make it visible like for example in Terraria, Starbound, etc. In my game a player can ...
user avatar
  • 627
1 vote
2 answers
161 views

Humanoid rig breaks my animation

The humanoid rig behaves strangely with my animation from Blender. Here is a demo of the problem - video. Can anyone suggest what the problem might be?
user avatar
1 vote
1 answer
230 views

My position is "changing" when handling animation

I'm trying to learn Monogames(Old XNA) and how to develop a 2d game. I'm in the process of animating my sprites. It works but there are somethings that are weird to me. For some reason when ...
user avatar
  • 31
1 vote
1 answer
1k views

LWJGL—How to Animate and Render Characters Using a Sprite Sheet

I'm making an RPG similar to Super Nintendo RPGs in the early '90s. I'm handling movement much like Squaresoft's Final Fantasy IV. Notice that the player never actually changes his x and y positions ...
user avatar
  • 992
1 vote
1 answer
1k views

Unity 2d Animation from spritesheet: How can I move the character according to the animation?

I am trying to implement an attack animation that should end up in moving the player by some distance. The animation would be something like this: As you can see the position of the player should ...
user avatar
  • 176
114 votes
7 answers
257k views

How do I get started making Android games? [closed]

I am new to game development. I am interested in developing 2D games for the Android platform. What is the best place to start with (i.e) What are the basics and how to proceed? I already have ...
25 votes
2 answers
8k views

How to programatically retarget animations from one skeleton to another?

I'm trying to write code to transfer animations that were designed for one skeleton to look correct on another skeleton. The source animations consist only of rotations except for translations on the ...
user avatar
7 votes
2 answers
7k views

How to transition between states and mix states in a finite state machine?

I don't understand how to use a finite state machine with the entity controlled by the player. For example I have a Mario style game (2d platform). I can jump, run, walk, take damage, swim, etc. So ...
user avatar
  • 88
20 votes
5 answers
2k views

Game actions that take multiple frames to complete

I've never really done much game programming before, pretty straightforward question. Imagine I'm building a Tetris game, with the main loop looking something like this. ...
user avatar
9 votes
2 answers
4k views

Following a path in a smooth fashion

I am currently making a 2d tower defense game with a static, predetermined lane that the enemies follow (i.e. towers cannot block the path and path finding is not the problem I am trying to solve). I ...
user avatar
13 votes
2 answers
4k views

Should I be using spritesheets, because of or despite of my vast number of images?

I am developing a 2D game, and I have a lot of sprites. I used 3D animations and models to render into 2D, to give them that "Fallout" or "Diablo" look to them. It is also easier than drawing by hand, ...
user avatar
  • 868
10 votes
3 answers
6k views

How to update entity states and animations in a component-based game?

I'm trying to design a component-based entity system for learning purposes (and later use on some games) and I'm having some troubles when it comes to updating entity states. I don't want to have an ...
user avatar
  • 662
11 votes
3 answers
7k views

Animation in OpenGL using 3D Models

I have created a model in Blender. Now i want to read that 3D model in my c++ program. I figured that a model can be exported to various file formats e.g. .obj, .3ds or COLLADA and then can be read in ...
user avatar
  • 689
4 votes
1 answer
3k views

How to "swing" bounding box and update collision for sprite swinging a weapon?

I have a simple question about sprite swinging weapons. I am making an RPG and would like something other than stabby-swords, so why not swinging swords? I have a bounding rectangle for them, and the ...
user avatar
  • 781
13 votes
1 answer
9k views

Common way of animating 'motion' for walk cycle animations

I've just posted this at the Blender artists' forums before realising I would probably get a better response from a more game development-specific audience, so apologies for cross-posting! It's for ...
user avatar
11 votes
2 answers
5k views

Efficient skeletal animation

I am looking at adopting a skeletal animation format (as prompted here) for an RTS game. The individual representation of each model on-screen will be small but there will be lots of them! In ...
user avatar
  • 6,867
10 votes
4 answers
715 views

How do I interpolate around a rectangle?

I want to make a fancy animation where a point travels around a rectangle. I want to find the point's position at a time t. The rectangle is given by ...
user avatar
  • 641
5 votes
1 answer
1k views

Converting time of day into a smooth day/night variable?

I'm trying to make a smooth day/night cycle for a game project that I've been working on. I've already set up a clock that adds deltaTime to seconds, wraps seconds to gameMinutes, etc. The issue that ...
user avatar
1 vote
4 answers
29k views

smooth movement pygame

Hello im trying to learn more about smoother movement in games. I have created a little program to hopefully help me understand this. As far as i can tell i am suppose to track time, and update ...
user avatar
15 votes
5 answers
6k views

What's the best head-bob formula?

Given a point in space, a direction of travel, and a time since start, what's a convincing, non-sickening formula to simulate head bob? What's been successful in previous games? Has there been any ...
user avatar
  • 5,492
5 votes
1 answer
4k views

How Plants vs Zombies animation is done?

I really like the plants vs zombies style of animation and it doesn't look complicated yet the result is really good. I doubt it's made of sprites seeing there's a large number of animations, ...
user avatar
  • 2,891
4 votes
4 answers
1k views

Vary speed of enemy smoothly

Hey. I'm trying to create an enemy that travels at a speed s on screen but I'm having trouble with trying to make the speed vary in a smooth motion. Basically, I ...
user avatar
  • 367
4 votes
3 answers
2k views

Player sprite animation in 2D platform game

It's pretty easy to get animations rolling from a sprite sheet. Though which ways there are on combining the animations with player dynamics and motion? I've figured there's two starting points ...
user avatar
  • 262
1 vote
2 answers
2k views

How do I recreate this 3D "flying through space" effect resembling a tunnel?

On the "Final Destination" stage. in "Super Smash Bros. Brawl" and "Super Smash Bros. Melee", the players fight on a platform that is seemingly moving through space. I see particle effects, but I don'...
user avatar
  • 303
9 votes
2 answers
827 views

How to avoid spaghetti in the animator?

I am working with animations in Unity and so far I have made only four (Up Down Left and Right) and my animation window looks following... Problem is that if I was moving Up I want hero to stay ...
user avatar