Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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 (NnamueN, Akow, 1 invisible), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Trailing effect for rockets or jets? [Re: DLively] #442420
06/21/14 09:54
06/21/14 09:54
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
If you don't want gravity just it to zero than tongue . Or if you are not sure what you want, watch a video of a game where you think the rocket+smoke looks awesome and carefully observe how they made it (for example: how do their smoke particles move?).

Re: Trailing effect for rockets or jets? [Re: Reconnoiter] #442435
06/21/14 18:07
06/21/14 18:07
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
OK. I have just one question. I know it's very very dumb and newbie-only ,but to make sure: Which particle function is executed EVERY FRAME? The one set in the "effect()" instruction or the one set by "event" parameter of the particle or both? The manual says the first one ,but I wanna be sure ...


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442473
06/23/14 12:51
06/23/14 12:51
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
frown ...

Last edited by CyberGhost; 06/23/14 12:53.

Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442481
06/23/14 13:38
06/23/14 13:38
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
See manual -> effect, then the example code and you will/ should realize that the particle function used as an effect(...) parameter gets only called once for initialization, p.event (if any) every frame.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Trailing effect for rockets or jets? [Re: Superku] #442483
06/23/14 13:51
06/23/14 13:51
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Thanx laugh .

The manual here: http://manual.conitec.net/aent-effect.htm
(in the "parameters" sections) says: "function: Particle function; runs every frame ". That is what confused me ...


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442484
06/23/14 14:18
06/23/14 14:18
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Hm I see what you mean. Usually a particle function has the following template:

Code:
void p_fnc(PARTICLE* p)
{
	set(p,MOVE);
	...
	p.lifespan = 16;
	p.event = p_fnc_event or NULL;
}



When you don't want to have a fade out function you normally write p.event = NULL; but I guess the event is set to the initialization function (p_fnc here) by default (which would not make much sense then as you overwrite lifespan, vel_xyz and the like over and over). Just always use p.event then.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Trailing effect for rockets or jets? [Re: Superku] #442485
06/23/14 14:34
06/23/14 14:34
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
I see ....

Thanx a lot for clarification laugh .....


Nothing to say ....
Page 2 of 2 1 2

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