Quantcast
Channel: Questions in topic: "stopping-animation"
Browsing all 60 articles
Browse latest View live
↧

Canceling animation.Play functions after being used

I've used this as a door opening script:function OnControllerColliderHit(hit : ControllerColliderHit){ if(hit.gameObject.tag == "Door") { hit.gameObject.animation.Play("Door_Open"); } }How do I cancel...

View Article


CORoutine does not completely stop

Hi,Got some code with the help of this site, but have a little problem.When I press the applicable button, and hold it in, everything works, but if I only press the button and release it, it stops the...

View Article


Sound and Animation script assistance needed.

Hi there!Hope all is well... I'm having problems playing sound clips, and also problems with animations.I have 2 sound clips I want to play, first, "PowerUpStart" when the "Power Up" animation is...

View Article

Play Image Array Once and Stop

Greetings and Salutations Unity Answers, I was reading a question on Unity Community about image arrays and sequences. The writer referenced a script by cerebrate that seems really cool! My question is...

View Article

stopping gun fire animation during reload

Hi, I am a bit new to unity. I am using the machine gun script from FPS tutorials. I made a fire animation,gun bobbing animation and attached a script to the machine gun to make them work. I want the...

View Article


Can Animation detect when Audio Completes

I have a lip sync script I am working on but can't seem to find a direct answer to this particular question. Is there a simple script that detects the moment when an audio file has just stopped and...

View Article

boolean to stop animation does not work?

Hi, i don't understand why the animation "d1" does not work, d1 is not animating, when i set the boolean "hasPushed" to "true", so that the animation does not repeat : function Update () { //... /*...

View Article

If You add a RelativeForce to an Object like a Sphere, Does Speed ever...

In my test my ball rolls with AddRelativeForce( Vector3.forward * 2500) It takes that force to knock down the brick wall. So it colides and the bricks fall over and then the ball turns the other...

View Article


If an specifc animation is playing dont let other animations play.

I have a gun with an shooting animation and a reload animation, and a raycast script with a reload function. - Raycastscript is attached to MainCamera - Animations is attahed to the gun - The gun as a...

View Article


Basic Movement on 2D (C#)

Hello, this is mi first time posting on this community as I installed and I ve been working working on Unity since yesterday. I started my first project which involves a character moving around some...

View Article

How to call an attack animation that will stop when you stop clicking attack...

We are creating a 2D side-scrolling game using c#. We have a script to call our attack animation when you click 'A'. However we can't figure out how to call the idle/run animation once were done...

View Article

Stop animating children at runtime

I have a 2D animation with curves moving children objects of a enemy. In game, the player can hit and knock off parts of the animating enemy, but no matter where the children are in the scene, they...

View Article

Mecanim Animation won't stop looping.

Hello, I have set up a walk/run cycle for a Character that I am playing with. I am having an issue where on touch input the Mecanim transition will take place (playing the animation) but the animation...

View Article


iTween StopByName

Hi everyone, I stumbled on an issue when using iTween.StopByName. The issue is that if I try to use it by StopByName(" "+gameObject.GetInstanceID()) throws me a MRE saying an object of type GameObject...

View Article

Animation stops when starting a new one

I have two animations imported on a blender model and when I start one animation in code, it plays. When I start the other animation, it stops the first animation and resets the position of the model...

View Article


how to stop an animation at a specific frame on animator?

Hi, I've seen all the forum topics on this subject but in my case the situation is a little bit different and I don't know what to do :( If someone helps me, I would be very grateful :) I have an...

View Article

if (Input.GetKey(KeyCode.W) && Input.GetKey(KeyCode.LeftShift)) with ,...

**It says something about ints in error log, but i thought this worked in older unity c# correct me if i am wrong i need to get around this it is driving me mad i cannot find any links for c#, hope...

View Article


stopping joint animation/attaching things to joints

I have an animated character and can control any joint with lateUpdate(). That means I'm always updating that joint to the same spot, however. I just want to place a few joints of a character...

View Article

How do I pause and unpause only some GameObjects at a time

Hey this is my first game I'm designing. I'm trying have to two or three "worlds" in a level. When I hit the spacebar from my initial character, I want to be able to toggle through the list of...

View Article

stop animation on a single joint?

Is there a way to tell one joint in an animated character to stop? For example, a shoulder (elbow, wrist...) of an arm holding something should stop swinging with the run cycle and just stay out in...

View Article
Browsing all 60 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>