pausing an animation?

Blitz3D Forums/Blitz3D Programming/pausing an animation?

luggage(Posted 2004) [#1]
Hello

I've just come to add some cars in on my map that drive around. When the player gets close they need to stop and have collisions between the player. Any ideas on how to approach this?

I have a .3ds file that animates the car correctly. So at the moment it drives up and down the road.

I get the distance between the car and the player and if it's less than a threshold it has to pause the animation. I tried Animate with a value of 0 but that resets the anim back to the start.

The easiest way would be to just have an AnimSetSpeed so I can set it to zero and then set it back when i want the car to carry on.

Any suggestions?


luggage(Posted 2004) [#2]
Have sorted the animation by manually animating it.

Now I just need to bump into it

thanks

scott


IPete2(Posted 2004) [#3]
luggage

dont use animation to move the cars, use a bank with data in it.

(1) write a routine to drive a car using whatever input you want, but store the data in a bank
(2) use a read data back from the bank routine to position the car
(3) do a check to slow down how much data you are indexing as you get near another car (ir the player)

Hope this helps,


IPete2.