View Single Post
  #1  
Old 02-08-2013, 10:05 AM
Ducky Ducky is offline
Member
 
Join Date: Jul 2012
Location: Birmingham, AL
Posts: 7
Simple toggle function

I am using the pit example.

Goal is to attach 4 quads to the pit screen, thus dividing it into quarters. Then create a sequence that on a key down will give the effect of the quads flashing. I also have a sound clip that goes in sequence with the flashing.

I am trying to create a function that allows for this. I have been able to create the 4 quads (scale, position, etc.), make them fade in and out (flash), and insert the sound clip, which is sequenced to the flash the first time I hit key down. If I hit the key down again the flash sequence will start over but the sound clip does not. The sound clip needs to also loop while the quads are flashing. I have attached my lines of code.

Help would be greatly appreciated. Thanks
Attached Thumbnails
Click image for larger version

Name:	ToggleFunction.JPG
Views:	774
Size:	149.4 KB
ID:	581  
Reply With Quote