Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
In urgent help for Particle System! #249336
02/01/09 20:50
02/01/09 20:50
Joined: Feb 2009
Posts: 11
T
ToyLetBowl Offline OP
Newbie
ToyLetBowl  Offline OP
Newbie
T

Joined: Feb 2009
Posts: 11
Hi, i am a totally newbie to this program and i have gone thru the tutorials but i still am not sure how the program works and how to do the coding for particle system which my assignment requires to do 5 different particles that can be controlled for example snow and the direction and amount. can anybody save me and pull me out of this confusing hole that i am falling into! Thanks!!


Aye Carumba~
Re: In urgent help for Particle System! [Re: ToyLetBowl] #249341
02/01/09 21:09
02/01/09 21:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Here is a particle Generator. You can create all particles that you want, and if the result is good, you can export the code.
http://www.easyparticle.com/

PS: Don`t make double - posts !!!

Re: In urgent help for Particle System! [Re: Widi] #249370
02/02/09 07:11
02/02/09 07:11
Joined: Feb 2009
Posts: 11
T
ToyLetBowl Offline OP
Newbie
ToyLetBowl  Offline OP
Newbie
T

Joined: Feb 2009
Posts: 11

This is my code for the rain particle using easy particle system, but once i generate it and test run using the program..all i get is a black screen.. what is the problem? does it have anything to do with Vista?



void rain_effects(PARTICLE* p)
{

bmap rainBmap = <cloud.tga>;
VAR rainAnzahlPartikel = 1.607; //number of particles used for this effect


function rain_spec_fun()
{
if(my.size > 0) { my.size -= -0.100 *time; }else{my.lifespan = 0; }
my.alpha -= 0 *time;
IF(My.alpha < 0) { my.alpha = 0; my.lifespan = 0; }
my.skill_b += 0.03;
my.skill_c = 6 - my.skill_b;
if(my.skill_c < 0) { my.lifespan = 0; }
}

function rainspezial()
{
my.blue = 128 ;
my.green = 128 ;
my.red = 128 ;
my.skill_c = 0; my.skill_b = 0;
my.bmap = rainBmap; //the effect bitmap
my.vel_x = random( 0 ) - 0 ;
my.vel_y = random( 0 ) - 0 ;
my.vel_z = -40 ;
my.size = 1 ;
my.alpha = 100 ;
my.x += random(1000)-500;
my.y += random(1000)-500;
my.z += random(100)-50;
my.gravity = 0.598 ;
my.streak = on;
my.flare = on;
my.bright = on;
my.beam = off;
my.move = on;
my.transparent = on;
my.function = rain_spec_fun;
}


function rain()
{
while(1)
{
rainAnzahlPartikel = max(1,random(1));
var myPos[3];
vec_set(myPOS,camera.x);
temp.x = COS(camera.pan);
temp.y = SIN(camera.pan);
temp.Z = 600*COS(camera.tilt);
MyPos.X = myPos.X + temp.Z*temp.X;
MyPos.Y = myPos.Y + temp.Z*temp.Y;;
MyPos.Z = myPos.Z + 600*SIN(camera.TILT);
MyPos.Z = Camera.Z + 800;
effect(rainspezial,max(1,int(rainAnzahlPartikel*time)),MyPOS,nullvector);
wait(1);
}
}


action rain_action
{
my.invisible = on;
My.passable = on;
while(!key_r) { wait(1); }
rain();
}

}





Last edited by ToyLetBowl; 02/02/09 07:12.

Aye Carumba~

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1