GameMaker Is it possible to stop the particles? / Effect of double playing music

S

Schekhovtsov

Guest
Hey. There are several questions:

1. Is it possible to suspend already created particles?

2. In all levels of the game, the music in the code is connected in the same way (only the name of the track changes), but in one of the levels it seems to be played simultaneously two times (the effect of superimposing one track on another), which causes the effect of increasing the volume and bass boosted. What could be the problem?
 

samspade

Member
Hey. There are several questions:

1. Is it possible to suspend already created particles?

2. In all levels of the game, the music in the code is connected in the same way (only the name of the track changes), but in one of the levels it seems to be played simultaneously two times (the effect of superimposing one track on another), which causes the effect of increasing the volume and bass boosted. What could be the problem?
1. Yes - look up the particle functions in the manual. It's not entirely clear what you want to do but perhaps turning off the automatic updating of the particle system would do it? https://docs2.yoyogames.com/source/...cle systems/part_system_automatic_update.html

2. No idea. You would need to post your code.
 
S

Schekhovtsov

Guest
About particles - thank you.

About music - here is the code. He is simple. And it is not clear what caused the bug.

Code:
snd = audio_play_sound(currentMusic, 10, false);
 

samspade

Member
That code just plays a sound file. It doesn't prevent the same sound from being played multiple times. You could have that code in two places (maybe there's duplicate instance of the same object), or the place that it's in could repeat (such as a step event).

You might want to look into something like this (starts at 3:57 - I'm not sure why it won't accept the link with the time stamp):

 
Top