   Sync with audio
  I need to create a small intro for my game (like those in assembly demos) that every action will sync with music.What's the best way to do it?   
No one cant give any tips/ideas on how to synchronize movement/effects with music?...:/   ;  im not able to give you a perfect solution as ive never actually done this before, but i have spent some time thinking how i would go about doing it for when it gets to the time i would need itfirst of all keep your frame rate constant at 60 or 30fps so you can at least mathmatically work out based on velocities etc what positions etc things will need to be in at that time, also splitting the audio into sections and having triggers within the scene that start the specific audio sections at the right timein theory (someone pelase correct me if im wrong as this is just speculation) if you work out exact timings of everything it should fit in perfectly..... one problem which may occur is if the users hardware isnt able to run at the exact fps you want it to and it causes lag, maybe there is a way of linking the speed of audio to the fps as well? if its just a small amount of slow down it shouldnt even be noticableim sure someone else could come upw ith a much better solution to this   ;  Relying on your frame-rate remaining constant is dangerous.A better alternative would be to write a script of events and the time at which they should occur, as measured from the beginning of the track. By constantly polling your audio interface to for the track's current play position, you can determine which two events the animation is between and hence interpolate the action accordingly.If you tell us the nature of the actions needing to be synchronised with the audio, we'll be able to give a more specific answer.Admiral   ;Quote:Original post by TheAdmiralIf you tell us the nature of the actions needing to be synchronised with the audio, we'll be able to give a more specific answer.AdmiralThere will be a bouncing ball , some effects(explosion for example)...and maybe a stick figure dancer .(crazy..huh????????)   ;  I've just added script support in my game.That means , commands of the form:command.txt:render=cube,x,yrender=anothercube,x,yAre acceptable.Im just confused with the delay........   ;  So , any ideas?(im not asking for code)   