Switch to DuckDuckGo Search
   October 6, 2012  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:16:42] *** argylelabcoat|wo has quit IRC
[00:33:33] *** mlopes has quit IRC
[01:20:39] *** Caribou| has quit IRC
[01:47:32] *** photex has quit IRC
[03:05:36] *** demoted has joined #nme
[07:07:06] *** argylelabcoat_ has joined #nme
[07:08:19] *** argylelabcoat has quit IRC
[07:08:19] *** argylelabcoat_ is now known as argylelabcoat
[08:04:43] *** argylelabcoat has quit IRC
[09:50:29] *** lordkryss has joined #nme
[09:54:27] *** Virtuall has quit IRC
[10:57:48] *** lordkryss has quit IRC
[10:58:55] *** lordkryss has joined #nme
[11:23:53] *** Caribou| has joined #nme
[11:27:41] *** mlopes has joined #nme
[11:30:44] *** mlopes has quit IRC
[11:31:38] *** mlopes has joined #nme
[11:33:53] *** mlopes has quit IRC
[12:55:12] *** extrawurst has joined #nme
[12:59:50] *** extrawurst has left #nme
[13:03:11] *** kohvihoor has joined #nme
[13:29:33] *** lordkryss has quit IRC
[13:50:04] *** Caribou| has quit IRC
[13:50:21] *** Caribou| has joined #nme
[13:57:33] *** lordkryss has joined #nme
[14:33:18] *** Macca has joined #nme
[14:33:44] *** Macca has left #nme
[14:48:15] *** justinfrontThink has joined #nme
[15:29:39] <justinfrontThink> Does anyone know if getBounds code has been broken since release of recent NME?
[15:51:37] *** lordkryss has quit IRC
[15:59:43] *** Virtuall has joined #nme
[16:39:34] *** lordkryss has joined #nme
[16:41:15] <Caribou|> I'm trying to make a blinking effect playing with alphas, i tried to do something elegant with Actuate but i haven't succeeded, what would be a good way to do that without using timers and adding methods !? :/
[16:41:56] <Caribou|> well you'll have to user timers in some manner but i'd like it to be elegant
[16:45:19] <justinfrontThink> you can use a sine wave or several
[16:47:14] <justinfrontThink> http://code.google.com/p/nekonme/issues/detail?id=268 I have added an issue with width/height
[16:47:59] <justinfrontThink> I think timers would be lighter that Actuate for a repeat.
[16:48:05] <justinfrontThink> than
[16:52:21] <Caribou|> the thing is that i don't need easing, and making the easing time to 0 makes things a bit tricky, i'll stick with timer then thanks :]
[16:57:04] <justinfrontThink> http://www.mathworks.co.uk/products/matlab/examples.html?file=/products/demos/shipping/matlab/xfourier.html
[16:59:03] <Caribou|> interesting
[16:59:48] <justinfrontThink> so something like y = Math.sin(t) + Math.sin(3*t)/3 + Mat.sin(5*t)/5 + Math.sin(7*t)/7; if( y > 0.9 ) y = 1; if( y < -0.9 ) y = -1;
[17:00:27] <justinfrontThink> no.... er.... y = Math.sin(t) + Math.sin(3*t)/3 + Mat.sin(5*t)/5; if( y > 0.9 ) y = 1; if( y < -0.9 ) y = -1;
[17:02:12] <justinfrontThink> you don't need more than one or two sines that will give you some smoothing. If you want different on off times then it's more complex and maybe simplier to use one timer to start another toggling between.
[17:38:45] <justinfrontThink> What you can do is sort of stick equations together. For instance a cosine starts at 1, Math.PI later it is at -1. So we can move the sine wave up so it's between 0 and 1 by halving it magnitude and adding a half. Then we can construct an if statement that leaves a gap between turning on and off something like... tOff = 500; tOn = 200;
[17:38:47] <justinfrontThink> if( t++ < 180 ){ mc.alpha = 0.5*Math.cos( Math.PI*(t/180) ) + 0.5; }else if( t > tOff + 180 + 180 ){ t= -tOff; } else if( t > tOff + 180 ){ mc.alpha = 0.5*Math.cos( Math.PI*( (t-( tOff + 180)) /180) ) + 0.5; }
[17:42:42] *** empika has joined #nme
[17:45:21] *** lordkryss has quit IRC
[18:08:43] <Caribou|> woah i like your mathematical approach but i'm not sure it would be more clear than just a timer + a switch to make it on & off
[18:16:56] *** lordkryss has joined #nme
[18:17:11] <justinfrontThink> depends if you want a smooth on and off
[18:18:38] <justinfrontThink> sine is easy one to use as it feels natural, but you can slip in a tween equation in a piecewise construction, you don't have to use them with tween engines you can use the equations similar to above.
[18:37:48] *** filt3rek|2 has joined #nme
[18:40:29] *** filt3rek has quit IRC
[18:47:33] <Caribou|> yes you are right but i actually wanted to avoid smoothing in that very case
[19:08:58] *** argylelabcoat has joined #nme
[19:23:14] *** tametick has joined #nme
[19:23:25] *** kohvihoor has quit IRC
[19:49:12] *** justinfrontThink has quit IRC
[20:13:48] *** corne has quit IRC
[20:31:42] *** benth has quit IRC
[20:40:45] *** corne has joined #nme
[20:48:29] *** sspiff has joined #nme
[21:03:17] *** corne has quit IRC
[21:14:52] *** corne has joined #nme
[21:25:24] *** corne has quit IRC
[22:01:22] *** tametick has quit IRC
[22:09:30] *** KingOfKarlsruhe has joined #nme
[22:09:53] *** KingOfKarlsruhe has left #nme
[22:38:31] *** justinfrontThink has joined #nme
[23:33:08] <lordkryss> anyone using flixel or haxepunk?
[23:52:16] *** lordkryss|2 has joined #nme
[23:53:32] *** lordkryss|2 has joined #nme
[23:55:44] *** lordkryss has quit IRC
[23:56:09] *** justinfrontThink has quit IRC
[23:59:35] *** extrawurst has joined #nme
top

   October 6, 2012  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >