Spawning and animation
Megaemman
Member, PRO Posts: 72
Im creating a baseball game and I'm having trouble syncing the actor that spawns the balls with the animation of the pitcher
Heres what i have for the spawning actor I have it to every so and so seconds the actor will spawn a random actor https://www.dropbox.com/s/22qh92nh5oy20fw/Screenshot 2015-07-11 01.48.01.png?dl=0
However the issue is that it won't sync with my animation I've tried timers and it still doesn't work quite right. should i use a boolean to trigger the animation?
Thanks for the help in advanced
Comments
I can't really answer your question as it's hard to know exactly what 'won't sync' and 'doesn't work quite right' mean . . . but on a side note, looking at your code, you don't really need both those timers . . . the change attribute behaviour (random toss to (1,3)) could be moved into the second timer like this (screenshot below) . . .
@Socks
What i want to do is the type of animation thats in the street fighter template
http://www.deepblueapps.com/basic-street-fighter-starter/
Except instead of having my animation actor throw punches i would like look like it is throwing baseballs.
Ive tried this code for the ball spawner https://www.dropbox.com/s/jlvklilwkh37jbk/Screenshot 2015-07-11 08.39.52.png?dl=0
https://www.dropbox.com/s/6qbk1vhzuw7no0l/Screenshot 2015-07-11 08.45.04.png?dl=0
and this is in my animation actor
https://www.dropbox.com/s/zwgqjl5oyqe60ib/Screenshot 2015-07-11 08.40.54.png?dl=0
But when it comes to following this code the animation actor it never quite syncs right and I'm thinking it has to do with how i wrote this code maybe the timings off?
Again thanks for your time