Author Topic: Want perfect EM bells? Here's how  (Read 4689 times)

0 Members and 2 Guests are viewing this topic.

Offline Itchigo

  • Victory is mine!!
  • Administrator
  • Pinball Wizard
  • *****
  • Posts: 1,407
  • Country: us
  • Karma: +10/-0
Want perfect EM bells? Here's how
« on: December 13, 2013, 10:35:02 AM »
What I mean by this is if you have a "500" sound, rather than splicing 5 "100" sounds together (as I used to do), you can do things this way.

What we're going to do here is make one sound repeat with a timer.


DimX  'Put this at the top of the script.
X=0

Sub Createsound_Timer

X=X+1               'We are adding 1 to the variable until we reach 5.
Addscore 100
Playsound"100"
CreatesoundTimer.Enabled=True   'Restart the timer.

If X=5 Then
CreatesoundTimer.Enabled=False  'When we reach 5 then shut off the timer and exit.
X=0                                                'Reset X to 0
End If
End Sub

Now add a timer, name it Createsound, and uncheck enable. The timing of how fast the sounds repeat is in the timer itself. This is a "master" sub, so for anything scoring this amount- just call this timer.  Createsound.Enabled=True
« Last Edit: December 13, 2013, 10:37:28 AM by Itchigo »
Tremble in fear! Behold my Bankai!


Offline Pintrepid

  • Silverball Maniac
  • Administrator
  • Sr. Wizard
  • *****
  • Posts: 281
  • Country: us
  • Karma: +3/-0
Re: Want perfect EM bells? Here's how
« Reply #1 on: December 17, 2013, 02:19:54 AM »
E =MC2 / the root of π  :Green:
-PeterMac


Offline ndiniz

  • Full Member
  • ***
  • Posts: 203
  • Country: us
  • Karma: +3/-0
Re: Want perfect EM bells? Here's how
« Reply #2 on: December 21, 2013, 01:36:17 AM »
+5^2+365/24*7/30 equals fish! LOL! :Content: :Content: :Content: :Content: :Wink: :Wink: