1. Hey! Guest! The 32nd GMC Jam will take place between Feb 22nd, 12:00 UTC (Friday noon) and Feb 25th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Windows Particles not working

Discussion in 'GameMaker Studio 2 Community Tech Support' started by depress69, Feb 11, 2019.

Tags:
  1. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    It looks like particles aren't working in GM2 right now? I'm using the following code and it produces nothing, others have confirmed this as well...

    effect_create_above(ef_explosion, x, y, 2, c_red);
     
  2. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    Works fine for me. I put your exact line of code in an object destroy event and it created the explosion on screen as the object was destroyed.
    What version of GMS2 are you on (IDE and Runtime)? I am using the current beta version IDE 2.2.2.393 and Runtime 2.2.2.308

    You might have to show all the other relevant code for that object including what event it is in.
     
  3. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    That is all the code I'm using, there is nothing more.

    IDE v2.2.1.375
    Runtime v2 2.2.1.287
     
  4. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    And like I asked, what event?
    Just in case there is something else affecting this.
    I have just rolled-back my runtime to 2.2.1.287 and it works fine in that runtime as well.
     
  5. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    I've tried create, destroy, and then out of frustration, step
     
  6. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    Is it from one specific object you are doing this? Is the object visible and within your view? Can you add a show_debug_message right before you call the effect_create_above to confirm that it is being reach, and output the x and y so you can confirm that it would be appearing inside your view?
     
  7. Bayesian

    Bayesian Member

    Joined:
    Sep 13, 2016
    Posts:
    364
    Is the object in the room?
     
    BaBiA Game Studio likes this.
  8. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    Yes one object, it is visible (attached a sprite to confirm) disabled other layers and did a debug_message as you said, it was able to display the x and y coordinates which were in bounds
     
  9. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    ...yes
     
  10. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    Can you provide a link to an export of your project so we can have a look? I can confirm that effect particles definitely do work, so it must be something very specific to your project and something else you are doing that is causing the problem. Are you perhaps using your own camera system that is at a depth that does not allow the viewing of the effects (not sure if the effect particles will always be visible no matter the camera system as the doc says that the effects are drawn at -100000 depth).
     
  11. Bayesian

    Bayesian Member

    Joined:
    Sep 13, 2016
    Posts:
    364
    Are you running the correct room?
     
  12. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    I've been testing this in a standalone project without anything but the particle system I'm attempting to create. I figured I should try to get their most basic particles running before I attempt a custom particle system and emitter.

    And yes, I am in the correct room... as there is only one.

    https://www.dropbox.com/s/at7fxbzurjtjlaz/TestParticle.yyz?dl=0

    Here's a dropbox to the project, it's exactly as simple as I've been saying but it will not work.
     
  13. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    Just imported it and it worked fine for me. I just had to make the background visible otherwise it left the explosion effect drawn without ever clearing it.

    Here's a video of it working:
     
    Bayesian likes this.
  14. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    Yeah I tried with the background and without the background. The reason I disabled the background is because I thought it might be drawing underneath it despite the depths being correct for that to not happen.

    So yeah, no clue why it won't work for me then.
     
  15. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    Would you mind building an exe to zip up for me from the project you made a video with? I'm wondering if this is an engine thing or a machine thing...

    Similarly, here is a built exe from the same project.. https://www.dropbox.com/s/nyjiwioxo4fh0fc/TestParticle.zip?dl=0

    Would you mind running that and letting me know if the particles show up? My thinking is that if you cannot see particles on the exe I built, but I can see particles on the exe you built, it indicates a failure of my local engine and not my machine's ability to render them using whatever graphics API they're drawn through.
     
  16. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    I submitted a bug report, they had the following to say..

    Thanks for reporting this, but it's not a bug or something we need to address, as generally when this occurs it's an issue with your runtime not having the particles or your cache needing to be cleaned as they're not included in your package initially. If you can clean your cache then try again this should work and if it doesn't then open your preferences, then under runtime feeds, change to another runtime, once the restart has happened open preferences again and delete your current runtime, download it again and then change back to it.

    I haven't gotten the chance to try this myself and won't until later tonight, but if by some chance anyone else is running into this issue as well then here is YoYo Games' fix. I'll update if this fixes it.

    ... and sorry for triple posting lol
     
  17. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    672
    I tried your exe and did not see the particle effects.
    Here is the exe I built, in which I can see the effect: https://www.dropbox.com/s/p5h1ri9vgce0x2o/TestParticle.zip?dl=0
     
    Bayesian likes this.
  18. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    Will be able to try that in a few hours, but that would indicate that my engine is missing something and cannot build the particles for others and not that I have some sort of graphics API conflict that's blocking the draw calls.

    I gave the cache clear method I was suggested a try over lunch today, it did not work. For some reason (and maybe you can offer some advice here?) it would not let me switch runtimes. I was able to successfully download a newer (and older) runtime via the in IDE window, and I was able to double click one and the IDE offered to restart in the new runtime. I accepted but when it reloaded it was still using the original runtime, not the new one I just selected.

    When I went back to the window to show the available runtimes, the GUI was showing that I had NOT downloaded the runtimes I just downloaded. I then copied the filepath it said it was saving them to and I could see the runtimes there, meaning the download did work. Then when I went back to the IDE the GUI re-populated as if it suddenly recognized that those files existed. I attempted to select a different runtime again but I got the same thing, it opened the wrong version yet again.
     
  19. depress69

    depress69 Member

    Joined:
    Feb 9, 2019
    Posts:
    12
    Yeah your exe worked just fine, I see the particles.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice