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

learn more… | top users | synonyms

0
votes
2answers
496 views

Cocos2d-x 3.0 animation frame by frame

As I know animations are actions. Now I need to play animation frame by frame. Say I have an animation from N frames. each frame should be played after t delay. Now I want to play animation frame by ...
0
votes
1answer
39 views

GameObject eulerangle rotation is off

In a game I am creating players can flip their character. So say the player does a front flip, it triggers an animation that plays to flip the car forward. I have the player as a child of another ...
1
vote
1answer
126 views

unity animation not starting

I have written the following code: public class TargetAnimation : MonoBehaviour { Animation anim; public AnimationClip Open; // Use this for initialization void Start () { ...
0
votes
1answer
67 views

Issues with importing bezier curve animation (curve does not distort?)

Hi guys i'm pretty new to unity and having a frustrating issue; I've created a spear gun with an animation using a bezier curve grouped to the main gun shaft and distorted using a bone (bone relative) ...
0
votes
0answers
5 views

LibGDX Child node is not following animation

So I'm trying to place a golf club as a child node of the hand of our "golfer", so it follows the animation the golfer has when the animation is invoked. However, once I hit "Check Swing" (the button ...
1
vote
2answers
42 views

Apply two animation on one object in unity

I am looking for a perfect example to apply two animation on same object and to run those animations simultaneously. In my game, a player is jumping as well as flapping. As per my research, I have got ...
0
votes
1answer
48 views

Animator.Play() only works the first time

I am creating a game in Unity 3d that is using an animation to move an object. For some reason the animation only works the first time it is accessed and from then on it acts as if it is not being ...
0
votes
0answers
31 views

Using blend trees for a simple 2d character

Let me start by saying that I'm not a animator and basically have no idea what I'm talking about. The character in the game has 3 states : indle(looks at camera) walk left and walk right. I've set up ...
0
votes
1answer
34 views

Perlin noise looks uncoherent on higher z

I was experiencing with my Perlin noise function and I tried to animate a 2D noise by changing the z value of a small amount every frame. However, as z increases, the result becomes stranger and ...
0
votes
0answers
24 views

Whe are my sprites invisible in the animation preview?

I'm just starting in Unity and now this problem came I out: As you can see, there is no sprite in the animation preview. Why is this happening?
0
votes
1answer
57 views

How do animation works with mesh?

I'm currently developing a game using OpenGL and my dev has run into a small problem. I'm having some problems understanding how "array of vectices works with animated object". For example, if we have ...
1
vote
1answer
89 views

Rotation in animation not working

I have a model of an SMG with arms exported from Blender and set to generic rig in unity import settings. I was creating an animation for this model in Unity Animation tab, it included changes in ...
1
vote
2answers
107 views

How do I use delta-times to determine the speed of a frame-by-frame animation?

I have a character spritesheet with 8 images. How do I animate it? At the moment, the sprite changes to a different image every frame, which makes the animation speed vary with framerate. I have a ...
0
votes
4answers
93 views

How to saving and loading animation curves

Is there any way to save an animation curve by playerprefs ? The animation curves in the inspector reset each time the script is changed (public variables added) I want record my animation In runtime ...
0
votes
2answers
43 views

Get enum value “string”, and get int value of that

Sorry if the title is confusing, but I literally don't even know how to summarise this into a title. So here's the problem: I have a list of combat moves for a character. I have an animation for each ...
4
votes
2answers
1k views

How do you chase a changing value with ease in and ease out

Assume you have a target that changes. Example: // on average every 1000 frames, move the target if (random(1000) == 0) { // pick a value between 0 and 999 target = random(1000); } Now, I ...
0
votes
2answers
51 views

Running subsystems at difference update intervals

I want to update the rendering at 60fps, but the logic at some lower rate, say 15Hz. But if an only moves when the game logic updates, then it would appear to stutter badly especially for lower ...
0
votes
0answers
12 views

Animator on a WorldSpace Canvas

Ok, so I have my world space canvas attached to the player object. In my script I have a reference like this : GameObject myWorldCanvas; Awake() { myWorldCanvas= ...
0
votes
1answer
45 views

Pixel Animation is tearing in Unity

I am working on a 2D game and I have created a simple sprite sheet. The sprite sheet represents a medkit. The size of the sprite sheet is 128x16 pixels with 8 different frames that animate the medkit ...
0
votes
0answers
22 views

Skin Mesh Animation Shader Issue

I'm having troubles with properly animating a skin mesh from an .fbx file. I feel like the issue is in the shader, but not sure what is going on. All I know is that I am getting unexpected results ...
5
votes
2answers
245 views

Isometric vehicle animation

I am working on a medieval isometric RPG in which the player can ride on horses and in horse drawn carriages. The player's movement is not restricted to the common eight directions; he may move in ...
0
votes
1answer
4k views

Unity animator controller animations don't work

I'm having problems animating a character pack I purchased from unity asset store. I've placed the character in an environment and created an animator controller. After I drag the animation that to ...
2
votes
3answers
8k views

How to disable play automatically on animation in Unity3d 4.5.1

Where is the option to disable the 'Play Automatically' function for animations in Unity3d 4.5.1. In previous versions, there was a button under the Animation tab to disable the play automatically: ...
0
votes
0answers
12 views

If I attach a RunAnimation to my Player and move it, the Camera starts to freak

If I make a RunAnimation for my Player in 2D, then there is one Spot it works and I can move perfectly but if I move my Player to a different position,my Player stucks in Midair and my Camera starts ...
0
votes
0answers
26 views

Best way to do discontinuous animation? Or: Best way to animate a character with a jerky center of mass?

I am using Unity and need to know how to use it animation system properly for… well let me describe it below. In this game I have this big 3D block-like character that moves in an unusual fashion ...
0
votes
0answers
51 views

How to sync animations of 2 different characters in Unity 3D?

I am working on an endless running 3d game. I have 2 characters. One of them is a small kid and another one is a security guard. Both characters and animations are exported as separate FBXs. The ...
1
vote
1answer
81 views

How to clamp a direction vector within a direction pyramid?

In 2D you can specific an angle range such as [-45 to +45] and clamp a 2D direction vector within that angle range. I want to have something similar for 3D. I want to specify the allowed directional ...
2
votes
1answer
154 views

JavaScript 2D liquid flow

Brand new to games/graphics and I'm attempting to find a method to create a 2D liquid effect with JavaScript. Ideally I could adjust the viscosity and flow from a gas/fog effect to oil and between. ...
0
votes
1answer
105 views

Importing .anim files created using the Unity Animation controls

Our artist created some .anim files using the built-in Unity Mecanim system (where you use keyframes and drag various body parts to construct the animation). However, now we're trying to export them ...
1
vote
1answer
129 views

Transform texture coordinates when using shader

Assuming I define four vertices of a quad with texture coordinates that cover a whole texture or region of a texture, I can animate these coordinates by setting a transform using SetTransform( ...
1
vote
2answers
113 views

Can't attach animation to script

I'm working on a little game (which is also my first one) and I want to insert a splash screen at the beginning (after the Unity one). I've finally achieved to add a fade-in and a fade-out transistion ...
0
votes
0answers
41 views

Lip Sync Sprite Animation in LibGDX

Is there any free sprite package to achieve lip syncing animation ? This is what I have in mind. User will input text The character will talk with the appropriate lip sync. I know there are ...
0
votes
1answer
25 views

Slaving OpenSceneGraph to an external time base?

I'm working on an OpenSceneGraph animation, and I want events in the animation to be synchronized to a time reference provided by my audio player (BASS or FMod). Yes, this is a demo :) . Which time ...
0
votes
0answers
57 views

Responsive animation based on mouse position

I'm currently developing a topdown 2d rogue-lite game in Unity, where the combat will be mainly focused on archery and different adaptions based on archery. My problem is that I have a hard time ...
0
votes
2answers
108 views

Unity animations - Is the animation component really deprecated?

I was looking for a way to create simple transform animations for 2d objects. As example, I wanted to animate all the objects of the scene when the game is paused (i.e. I just want to move the objects ...
1
vote
2answers
201 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): if (Input.GetButtonDown ("Fire1") && ...
0
votes
0answers
33 views

Importing Fbx single animation, multiple moving parts

I've got a model from Maya which has a ring that rotates 0° - 60° over frames 1-300. I've exported to Fbx and imported into Unity. I can see the animation (Take001) and can trigger it. Everything ...
0
votes
2answers
41 views

Maya Rigging - Shoulder joint attached to head?

I'm fairly new to modeling and rigging in Maya; so my question is: in the image below how can I unbind the rigs head from the shoulder pivot? I've searched online for why this occurs and I can only ...
4
votes
1answer
100 views

Mesh's triangles don't move properly during skeletal animation

I've been trying to implement skeletal animation in my engine using this tutorial, and I've been having problems. Using the model they provided, I get results like this: But on some other models, ...
1
vote
1answer
135 views

Is it possible to interpolate different sprites? [duplicate]

I can interpolate different animations based on position, rotation, and scale. I want to do the same for different sprites, automatically. For example, lets say I have a soda can being crushed. I ...
5
votes
2answers
5k 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 ...
2
votes
1answer
53 views

Ease action to simulate a clank in a moving or rotating device near end of the trajectory

You know those mechanisms that moved or rotated, and then just a few millimeters near the end of the trajectory they oppose a bit of resistance and then clank to the final position. I want to ...
1
vote
1answer
143 views

How to Incorporate two loops: One for Turn Based Gameplay, and another for ongoing actions

I'm working on a roguelike using libtcod. So far everything works well with the turn-based functions. Essentially, when a player takes a turn, it triggers everything to advance. What if I have an ...
0
votes
0answers
24 views

Animation with pivot-modification in Mecanim

Assume I have two animation cycles: Walking Crouching Both assume that the model's pivot is on the same level as the model's feet. Now I also have two animated transitions: Get on all fours ...
0
votes
0answers
41 views

Use Same Animation To All Object Having Diffrent Position

I am new in unity. create one animation to the object and create 10 duplicates of same object. I want to apply Same animation to the all objects without starting animation at the same time and without ...
0
votes
0answers
55 views

Start another animation on animated object after collision

I am developing a simple 2D game in Unity. I want to start another animation on already animated coin object when player collide with that coin. I have tried in many ways, but could not found anything ...
0
votes
0answers
79 views

How to programmatically create an animation that linearly interpolate between two rotations?

I would like to programmatically create an animation that linearly interpolate between two angles (using the shortest path). I wrote the following code : Animation anim = ...
0
votes
1answer
590 views

Animation, Interpolation, & Structure

I have been working on animation in my small game engine recently and I am implementing some interpolation to be used with skeletal animations. I know how to do interpolation but I am not sure where ...
1
vote
0answers
13 views

How to add (not blend) non-looped animation clip to looped animation with Mecanim?

I have a GameObject with Animator and looped animation clip. This animation changes X coordinate from 0 to 10 and back. I need to add another animation to the first one that increases GameObject's ...
1
vote
1answer
159 views

How to play an animation backwards in Unity?

I know this question has been asked before but it all involves using the Animation(?) component, so that is no longer any good in Unity 5.3.1f1, I explain a bit more later. I'm trying to simply get ...