Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Additional Parameters for "effect(...);" ? #131331
05/23/07 19:55
05/23/07 19:55
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hey!
effect(function,number,position,velocity);
is the way the function is working right now. What if I want to have 1 or 2 additional variables that I want to pass to the effect function? Like the speed at which it should decrease it's alpha? It's possible to write multiple particle effects, off course, but each of them takes at least 2 functions, and it'd be much easier otherwise...
just an idea though...
Micha


~"I never let school interfere with my education"~
-Mark Twain
Re: Additional Parameters for "effect(...);" ? [Re: Germanunkol] #131332
05/23/07 20:15
05/23/07 20:15
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You can store up to three parameters in the velocity vector if you don't need it...


Always learn from history, to be sure you make the same mistakes again...
Re: Additional Parameters for "effect(...);" ? [Re: Uhrwerk] #131333
05/24/07 11:45
05/24/07 11:45
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
but i do...?


~"I never let school interfere with my education"~
-Mark Twain
Re: Additional Parameters for "effect(...);" ? [Re: Germanunkol] #131334
05/25/07 05:53
05/25/07 05:53
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
Yeah, Zeitwerk, its a great idea providing you don't need the velocity vector

Thanks,
Adoado


Visit our development blog: http://yellloh.com
Re: Additional Parameters for "effect(...);" ? [Re: adoado] #131335
05/25/07 07:04
05/25/07 07:04
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The effect_local() function can also use the skills of the entity that triggered the effect, via the 'you' pointer.

Re: Additional Parameters for "effect(...);" ? [Re: jcl] #131336
05/25/07 11:43
05/25/07 11:43
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
yeah, you're right, never thought of that... but still, that's only for effect local, and only if the effect is triggered by an entity...


~"I never let school interfere with my education"~
-Mark Twain
Re: Additional Parameters for "effect(...);" ? [Re: Germanunkol] #131337
05/30/07 17:07
05/30/07 17:07
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
you could set you to any entity you want...


Moderated by  aztec, Spirit 

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