Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle Editor Help Random directions for FixedAxis particles?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Random directions for FixedAxis particles?

Yeah, but you need to rotate the areas at which you spawn the particles at.

For an area named something like ParticleArea instead create X number of areas, index them ParticleArea_1, ParticleArea_2, ..., ParticleArea_X and then in your script spawn it randomly with something like this:

PHP Code: (Select All)
const int X 5// 5 different directions
void SpawnParticle() {
  
int i RandInt(1X);
  
string area "ParticleArea_"+i;
  
// Create particle system here, I can't remember the function off the top of my head
  // Just use the local 'area' variable


(This post was last modified: 11-25-2012, 10:04 PM by palistov.)
11-25-2012, 10:03 PM
Find


Messages In This Thread
RE: Random directions for FixedAxis particles? - by palistov - 11-25-2012, 10:03 PM



Users browsing this thread: 2 Guest(s)