Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, TipmyPip), 1,144 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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