Setting particle gravity not working

This forum is currently in read-only mode.
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • I'm trying to get the particles to change it's angle to that of the player, and also to change the particle's gravity angle to the position of the player, but it isn't working. Help?

    EDIT: I hope you like reading boring, plain code

    Start of layout:              [Particles]: Destroy
    
    On left mouse button clicked: [System]: Create object [Particles] on [Layer 1] at (Sprite.X, Sprite.Y)
                                  [Particles]: Set X to (Sprite.X)
                                  [Particles]: Set Y to (Sprite.Y)
                                  [Sprite]: Set angle to Angle(Sprite.X, Sprite.Y, Mouse.X ,Mouse.Y)
                                  [System]: Set global variable  'PlayerAngle' to (Sprite.Angle)
                                  [Sprite]: Destroy
                                  [System]: Create object [Sprite] on [Layer 1] at (MouseX, MouseY)
                                  [Sprite]: Set angle to global('PlayerAngle')
                                  [Particles]: Set angle to global('PlayerAngle')
                                  [Particles]: Set angle to global('PlayerAngle')[/code:2tzcn74d]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It seems you have indeed found a bug in Construct Classic (there are quite a few!), but I think I have a work-around <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    After setting Gravity Angle, set the gravity strength again as well, even if that number doesn't change it seems to have fixed the issue for me!

    Here is a CAP example (I put the gravity in the opposite angle of the particles themselves to show that it works!! Just remove the + 180 to have gravity the same direction as the particle object)

    https://dl.dropboxusercontent.com/u/471 ... ticles.cap

    Hope that helps <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> And yes, I do like reading boring code! Although event sheets are more fun

  • there is also a angle particle bug on boolean (particle property)

    hop ashley will solve it soon

  • Thanks, it works! You are my saviour!

  • matrixreal

    This is the Construct Classic section - Ashley doesn't live here anymore!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)