Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (AbrahamR, 7th_zorro, dr_panther, 1 invisible), 702 guests, and 6 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
particle effects #296445
10/31/09 20:08
10/31/09 20:08
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
I'm creating some smoke effects that are emitted when I shoot, but I have trouble moving the vector in front of the player. Usually it ends up on 1 side only. Any formula or something to change this?


I'm pretty awesome
Re: particle effects [Re: darksmaster923] #296499
11/01/09 12:04
11/01/09 12:04
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
if you want us to change anything it would be good for us to know what it is we have to change.

Re: particle effects [Re: Joey] #296537
11/01/09 16:07
11/01/09 16:07
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
Not that much code

temp.x=20;
temp.y=0;
temp.z=1;
vec_rotate(temp,camera.pan);
effect(effect_flame, 20, temp, nullvector);


I'm pretty awesome
Re: particle effects [Re: darksmaster923] #296552
11/01/09 17:53
11/01/09 17:53
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
is your camera always at the origin? have a look at vec_for_screen.

Re: particle effects [Re: Joey] #296568
11/01/09 19:27
11/01/09 19:27
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
No, thats why I'm having trouble. Do you just add vec_for_screen(temp,camera); after all the vector changes? Cause It just seems to make it disappear.


I'm pretty awesome
Re: particle effects [Re: darksmaster923] #296573
11/01/09 20:45
11/01/09 20:45
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
don't use vec_rotate; afaik x and y need to be zero, while z has to be positive, like 200 or so. then use vec_for_screen.

Re: particle effects [Re: Joey] #296617
11/02/09 00:42
11/02/09 00:42
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
You mean like this?
temp.x=0;
temp.y=0;
temp.z=200;
vec_for_screen (temp, camera);

It doesn't do anything right now, is there something else I forgot?

EDIT::
Nevermind, it works now. I just have some trouble placing it in the right spot.

EDIT::
I have another question. The particles keep going through the ground, what can I do to change this?

Last edited by darksmaster923; 11/02/09 05:00.

I'm pretty awesome
Re: particle effects [Re: darksmaster923] #296638
11/02/09 08:06
11/02/09 08:06
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
particles have no collision detection. use sprites or write your own one... i'd advise the first.

Re: particle effects [Re: Joey] #296790
11/02/09 23:38
11/02/09 23:38
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
Alright, thanks


I'm pretty awesome

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