Of course I did when I tried your codeDid 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.
no you did not because the code that the other guy gave me will keep play the sound over and over
Either way, it's your code that is at fault.
GameGeisha
- Game Maker Community
- → Viewing Profile: Posts: _195314
_195314
Member Since 26 Mar 2011Offline Last Active Mar 21 2012 06:25 AM
Community Stats
- Group New Member
- Active Posts 82
- Profile Views 2248
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
Posts I've Made
In Topic: problem with playing sound
22 April 2011 - 07:19 AM
In Topic: problem with playing sound
20 April 2011 - 11:19 PM
no you did not because the code that the other guy gave me will keep play the sound over and overWe answered your question, see it or not, we did...
In Topic: problem with playing sound
20 April 2011 - 08:27 AM
what ?Me brain tilts again...
In Topic: problem with playing sound
20 April 2011 - 04:23 AM
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 eventLooks 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.
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
see what I have in the picture:
http://img8.imagesha...444/unledjb.png
- Game Maker Community
- → Viewing Profile: Posts: _195314
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content
