Hello.
I’m creating a “+100” image particle on the spot when a certain item is touched.
“+100” I want the particles to be generated upwards (-Y direction), but currently the particles are moving to the right. What should I modify?
Hello.
I’m creating a “+100” image particle on the spot when a certain item is touched.
“+100” I want the particles to be generated upwards (-Y direction), but currently the particles are moving to the right. What should I modify?
For a “floating label” such as this, I would set up with the following:
Now the last part just depends on how you want the particles to move.
If you want them to fly upwards with a constant speed, set the minimum and maximum force to the speed you want. Then after creating the particle emitter you’ll need to set the angle to -90 or 270. (NOT the spray cone angle… just the angle of the object, same action you would use for a sprite). I don’t know of any way to do this without using events, objects always are created with angle = 0 which is facing to the right.
If you want them to accelerate upwards over time, set the Gravity on Y axis to a negative number. You can set the min/max force to 0 to have the particle start at rest and then drift upward. Or, combine with the above method to give the particle an initial speed.
If you want the particle to pop up and then slow or fall back down, use the initial force plus a positive number for Gravity on Y.
Great tips on particles, magicsofa. I learned some new things.
It’s worth noting too that rotating the particle emitter object itself in the scene editor can also affect where particles are being shot. In my game I often use a cone of 90 degrees and I rotate the emitter object, using its little rotate handle, to make my particles spray in the direction I want. It works well. However, what the particles do once they have been shot out depends on gravity and other settings. For example, a cone that points to the left will spit out particles that begin to move left too, but they might drift back to the right if your gravity settings make it that way.