Jump to content


_195314

Member Since 26 Mar 2011
Offline Last Active Mar 21 2012 06:25 AM

Posts I've Made

In Topic: problem with playing sound

22 April 2011 - 07:19 AM


no you did not because the code that the other guy gave me will keep play the sound over and over

Did you remove all the icons you already have in your Step event and replace it with my code? If you didn't, I can tell you that it's the icons you already have that plays the sound over and over, not my code. Alternatively, it could be that your score is constantly increasing and you don't see it.

Either way, it's your code that is at fault.

GameGeisha

Of course I did when I tried your code

In Topic: problem with playing sound

20 April 2011 - 11:19 PM

We answered your question, see it or not, we did...

no you did not because the code that the other guy gave me will keep play the sound over and over

In Topic: problem with playing sound

20 April 2011 - 08:27 AM

Me brain tilts again...

what ?

In Topic: problem with playing sound

20 April 2011 - 04:23 AM

Looks like you want a sound to play, the subimage of the sprite changed and the bullet upgraded by 1 every 300 points. Take icuurd12b42's second set of code:

Creation:

next_event_at = 300;

Step:
if (score > next_event_at) {
  next_event_at += 300;
  bullet += 1;
  sound_play(powerup);
  //This is for the change-sprite icon, I can't see what exactly is inside it
  image_index += 1;
}

GameGeisha

PS: When you use code, make sure that all resource names are unique and valid. If there is another sprite or object named powerup, this might not work until you change the names to something else. A good practice is to prefix your resource names, like spr_powerup and obj_powerup, in order to avoid name conflicts.

I do not want to have a new code for what I have already. I want a code that can play a sound one time from step event

In Topic: problem with playing sound

20 April 2011 - 01:05 AM

I know how to make the score thing, but when it checks that the score is larger than a number it keeps playing the sound over and over, I need it to play the sound one time only
see what I have in the picture:
http://img8.imagesha...444/unledjb.png