Help with Function Parameters.

For questions about using Classic.

Post » Fri Nov 04, 2011 1:03 am

looks like davio is right, which was kind annoying, so I made a new function object. seems to be about 1.5 times the speed using the single expression method than the regular function object runs with the separate action method

http://dl.dropbox.com/u/1013446/sharinplugs/func/plugins.rar
http://dl.dropbox.com/u/1013446/sharinplugs/func/functest.cap

this one will only accept the format:
CallFunction :     .myfunctionname(param0,param1)

there is no addparam, and callfunction does not pay attention unless you use that .functionname(params here) method
or just .functionname if you have no parameters

you get your params in one of two ways
func.p(index)
or just
func(index)

because it's easier to type p or nothing than param
in this object parameters are 0 based, which means, the first parameter you put in is 0, the second is 1, etc

this does not have the "on any function" or 'alias' features, but I can add them if anyone really uses them, and wants to use this faster function caller

I would have just optimized the regular function object, but that code isn't on the svn

let me know if anyone tries it, or if they encounter any bugslucid2011-11-04 01:35:55
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Nov 04, 2011 3:00 am

Nice lucid! I was also kind of annoyed at that. I'll test it out soon.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests