Need some help on a particle system

rotorrotor Member Posts: 25
edited June 2012 in Working with GS (Mac)
Hi,

I'm working for a game prototype as a freelance assignment.

I need some help on a particle system. I have set up the particle system to emit from a random range of Y coordinates random(-150,150). It doesn't matter how many particles I set but all the particles are always spawning from the same location, if I spawn in 250 particles, I get at most 4 actual random spawn locations.

I tried randomising the spawn time because I figured this might have to do with the particles being spawned in the same frame, but this didn't help either.

Does anyone have any idea how to get this to work without having to script my own particle solution?

Thanks for any help!

A note to the Developers of GameSalad: the lack of a good technical documentation is really hurting my speed of development. I'm finding myself increasingly going for a long trial and error approach because I can't find technical documentation for advance users. Thanks for this software, it's been really great fun to use!

Best Answer

  • PhoticsPhotics Posts: 4,172
    Accepted Answer
    Random only uses whole numbers... random(0,1)*10 would only return Zero or Ten.

Answers

  • PhoticsPhotics Member Posts: 4,172
    edited June 2012
    1) You could use invisible actors to spawn particles. That can increase your options with the way particles spawn. They could be moved to random locations while spawning particles.

    2) If you're looking for good technical documentation, Maybe this will interest you... http://photics.com/books/gamesalad-textbook
  • rotorrotor Member Posts: 25
    Thanks Photics,

    I'm trying to avoid at all cost writing my own solution for these particles. I'm not seeing why something like random(0,10) or random(0,1)*10 wouldn't work for spawning each individually spawn particle on a different coordinate. This would seem to me like a basic requirement for a particle system, I'm at a loss.
  • rotorrotor Member Posts: 25
    I just solved my problem, but I'm not sure I have a better understanding of the particle system.

    I entered .5 as a value of the particle start up time, this now gives me the expected behaviour. The particles also stream continuously which was something I wasn't expecting without wrapping the particle system an additional timer, but it gives me the result I was looking for.

    Thanks for your help Photics!
Sign In or Register to comment.