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
0 registered members (), 18,435 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
Problem mit Partikel Flags / Problem with Particle #138846
06/29/07 19:59
06/29/07 19:59
Joined: Mar 2004
Posts: 286
Maintal, Deutschland
TheTommynator Offline OP
Member
TheTommynator  Offline OP
Member

Joined: Mar 2004
Posts: 286
Maintal, Deutschland
First the german version:

Hi @all,

mir machen im Moment die Partikel-Flags Probleme.

Zuerst der Code:
Code:
 function effect_explo(PARTICLE *p)
{
var temp[3];
vec_randomize(temp,10);
vec_add (p.vel_x, temp);
p.alpha = 25 + random(25);
p.flags |= BRIGHT | MOVE;
p.event = part_alphafade; // change to a shorter, faster function
}



Wenn ich den ausführe, erhalte ich von der Engine folgende Fehlermeldung:
Quote:

Error in 'MAIN' line 26: syntax error
< p.flags |= BRIGHT | MOVE; >




Dabei hatte ich das Beispiel aus dem Handbuch kopiert.

Schreibe ich die Zeile so:

Code:
 p.flags |= MOVE; 



funktioniert es.

Hat jemand eine Idee, woran das liegen könnte?

Now the English version:

I'm having some problem with the particle-flags right now.

First of all the code:
Code:
 function effect_explo(PARTICLE *p)
{
var temp[3];
vec_randomize(temp,10);
vec_add (p.vel_x, temp);
p.alpha = 25 + random(25);
p.flags |= BRIGHT | MOVE;
p.event = part_alphafade; // change to a shorter, faster function
}



If I execute this piece of code I get the following error message:
Quote:

Error in 'MAIN' line 26: syntax error
< p.flags |= BRIGHT | MOVE; >



But this is an example copied from the manual.

If I write the line like this:
Code:
 p.flags |= MOVE; 


it works.

Has anybody got an idea about this?

Thanks / Danke
TheTommynator


Back @ work with 3DGS.
Re: Problem mit Partikel Flags / Problem with Particle [Re: TheTommynator] #138847
06/29/07 20:16
06/29/07 20:16
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
versuch mal anstatt bei den flags das bright und move zu starten es mit
my.bright = on
und
my.move = on
es wird bestimmt klappen


Everything is possible, just Do it!
Re: Problem mit Partikel Flags / Problem with Part [Re: Poison] #138848
06/29/07 20:27
06/29/07 20:27
Joined: Mar 2004
Posts: 286
Maintal, Deutschland
TheTommynator Offline OP
Member
TheTommynator  Offline OP
Member

Joined: Mar 2004
Posts: 286
Maintal, Deutschland
Quote:

Error in 'MAIN' line 26: 'move': is not a Member of 'PARTICLE'
< p.move = on; >




Geht nicht


Back @ work with 3DGS.
Re: Problem mit Partikel Flags / Problem with Part [Re: TheTommynator] #138849
06/29/07 21:26
06/29/07 21:26
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
versuch es nicht mit p.move sondern mit my.move


Everything is possible, just Do it!
Re: Problem mit Partikel Flags / Problem with Part [Re: Poison] #138850
06/30/07 01:47
06/30/07 01:47
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
I'm not sure why that way is not working (I haven't tried) but try:

set(p, MOVE | BRIGHT);

worked for me.


EDIT:
Just tried it and I found the following solution:

try changing

p.flags |= BRIGHT | MOVE;

to

p.flags |= (BRIGHT | MOVE);



Last edited by RichLockard; 06/30/07 01:53.

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