x


Script to override motion while animation plays

Ok, below is my attempt at explanation of my situation, the top version is just the facts.

While Player holds Fire1 for animation his forward motion (arrow key) comes to a stop. If Player Character comes to stop below (10mph) then Fire1 is over ridden.

Imagine if you will...

A guy flying down the road away from the bad guys, he has a machine gun on the top of his car however he has not found his buddy to man the gun. He can hit Fire1 to switch to the gun animation firing endlessly until the car almost comes to a stop, then it switches back to drive.

Thanks in advance!

more ▼

asked Dec 22 '10 at 05:40 PM

Skitzzen gravatar image

Skitzzen
11 1 1 4

This is very wide question, so you might not be very lucky getting answers. You're asking for whole piece of gameplay implementation to be described. I would recommend narrowing down your question of the parts that you don't know how to do.

Dec 23 '10 at 08:30 AM Paulius Liekis
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Set up booleans to check if the speed is too low. If it is, stop the animation.

At least I think that's what you want. Your question is a little light on facts.

more ▼

answered Dec 24 '10 at 01:44 AM

Persona gravatar image

Persona
246 74 85 96

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5087
x3794
x2090

asked: Dec 22 '10 at 05:40 PM

Seen: 1210 times

Last Updated: Dec 22 '10 at 05:46 PM