Problem changing the velocity/angle of a spawned emitter.
So, my script spawns an emitter that flies across the map. I want it to spawn high at get fired to the left and downwards. So I put this code in
Code:
SandP.Vel.X = -math.random(150) - 50;
SandP.Vel.Y = -math.random(35) - 40;
The line "SandP.Vel.X = -math.random(150) - 50;" works just dandy, sending the emitter flying to the left at a nice speed. The line "SandP.Vel.Y = -math.random(35) - 40;" doesn't work so well. It made the partciels fly upwards instead of downwards. So, I changed it to "SandP.Vel.Y = -math.random(-35) - -40;" thinking that making them negative would cause the emitter to fly down. However, now the emitter never spawns at all. how can I get it to have a downward velocity?