Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [animation]

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

1
vote
1answer
71 views

Which style/technique is more time efficient for an inexperienced artists? [closed]

For a top-view 2D mobile game where you have to create and animate humanoids (human, golems) and "objects" like fire, boulders, levers, etc. Considering the artist has no prior experience with ...
0
votes
2answers
3k views

Play animation of the jump properly in Unity2D

Here is what I want to do: when player jumps I would like to play an animation of jumping once on playing it I would like to stop at the penultimate animation frame till the player falls to the ...
2
votes
1answer
571 views

Change all boolean parameters of an Animator in Unity

How can I change all boolean parameters of an animator to false? Here is a solution which I found: ...
0
votes
0answers
47 views

Moving point lights decreases intensity

I'm animating a point light with the Vector3.Lerp() function. The intensity of the light decreases to zero during the animation. How can I ensure that the point light intensity doesn't decrease over ...
0
votes
1answer
773 views

Animating child objects via parent object animator in script

I'm using unity 5 I'm trying to animate multiple child objects via a parent object. The animation worked in the animation view but would not work when I tried to preview the game. In the script I use ...
0
votes
0answers
59 views

Grab gameobject using charater model in unity 3d

I'm making a bowling game in which I've imported various character for a player. I've created animation upon models. I have to grab the nearest ball from the rack as shown in the figure using ...
7
votes
2answers
414 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 ...
0
votes
1answer
2k views

How to stop an animation on last frame until condition is met in Unity?

I have an animation (fishing) I want to play backwards when the player catches something or cancels the action. Playing the animation backwards is as simple as setting the speed to -1, ie: ...
1
vote
1answer
772 views

How does one make both movement and animation to sync up and happen simultaneously?

I am very new to Unity and game making and would appreciate if you would cope with me. I have made a very basic prototype of character animation and movement, however trigger that is supposed to fire ...
0
votes
1answer
40 views

nullException issue [duplicate]

I have a problem when I was trying to change a state within my character. I wrote the code below ...
1
vote
1answer
1k views

Child GameObject doesn't follow parent's transform

Look at this picture first: I have model that has sword in his hand. I added a cube named "Attack Collision" and located to blade position. And then set the hand to parent. But when the game starts, ...
0
votes
1answer
84 views

Initiated a animation in unity via use of an animator component

I've written a coroutine that starts an animation. GameObject.FindWithTag(names[number]).GetComponent<Animator>().StartPlayback(); This is the line of code ...
0
votes
0answers
46 views

Animating two characters for a coordinated “finisher action”

I've been developing a 3D action game with a small team (we aren't that experienced sadly) and we want to implement some sort of "finisher animations", seen in a lot of 3D action games where the ...
1
vote
0answers
52 views

taking a static animation and making it move unity3d

Say you have an animation of a bird flapping its wing. Some animations actually moves the Avatar either forward, backwards or to the side. My question is, is it possible to take that flapping ...
0
votes
0answers
111 views

Unity 2D: Legacy Animation

I am trying to make a script to play an animation when I am hit in my 2D platformer. The error I get says something to the effect of "Invalid Layer Index '-1'" and I don't know how to fix it. Here is ...
0
votes
2answers
367 views

Play animation with the help of the animator once, wait until it ends playing and continue script code

How can I play animation with the help of the animator once, wait until it ends playing and continue script code? I am playing an animation with the help of the animator this way: ...
0
votes
1answer
240 views

SFML Animation class as a strategy or an inheritance

everybody. I need to add animations to my game. And I have a question. I found AnimatedSprite class on SFML Github which is an inheritance, but in my project, I am using a lot of elements made with ...
2
votes
1answer
68 views

Root Animation unusual position and non root animation snaps back

Im trying to do a stop animation . when i release the W key then from Run it will do this animation then goto IDLE . But somehow this is not working right. as you see in those videos below. So how do ...
2
votes
0answers
57 views

Skeletal Animation: No initial bone rotation

I am currently trying to implement animations in my game. I am having an issue where the bones do not rotate properly. In my program, I apply an inverse bind pose to each bone to move them to bone ...
0
votes
0answers
132 views

User can jam on the attack button and gets the Player Character stuck in an animation.

I am having a problem where the user can jam on the attack button and get the player character stuck on the last frame of the animation. In short my method for melee attack works like this. Get input ...
1
vote
2answers
217 views

Precise punch animation for unity

I'm using blender to model, rig and animate my character for a Unity game, but there is something that I can't figure out by myself neither find on the internet, for example: Lets say the main ...
0
votes
1answer
1k views

How to detect when the current animation is finished in code in Unity's Animator? [duplicate]

I have a model with an animation controller. I set the states and parameters for transitions between them. Now I need to make the model play its animations in the order I want. I can use: ...
6
votes
1answer
118 views

What takes up more processing power between whole character models or models that are pieced together in Unity?

In terms of performance when it comes to animation what takes up more processing power: Whole character models or models that are pieced together? (1 object vs multiple objects). I also wonder if ...
0
votes
1answer
429 views

How To Animate Skeletal Interactions (Hugging, Handshakes etc.)

I am fairly new to animating and IK systems, but I've got the basics down to some extend. Now I am looking into how to go about skeletal actor animation interactions such as handshakes, fighting, ...
0
votes
1answer
54 views

What programs could I use to render an animation based on points (“atoms”) rather than models? [closed]

I've rendered the following animation using JavaScript and canvas: https://www.youtube.com/watch?v=AMLqe5HdVok For that, I used points exclusively - i.e., there is no mesh/trigs, not only the ...
2
votes
0answers
36 views

