Controlling animation; start and stop character.

Blitz3D Forums/Blitz3D Beginners Area/Controlling animation; start and stop character.

gerald(Posted 2014) [#1]
Hi,

I can make the legs move but I seem to have to set continuous animation loop, or stop animation exclusively. Milkshape animated entity.

I tried the animate command with a movement key link but it only stops and does not start. How is movement animation started and stopped on command?

Any input?

Gerald


Kryzon(Posted 2014) [#2]
- http://www.blitzbasic.com/Community/posts.php?topic=100268#1182709
- http://www.blitzbasic.com/Community/posts.php?topic=94440#1084358


Guy Fawkes(Posted 2014) [#3]
Nice tutorial, Kryzon! :)


gerald(Posted 2014) [#4]
Hi,
I'm an if/then beginner but I'll try to desipher this. It is not in the book at all.


Thanks,
Gerald


Guy Fawkes(Posted 2014) [#5]
Updated the tutorial a bit to HOPEFULLY make it easier for you.

I used to be the same as you, but I have learned ALOT from the Blitz veterans.

Here's the tutorial.

Read the comments that begin with ";" & hopefully you'll understand much easier!

Good luck with your training & I hope this helps!

Kirby_Animation_Tutorial.bb:



Sincerely,

~GF


gerald(Posted 2014) [#6]
Hi,

I got a simple switch to work. Load 2 main characters (guns) have one animated 1,30,0,0 and the second not animated 0,20,0,0. Then in the movement code (if keydown(up_key) then hideentity/showentity). This works, the moving entity shows when moving and the nonmoving entity shows when not moving. Just needed to set show/hide for the characters.

thanks
Gerald


Guy Fawkes(Posted 2014) [#7]
Good job, @gerald! :)