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
2 registered members (OptimusPrime, AndrewAMD), 14,580 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
Page 2 of 2 1 2
Re: Some short not working code [Re: gameplan] #403046
06/13/12 18:58
06/13/12 18:58
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Quote:
MOVE
If this flag is set, the particle moves with its velocity vector, and accelerates with its gravity acceleration.
Type:
flag, particles only
I think my.move was c-script wasnt it ?


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Some short not working code [Re: rayp] #403054
06/13/12 19:55
06/13/12 19:55
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Originally Posted By: rayp
Quote:
MOVE
If this flag is set, the particle moves with its velocity vector, and accelerates with its gravity acceleration.
Type:
flag, particles only
I think my.move was c-script wasnt it ?


Exactly.

Re: Some short not working code [Re: Rei_Ayanami] #403061
06/13/12 22:06
06/13/12 22:06
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
So there is a difference between german and english manual. I think that my code is correct now. Everything is fantastic at this point. Thank you for your help and effort.

Quote:

VECTOR Weatherbox;
VECTOR Wind_direction; //Movement speed and direction

Wind_direction.x = 1;
Wind_direction.y = 10;
Wind_direction.z = -20;

BMAP* Weather_bmap = "raindrop.tga"; //The particle bmap

function Weather_part_event(PARTICLE* p)
{
//keep the particle within the box
vec_set(p.x,vector(
cycle(p.x,camera.x-Weatherbox.x,camera.x+Weatherbox.x),
cycle(p.y,camera.y-Weatherbox.y,camera.y+Weatherbox.y),
cycle(p.z,camera.z-Weatherbox.z,camera.z+Weatherbox.z)));

//update the movement speed and direction
vec_set(p.vel_x,Wind_direction);

p.lifespan = 100; // live forever
}

function Weather_part(PARTICLE* p)
{
//place particles at random positions within the box
vec_set(p.x,vector(camera.x+random(Weatherbox.x*2)-Weatherbox.x,
camera.y+random(Weatherbox.y*2)-Weatherbox.y,
camera.z+random(Weatherbox.z*2)-Weatherbox.z));

set(p, MOVE);
p.bmap = Weather_bmap;
p.size = random(1)+2;


p.event = Weather_part_event;
}

function CreateWeatherParticles(cx,cy,cz,numparticles)
{
Weatherbox.x = cx/2;
Weatherbox.y = cy/2;
Weatherbox.z = cz/2;

//create the particles
effect(Weather_part,numparticles,nullvector,nullvector);
}




Last edited by gameplan; 06/13/12 22:10.

Version: A8 free
OS: Windows 10
Re: Some short not working code [Re: gameplan] #403070
06/14/12 06:41
06/14/12 06:41
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
@gameplan: Sorry I never meant to attack you, all I wanted is to teach you. Teaching might sound rough at some point wink

There manual is mostly correct at least regarding important topics such as upper case / lower case issues. Pay attention that you always look for the Lite-C code instead of C-script, you shouldn't mix the languages.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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