At 2/13/08 06:13 AM, xTOXICxEMPIRE wrote: I'm Night-Mares fanboy :D
No, seriously. He rocks.
wewt. <3
At 2/13/08 06:13 AM, xTOXICxEMPIRE wrote: I'm Night-Mares fanboy :D
No, seriously. He rocks.
wewt. <3
Argh! Flash Sucks at Floats
Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
Tom-
At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats
Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
Tom-\
0.30000000000000004
At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats
You mean like, in a festival?
Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
Output: 0.3
My Favourite Artists
I hate everyone and everything and only grudgingly respect people if they earn it. You can wow and dazzle me, but I'll fundamantally remember that you're all human, and worse, competition.
:)
Floatsucking
At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats
Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
At 2/13/08 06:42 AM, As-Soul wrote: 0.30000000000000004
Schadenfreude
...
At 2/13/08 03:50 AM, Night-Mare wrote: Oh god I feel unloved. </3
Your sig is awesome <3
Flash sucks at floats
At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
Tom-
0.30000000000000004
Also try:
trace(1.1 + 2.2);
And:
1.2 - 1.1
Stuff like that can really bugger up a scrolling engine's smoothness if you're not careful.
No it can't. Do you realise how small that is? :P
Those are entirely processor-specific, nothing to blame Flash for. Use a modulo function to correct it.
What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.
Hi there!
At 2/13/08 10:41 AM, GustTheASGuy wrote: No it can't. Do you realise how small that is? :P
Trust me on this one - I do actually have some experience making stuff like this :P What looks like a small error translates into a bloody great big shudder effect when applied to stage graphics. I've not had the problem in my last few engines, but a while ago I had to work in some otherwise unnecessary rounding to the engine I was making...
At 2/13/08 10:59 AM, jmtb02 wrote: What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.
...in AS2.
Little as3 question: What's the difference between a Number, int, and uint?
At 2/13/08 01:16 PM, crushy wrote: Little as3 question: What's the difference between a Number, int, and uint?
A Number is just any rational number, an int is any integer, and a uint can only be positive.
At 2/13/08 01:34 PM, Paranoia wrote:At 2/13/08 01:16 PM, crushy wrote: Little as3 question: What's the difference between a Number, int, and uint?A Number is just any rational number, an int is any integer, and a uint can only be positive.
Isnt and integer: number^int? And what would happen if you gave a uint variable a negitive value?
At 2/13/08 01:43 PM, crushy wrote: Isnt and integer: number^int? And what would happen if you gave a uint variable a negitive value?
A rational would be a bignum over another actually. Either way, what? Numbers are floats or a mantissa with an exponent, go Wikipedia. An uint would wrap or give an exception, dunno. I don't see why you have to ask because it takes three seconds to test.
At 2/13/08 01:43 PM, crushy wrote: Isnt and integer: number^int
Not sure what you mean there :s
And what would happen if you gave a uint variable a negitive value?
This:
Warning: 1092: Negative value used where a uint (non-negative) value is expected.
At 2/13/08 10:59 AM, jmtb02 wrote: What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.
Happens in both AS2/3 for me.
Other Languages
Since we are on the topic of coding. Does anyone here code much except actionscript? I know a fair amount of lua, but no c# or anything.
I'm bracing for deltas post :D.
At 2/13/08 01:53 PM, Depredation wrote: Other Languages
I'm bracing for deltas post :D.
Just C++ really.
Not a big deal. If you want floats use cpp. I think as3 is trying to achieve more of a broad spectrum of programability. When it comes to more specific funtions, like arithmetic, its primary concern is being useful. How many times would you use a float to load in xml objects into an swf, or a video into an fl video player? Do you need a float to create a tabbed layout for a website portfolio? Do you need a float to have Bush beat Arnold in a fight? :P
Yah it sucks, it takes away from accuracy, but you really have to appreciate flash for its diverse ability and multi-usefulness, rather than shortcomings that might create a stutter in your flash platform video game.
Then again, if you complain to the right people they'll be able to work on it for F10...
I use OCaml instead of C++. I'm so cool.
And Pascal and Python and Haxe.
I'm still, uh, 'working' on my language also.
Languages
err, Java, Pascal, and C, C++, and C# but only tiny bits of each.
Gameboy!
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!
At 2/13/08 03:06 PM, As-Soul wrote: Gameboy!
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!
LMAO
And detailed action script convos should be banned from the lounge...
At 2/13/08 03:10 PM, patu1 wrote:At 2/13/08 03:06 PM, As-Soul wrote: Gameboy!LMAO
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!
And detailed action script convos should be banned from the lounge...
i wish i understood them!!! i want to learn AS so bad, but without a teacher, i cannot learn any type of code!
At 2/13/08 02:29 PM, GustTheASGuy wrote: I use OCaml instead of C++. I'm so cool.
And Pascal and Python and Haxe.
I'm still, uh, 'working' on my language also.
Have you thought up a name yet?
I still think "gust" would be a good name ;).
Hmmm... So, real languages. Anyone speak more than one language?
I speak OKish Spanish :P
Hola, me llamo Crushy, vivo en Bournemouth, alguin aqui espanol?
Program Languages
I know a bit of HTML. That's about it :P.
Real Languages
Je parle un peu de francais
At 2/13/08 04:03 PM, Cheektoghetto wrote: Je parle un peu de francais
Va te faire foutre!
Programming languages
I know abit of AS2, CSS, Html and VB.
Languages
Petit parles les francais (I got a C in gcse, lol.)
Watashi wa chotto Nihon go desu. (Learning WJEC)
Other languages
Completely fluent in: php, css, javascript, html, xhtml, dhtml, AS.
Know a little bit of: vbscript, pascal, C++
The only reason I know any C++ is from Delta sending me the sources to his physics engines to show off and just studying the syntax. =P
At 2/13/08 04:10 PM, dELtaluca wrote:
Va te faire foutre!
Thats not nice. :(