YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

part_emitter_enable() using the wrong index #8301

Closed gm-bug-reporter[bot] closed 3 days ago

gm-bug-reporter[bot] commented 3 days ago

Description

I have a particle system that contains emitters for each status effect an enemy can have, turned off in the create event, and turned on when the status effect is applied. However, when I call "part_emitter_enable(_tparts, 2, true)", it turns on the emitter with index 3 instead, and calling "part_emitter_enable(_tparts, 3, true)" turns on the emitter with index 2. I checked this with "part_system_get_info(_tparts)" immediately after to confirm this is the case, the wrong emitters are being turned on.

Steps To Reproduce

-Create a particle system in the editor with a number of emitters (I have 6). -Turn them all off in the create event (loop of part_emitter_enable(sys, index, false)) -Try turning them on one by one and see if they line up correctly

Which version of GameMaker are you reporting this issue for?

IDE v2024.8.1.171 Runtime v2024.8.1.218

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

044b3c87-dab6-4360-818a-e5c0c0d535ec

stuckie commented 3 days ago

Thanks for reporting this, but in order to confirm the problem and then investigate a fix we need you to send us small project which already shows this issue to ensure we see exactly what you see and then learn why this problem is caused.

Please report this issue again, but ensure you have a suitable project open at the time you open the bug reporter and that you allow GameMaker to include the project.

Thanks!

Why Have You Asked Me For A Sample?