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

learn more… | top users | synonyms

0
votes
1answer
64 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
159 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
113 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
144 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
47 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
2k 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
59 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
16 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= transform.FindChild("nameOfObject")...
0
votes
1answer
57 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 ...
1
vote
0answers
28 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
262 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
5k 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
9k 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
27 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
81 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
130 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
192 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
114 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
144 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
127 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
43 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
74 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
145 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
784 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
48 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
42 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
107 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
172 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
152 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
31 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
42 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
65 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
102 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 = gameObject.GetComponent<...
0
votes
1answer
605 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
14 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
377 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 ...
0
votes
0answers
27 views

Creating & loading animation from one class in libGDX

i'm new to libgdx and i wonder if i can create all the animation for my game in just one class so i can just call it to my main game screen class,if it is possible can someone teach me how to do this? ...
0
votes
0answers
52 views

Unity3D :Player won't go back to idle state

I'm creating a topdown 2d click to move game on unity (as most of you may already know due to recent post) and having trouble with the animation. I created two states, idle and walk, in the animator ...
0
votes
2answers
70 views

How are animations specified by an artist but implicitly understood by the game engine?

I'm trying to understand the relationships between 3D models (files) and the games that load and use them. As a software engineer, I'm willing to make the few following assumptions: I would assume ...
0
votes
1answer
71 views

Character on Character fighting animations

sorry about the vague title, but these couple of videos/images might explain my situation a bit better: https://www.youtube.com/watch?v=MG1mNyjNuXk (Wolfenstein the Old Blood) https://www.youtube.com/...
2
votes
1answer
4k views

Method Animator.SetBool sometimes is not working (or not triggering) in Unity2D

I have trouble with Animator in Unity2d. I have a main character for my game. The character has his own animation clip for fighting. When the player touches the screen, i am starting animation. When ...
0
votes
0answers
190 views

Unity 5 blendshape on a part of mesh

I have a blendshaped face mesh on rigged character in Unity 5. I imported whole character with face from Maya using .fbx format. But I'd like to have a single mesh (body + face) since having separate ...
1
vote
1answer
76 views

How to Programm A Dialog box with a typewriter effect in Java? [closed]

Im am very new to java and programming so I might be a bit annoying to work with but please bear with me :D So As the title says I'm trying to figure out how to properly program a working dialog box ...
1
vote
2answers
1k views

Playing a sprite sheet animation in Cocos2D-x

I'm trying to create an animation using a sprite sheet in Cocos2D-x. I'm doing the following. The game doesn't crash but the screen is still blank. bool HelloWorld::init() { //////////////////////...
3
votes
0answers
204 views

How can I interpolate between two frames of a sprite-based 2D animation?

For example, I'm looking to animate at 60 frames per second, but clearly my artist isn't going to hand-author 60 frames of art for every second of an animation clip and even if he could, it would only ...
4
votes
1answer
265 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 ...