Galaxian Posted October 6, 2010 Share Posted October 6, 2010 Hello, I'm aiming to do as little posting on this forum as possible due to the fact that I'm probably annoying you guys. (Totally understandable) But I need to find out how to time my sounds. They seem to just go on forever and as you may know, the little bleeps in pong DO NOT go forever! So, if someone who is good with sound could help me, it would be much appreciated. Regards, Henry Quote Link to comment Share on other sites More sharing options...
jbs30000 Posted October 6, 2010 Share Posted October 6, 2010 I'm not "good", but I know enough to answer your question. Make a variable a timer, set it to something like 12 or 20 (play around till it sounds right) and have it count down in you main game loop. When it hits 0 turn the volume to 0. Something like Main_Loop Counter=Counter-1 if Counter=0 then AUDV0=0 <game code here> goto Main_Loop Something like that. 1 Quote Link to comment Share on other sites More sharing options...
Galaxian Posted October 6, 2010 Author Share Posted October 6, 2010 (edited) I'm not "good", but I know enough to answer your question. Make a variable a timer, set it to something like 12 or 20 (play around till it sounds right) and have it count down in you main game loop. When it hits 0 turn the volume to 0. Something like Main_Loop Counter=Counter-1 if Counter=0 then AUDV0=0 <game code here> goto Main_Loop Something like that. WOW that's great! Trust me, in comparison to me you are VERY good with sound! Just one problem, it doesn't get what counter means. Here is my source code: Joy_pong.bas Edited October 6, 2010 by Galaxian Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted October 7, 2010 Share Posted October 7, 2010 There are simplistic sounds in this program: http://www.atariage.com/forums/topic/168323-example-program-shoot-missile-in-8-directions/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.