Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 [2]   Go Down

Author Topic: Quick Question  (Read 2636 times)

0 Members and 1 Guest are viewing this topic.
Re: Quick Question
« Reply #20 on: April 15, 2007, 06:46:23 am »
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1767
I'm not getting an error by slower rate I meant the sounds won't play as rapidly as you hit the key
Logged
  • https://colbydude.com
Re: Quick Question
« Reply #21 on: April 15, 2007, 06:52:48 am »
  • :D
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 151
Oh, I get it.

Try replacing it with this:
Code: [Select]
//Attack Event

var a;
a=floor(random(3));

while(sound_isplaying(attack_sound[a]) ){
 a=floor(random(3));
}
sound_play(attack_sound[a]);
« Last Edit: April 15, 2007, 06:59:01 am by Knightmare »
Logged
  • Knighty Games
Re: Quick Question
« Reply #22 on: April 15, 2007, 07:40:30 am »
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1767
Nah... just made the sound rate speed up it actually matches up with pressing the key
Logged
  • https://colbydude.com

Goodnight

Once and future Captain
Re: Quick Question
« Reply #23 on: April 15, 2007, 07:53:54 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Whats this? Did Goodnight make a mistake? :o
It happens. I was thinking about this question long after posting, realised that mistake and came back to fix it.

And it's really weird how none of these suggestions are working right. In theory they should be working, but GM's sound functions can be a bit wonky, like if you play a sound, it doesn't instantly register as "playing".
Logged
Re: Quick Question
« Reply #24 on: April 15, 2007, 08:10:11 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
I'd say its due to
a)You haven't set the sound to be preloaded, so it has to load it up before playing which means there may be a delay
b)The sound begins with silence, so its playing the sound correctly and the sound itself is the problem
Logged
Re: Quick Question
« Reply #25 on: April 15, 2007, 06:05:40 pm »
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1767
I checked all the sounds they're all preloaded. Also the sounds will play as soon as I hit the play button so I'm not sure if that would be it, but I've been wrong before
Logged
  • https://colbydude.com
Re: Quick Question
« Reply #26 on: April 16, 2007, 07:00:10 am »
  • :D
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 151
What else is wrong?
Could you explain want a little better?
Do you want it so the previous sound stops when you press the attack key again?
Logged
  • Knighty Games
Re: Quick Question
« Reply #27 on: April 16, 2007, 09:09:20 pm »
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1767
yes that's all I need sorry if I explained it wrong
Logged
  • https://colbydude.com
Pages: 1 [2]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.427 seconds with 50 queries.