Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, AndrewAMD, TipmyPip, 1 invisible), 28,213 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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 | 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