Question - Code part_system_update ?

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Monkeysaur, Dec 27, 2016.

  1. Monkeysaur

    Monkeysaur Member

    Joined:
    Dec 10, 2016
    Posts:
    33
    I'm using:
    Code:
    //Advance System
    repeat (room_speed * 3)
    {
       part_system_update (part_bg2_sys)
    }
    
    in an attempt to advance my particle system, but it's not working as intended. Should this work in GMS2?

    Or do I need to do something different?

    Thanks.

    Has anyone else had this problem?
     
    Last edited by a moderator: Dec 28, 2016
  2. icuurd12b42

    icuurd12b42 TMC Founder GMC Elder

    Joined:
    Apr 22, 2016
    Posts:
    1,832
  3. Monkeysaur

    Monkeysaur Member

    Joined:
    Dec 10, 2016
    Posts:
    33
    Thanks for the suggestion, doesn't seem to make a difference though.
     
  4. Monkeysaur

    Monkeysaur Member

    Joined:
    Dec 10, 2016
    Posts:
    33
    Sorry to bump, but have others used part_system_update succesfully in GMS2?

    Is it a known issue? Or more likely a problem with my code/game?

    Thanks for any info anyone can give.
     
  5. chance

    chance predictably random Forum Staff Moderator

    Joined:
    Apr 22, 2016
    Posts:
    774
    I generally use the (default) automatic updates, so I don't have much experience with manually advancing a particle effect.

    Does your particle effect look right when you just let it run automatically? How long (duration) is the sequence? Unless the normal length of the sequence is longer than 3 seconds, advancing it by 3 seconds in a single game step might not display anything onscreen.

    Also, have you tried manually turning auto updates back ON (true)?
     
  6. Monkeysaur

    Monkeysaur Member

    Joined:
    Dec 10, 2016
    Posts:
    33
    Thanks for the reply, I have tried setting auto updates to true, but it doesn't help.

    The particle system works fine, but I am trying to advance the particle system so it is running when the room is entered.

    It doesn't seem to matter what duration I use. I tried room_speed * 300 it still made no difference.

    Thanks for your help.
     
  7. b0dhisattva

    b0dhisattva Member

    Joined:
    Feb 16, 2017
    Posts:
    2
    I'm having this issue as well. Has anyone found the solution yet?
     
  8. theraje3

    theraje3 Member

    Joined:
    Aug 24, 2017
    Posts:
    33

    Hi! I know is a bit late but I just find the answer for my problem ( and with some luck also yours)
    In my case It didnt work because I didnt set the emitter in the creation code but in the step event.
    Even send a error msg to yoyogames lol just before i found it :S

    so make sure you create your emitter, your emitter region and the emitter stream/burst before you place the part_system update.
     
  9. CameronScottCreations

    CameronScottCreations Member

    Joined:
    Dec 1, 2018
    Posts:
    68
    If you are bursting not streaming put an additional burst function in the repeat block to go along with your update function.
     

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