Is there an engine-agnostic tool for editing curve animations? [closed]

I am looking for a tool that allows to edit 3D animation curves. What I want is something similar to how the animation system works in Unity or others. Being able to create a timeline of ...
1
vote
1answer
342 views

Instantiated objects sharing the same animator cannot animate independently?

I have two scripts and an animator. The first script is attached to an empty gameobject and creates eight plane (for use as cards). The second script runs a flipping animation if the plane/cards are ...
2
votes
1answer
2k views

How do I use coroutines to animate properly?

I have a coroutine, which I called from the Update() method on every click. First, I call AddTrunk() to add to my ...
0
votes
1answer
275 views

Change Time.timeScale during an animation event - Unity

I have an animation. A few seconds after this animation starts I set an animation event that is correctly being triggered. This animation event calls a method where I am trying to modify ...
0
votes
2answers
384 views

AI Algorithm to make enemy smarter from level to level in Runner game

I am designing a City-Runner game in Unity 3D Engine.I am a beginner in game development (not in programming). The idea is really simple, the Runner will be followed by AI enemies, and if caught by ...
1
vote
0answers
59 views

Why is my animation glitching?

The Animations done is 3ds max works great and smooth as they should be, problem happens when i import them to unity, they seems to be glitching and noncontinuous at some parts, all i did was ...
1
vote
0answers
415 views

Making animation clip at runtime from available sprites

i have sprite sheets of different resolution for targeting different mobile/tablet resolutions. the problem is that i have to choose sprite sheets from all the available one depending upon target ...
0
votes
1answer
290 views

Animator get number of animations (Unity)

In C#, how would I get the number of animations in an Animator Controller? So I want to find out how many animations there are in an Animator Controller, and have this number in script. Thanks in ...
1
vote
1answer
368 views

How to make my animation play once?

In 3ds max, I've made a Cannon that sets itself up, but I only want this animation to play once, here's where I'm trying to make it loop only once: When I click the toggle at the bottom, it stops the ...
2
votes
1answer
437 views

How to tween animated sprites?

So I have an animated sprite of 15 frames, needless to say, at 15 frames, it plays jumpy with a low frame rate. I want to increase that, by somehow tweening or generating intermediates between the ...
0
votes
1answer
131 views

Multiple instances of same sprite class showing different animation frames in libGDX and box2d

So here is my problem. I created an enemy class which extends Sprite in libGDX with a Box2d body in it for collision detection. My code calls the enemy class dynamically within the game in a loop, but ...
0
votes
1answer
75 views

How can I efficiently resize sprites every frame?

I want to animate UI elements, like HP bars, by moving and resizing them. How can I efficiently resize sprites every frame? I am using the LibGDX framework.
2
votes
1answer
219 views

Smoothly extend eased animation to new target value

I am implementing animated double property from scratch, currently with SmoothStep easing, however when new target value is set, there is visible "jump" in ...
1
vote
2answers
388 views

Need some help with Unity 2d animation controller

So my animations don't transition right. I have a 2d top down prototype project and animations for 4 directional movement and an idle position. Right now i have the movement set up so the right ...
7
votes
1answer
459 views

How do I make spring animation for a 2D game?

I want to create a realistic spring object, as a sprite, that compresses and expands when a force is applied and released, respectively. The only thing I know is that it requires some complex ...
0
votes
0answers
74 views

Rendering 2D images in layers using JME3 and Lemur

After some research, I discovered that using the LayerComparator provided by Lemur allows proper layering of images. I combined the logic of this JME3 forum thread and the ...
1
vote
1answer
501 views

Snake game made in processing

I have been working on this snake game for a few days, and I have the basics down, but I was wondering if anyone could help me figure out the tail. I need it to follow the body, as it does in the ...
0
votes
2answers
72 views

Limiting GIF animation rate to its frame delay in JME3

I've figured out how to render a GIF image using this library as follows: ...
2
votes
1answer
678 views

How can I have realistically bending/flexing paper?

I am a new hobbyist to Unity and I working on a game where the player goes around picking up clues in the form of paper notes to solve a mystery. So far, thanks to the help I got here, I was able to ...
2
votes
1answer
468 views

How do I create a Shadow of the Colossus - like climbing system?

I'm developing a game in Unreal Engine 4, and I want to implement a climbing system just like in Shadow of the Colossus, where you can grab and climb onto specific parts of the monster (fur, in this ...
0
votes
1answer
152 views

Unity 2D sprite animation keep in sync after setting inactive

I am creating a 2D sprite-based game and the tile map contains many animated background tiles (such as water). The map contains many areas that can be transitioned between in a Zelda style (camera ...
0
votes
1answer
910 views

How to render an animated gif to the screen using SDL2?

So, I have an animated gif that is 5 frames (not the same as what is seen in this tutorial). Upon opening, my gif is already animating, unlike the png in the above tutorial. How can I render it to ...
3
votes
1answer
176 views

LibGdx animation sequence

In my game the character movement animations work fine but now I'm trying to do a sequence of programmatic animations, for an enemy character, and it's proving to be a pain. I'm just doing it on ...
0
votes
1answer
485 views

How to animate alpha channel of sprite color using Animator in code in Unity3D?

I tried Animator + AnimationClipPlayable, but failed. Sprite disappears completely after 1 second, without animation happening. If I set "1" instead of "0" for final point, then nothing happens. Code:...
1
vote
0answers
342 views

How can I import animated 2D content from Animate CC into Unity?

I'm a programmer making his efforts to get a bit into art. I have basic drawing and animation knowledge that I think is enough to have some simple games rolling. I have used several programs to ...