Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
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 | chip programmers | 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