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
Page 1 of 2 1 2
Trailing effect for rockets or jets? #442376
06/19/14 20:59
06/19/14 20:59
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
How do I make an effect of a trail for a jet plane or a rocket? It will be fascinating! I tried to do it ,but something wrong happens that makes particles move in different directions

Last edited by CyberGhost; 06/21/14 01:38.

Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442380
06/20/14 06:41
06/20/14 06:41
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline
Serious User
Stansmedia  Offline
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
Something like this?

Code:
function smokefnc(PARTICLE *p)
{
    p.alpha -= p.skill_a*time_step;
    p.size += p.skill_a*time_step;
    if (p.blue > 0) { p.blue -= p.skill_a*time_step*2; }
    if (p.red > 0) { p.red -= p.skill_a*time_step*2; }
    if (p.green > 0) { p.green -= p.skill_a*time_step*2; }
    if (p.alpha <= 0) p.lifespan = 0;
}

function smoke(PARTICLE* p)
{
	vec_set(p.blue,vector(150,150,150));
   set(p, MOVE | BRIGHT | TRANSLUCENT);
   p.alpha = 50+random(20);
   p.size = 0.1+random(1.5);
   p.gravity = -0.025;
   p.skill_a = 2; // fade factor
   p.event = smokefnc;
}


effect(smoke,1,my.x,nullvector);


Last edited by Stansmedia; 06/20/14 06:43.

Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: Trailing effect for rockets or jets? [Re: Stansmedia] #442389
06/20/14 13:31
06/20/14 13:31
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
... So, I won't use BEAM or STREAK? What is difference between them any way? And how would they change vel_x/y/z functionality?


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442390
06/20/14 13:55
06/20/14 13:55
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
they dont. those are flags.
Read the manual.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Trailing effect for rockets or jets? [Re: DLively] #442393
06/20/14 16:00
06/20/14 16:00
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline
Serious User
Stansmedia  Offline
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
beam causes the particle the multiply itself based on the direction - making it kind of like a "train" i guess. Streak stretches the particle. For a smoke, or rocket smoke, you don't really want to set a velocity speed. If it was a spark, or a blood splatter, then you would want to use the velocity. if you want to spread the particles on creation use:
Code:
effect(smoke,1,vector(my.x+random(16)-8,my.y+random(16)-8,my.z+random(16)-8),nullvector);



Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: Trailing effect for rockets or jets? [Re: Stansmedia] #442399
06/20/14 18:33
06/20/14 18:33
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. Thnx.


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442405
06/20/14 21:42
06/20/14 21:42
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
... btw why do I need to set gravity?


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442407
06/20/14 22:47
06/20/14 22:47
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline
Serious User
Stansmedia  Offline
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
Smoke rises.. i think. Dont quote me on it.


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: Trailing effect for rockets or jets? [Re: Stansmedia] #442408
06/21/14 01:33
06/21/14 01:33
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
But the rocket's smoke doesn't rise. I meant a bazooka weapon rocket ,not kinda' Tomahoke rocket (I think I spelled it wrong tongue )


Nothing to say ....
Re: Trailing effect for rockets or jets? [Re: CyberGhost] #442411
06/21/14 04:30
06/21/14 04:30
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Smoke rises regardless of what it is emitting it wink


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Page 1 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