Forum Topic: The Flash 'Reg' Lounge

(796,134 views • 52,641 replies)

This topic is 1,755 pages long. [ 18471,693 | 1,694 | 1,6951,7251,755 ]

<< < > >>
None

Depredation

Reply To Post Reply & Quote

Posted at: 9/7/09 08:54 AM

Depredation LIGHT LEVEL 17

Sign-Up: 09/05/05

Posts: 4,782

At 9/7/09 06:52 AM, Paranoia wrote: Don't refer to House by the actor's name :P When you say Hugh Laurie my mind instantly goes back to Blackadder and Fry and Laurie...

Yeah i liked him more as british Hugh aswell :P

At 9/7/09 06:06 AM, dELtaluca wrote:
I'm probably a bit slow, but what are the serious implications of that?

The way i am doing it atm, it checks every frame for a significant change in volume, then creates a beat which scrolls down and arrives at the players position a few seconds after the beat in the music is heard. It doesn't feel right and it's not very accurate.

At 9/7/09 06:06 AM, dELtaluca wrote: No, you've misunderstood me Dep, I don't mean using ComputeSpectrum as the song is played to collect the sound information, i mean having the entire file loaded into a ByteArray, rather than a Sound object, so that you have access to the entire mp3 file, which you would then decode in the same way a media player would, to decode the sound data contained in the mp3 file, so that without playing it you can have the entire sound data for the entire song.

I get you now, i've not done anything like that before, but i'm always open to new challenges :). Thanks for the idea, it sounds promising, I thought you might be able to come up with something useful :p.

BBS Signature

None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 9/7/09 10:14 AM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,048

If you're using flash 10 you don't have to decode the song yourself. You can read decoded data out of a sound object using a similar API for how you do dynamic sound creation.

Good luck decoding an MP3 yourself though. It's not exactly an open standard


None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/7/09 10:30 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

Whee more shuffling!

I just realised how simple it was to do an incompetant shuffle, or shuffle things so that the array maintains its basic order of the highest values being at the top and the lowest at the bottom while still having a random order. It's great if your game requires an array to be semi-ordered but still organic.

Let me know if there's any way to massively improve efficiency - it's just a first draft, and stuff's getting looped through a lot so efficiency is important.

const mrandom:Function = Math.random;
const ceil:Function = Math.ceil;

function semiShuffle(array:Array, strength:Number = 100){
  if(array.length > strength){
    for(i = strength; i < array.length; i++){
      array.splice(i - ceil(mrandom() * strength), 0, array.splice(i, 1)[0]);
    };
  };
};
BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/7/09 10:43 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

Refined a little to duct-tape up one major possible flaw in its arrangement:

const mrandom:Function = Math.random;
const ceil:Function = Math.ceil;

function semiShuffle(array:Array, strength:Number = 100){
  var i:int;
  if(array.length > strength){
    for(i = 0; i < strength; i++){
      array.splice(i + ceil(mrandom() * strength), 0, array.splice(i, 1)[0]);
    };
    for(i = strength; i < array.length; i++){
      array.splice(i - ceil(mrandom() * strength), 0, array.splice(i, 1)[0]);
    };
  };
};
BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 9/7/09 10:59 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,547

At 9/7/09 10:30 AM, Paranoia wrote: Let me know if there's any way to massively improve efficiency

Get rid of every single call to splice, honestly that algorithm is horrible :P

My social worker says im special!

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/7/09 11:13 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

Guess whose computer crashed, destroying absolutely every single file on the harddisk...

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 9/7/09 11:20 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,547

At 9/7/09 11:13 AM, Xeptic wrote: Guess whose computer crashed, destroying absolutely every single file on the harddisk...

Obama's?

My social worker says im special!

BBS Signature

None

SweetSkater

Reply To Post Reply & Quote

Posted at: 9/7/09 11:40 AM

SweetSkater LIGHT LEVEL 11

Sign-Up: 03/18/06

Posts: 1,907

Aion online... I'm downloading it now. Looks like a great MMORPG.

Owner of Spam The Web.

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/7/09 11:52 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

At 9/7/09 11:20 AM, dELtaluca wrote:
At 9/7/09 11:13 AM, Xeptic wrote: Guess whose computer crashed, destroying absolutely every single file on the harddisk...
Obama's?

Good try, but nay. Ironically it happened when I tried to install Windows on my Mac. That's the last time I'll ever try that again. Lost all my old projects (some of them finished), luckily bar the one I was working on atm. Photo's, music etc. is all gone >:(

BBS Signature

None

Jimp

Reply To Post Reply & Quote

Posted at: 9/7/09 11:56 AM

Jimp FAB LEVEL 14

Sign-Up: 08/05/05

Posts: 1,969

At 9/7/09 11:52 AM, Xeptic wrote: Good try, but nay. Ironically it happened when I tried to install Windows on my Mac. That's the last time I'll ever try that again. Lost all my old projects (some of them finished), luckily bar the one I was working on atm. Photo's, music etc. is all gone >:(

Fucking brutal. Ironic that the thing that fucks your Mac up is installing Windows!
You must have some swfs floating about that you could decompile, perhaps?

Time Machine is your friend man, back that shit up!

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/7/09 12:04 PM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

At 9/7/09 10:59 AM, dELtaluca wrote:
At 9/7/09 10:30 AM, Paranoia wrote: Let me know if there's any way to massively improve efficiency
Get rid of every single call to splice, honestly that algorithm is horrible :P

Thanks for advising an alternative ;P

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/7/09 12:10 PM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

At 9/7/09 12:04 PM, Paranoia wrote: Thanks for advising an alternative ;P

Although in retrospect sortOn on a stochastic is a far better way of doing things in this instance.

BBS Signature

None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 9/7/09 01:13 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,378

At 9/7/09 12:04 PM, Paranoia wrote: Thanks for advising an alternative ;P

Splice copies the array, so you make two new arrays just to switch elements, with convoluted code. If you switch them normally you're back at exactly what Toast suggested from the start.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

knugen

Reply To Post Reply & Quote

Posted at: 9/7/09 04:46 PM

knugen LIGHT LEVEL 35

Sign-Up: 02/07/05

Posts: 4,648

At 9/7/09 01:00 AM, knugen wrote: Hm, seems like we rolled over for tomorrow's dailies even though the game was "out of judgment" like 11.20. Would've made fifth or fourth I think.. Don't any of you dare submit something awesome tomorrow, I'm starting to get real tired of my unlucky streak when it comes to dailies ;)

Seems like this time I walked right into some mass-voting, dropped from 3.60 to 3.20 on 40 votes, and from the looks of it other high scoring submissions have had similar drops as well.


None

Senti

Reply To Post Reply & Quote

Posted at: 9/7/09 06:17 PM

Senti LIGHT LEVEL 38

Sign-Up: 12/01/03

Posts: 3,519

At 9/7/09 11:56 AM, Jimp wrote: Fucking brutal. Ironic that the thing that fucks your Mac up is installing Windows!
You must have some swfs floating about that you could decompile, perhaps?

Time Machine is your friend man, back that shit up!

It's been too long and too many lost projects to not utilize the power of Time Machine and unfortunately it usually takes a disaster like a complete harddrive wipe for most people to realize the necessity of it. I recently dropped $220 on a 1tb G-drive from G-tech and I'm currently backing up everything. 1.2 million files from my laptop, and another 140gigs worth of other various files from my other external. With Terabytes becoming more and more common, they will only get cheaper. Hopefully I won't have to buy another harddrive for the next 2 years or so, and by that time I'll most likely have upgraded my computer.

It's worth it man, seriously.

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/7/09 06:38 PM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

At 9/7/09 06:17 PM, Senti wrote:
It's been too long and too many lost projects to not utilize the power of Time Machine and unfortunately it usually takes a disaster like a complete harddrive wipe for most people to realize the necessity of it.

I'm one of those fools I'm afraid. I'm just glad I still have my most important project left. I can rebuild my huge music collection over time, most of my photos I can salvage from my friends I hope. The rest is just gone. All of my university files as well, hope I never need those again :) The music I've made over the years, all my old Flash projects, gone as well. It's interesting to see how you also start to miss the little things you normally never notice, bookmarks for example. Became to comfortable with the fact that as long as I've been using a Mac (the past 10 years or so) it has never crashed on me (well the occasional freeze, but never anything like this). So I never thought the hassle of making back-ups of everything was worth it. So yeah, I'm an ass and I learned my lesson the hard way...

BBS Signature

None

Senti

Reply To Post Reply & Quote

Posted at: 9/7/09 06:52 PM

Senti LIGHT LEVEL 38

Sign-Up: 12/01/03

Posts: 3,519

At 9/7/09 06:38 PM, Xeptic wrote:

At least you've been rocking a Mac. Think of how many times you would have lost all that and maybe more if you had been working on a PC for most of that time?

To Everyone Else

I haven't been back here in ages it seems. I don't recognize as many names and it seems to be that way every time I come back. Either way, I'll keep checking in now and then, and I hope alls well with those new and old Loungers.

Late

BBS Signature

None

TheCriminalDuder

Reply To Post Reply & Quote

Posted at: 9/7/09 08:38 PM

TheCriminalDuder FAB LEVEL 25

Sign-Up: 12/04/06

Posts: 1,704

At 9/7/09 11:40 AM, SweetSkater wrote: Aion online... I'm downloading it now. Looks like a great MMORPG.

You can be Wolverine! What more could ya ask for?

www.DuderEntertainment.com/ | Makin' Laughs and Kickin' Ass! >:3

BBS Signature

None

Duchednier

Reply To Post Reply & Quote

Posted at: 9/7/09 08:52 PM

Duchednier LIGHT LEVEL 17

Sign-Up: 06/14/05

Posts: 1,219

At 9/5/09 06:50 PM, Josh-B wrote:
At 9/5/09 04:46 PM, Duchednier wrote: Went to see 9 last night, not gonna lie guys, don't get your hopes up. The movie is entertaining... but its 60 minutes long, and alot of stuff happens. its like "Lets go here DONE! Lets do this DONE! Now were here DONE! Oh look its over CREDITS!
Wait, isn't it supposed to come out on 9/9/09?

Yeah except i work at a movie theater, so i see movies weeks in advance every so often. Sorry about the late reply to this one :(

At 9/7/09 08:38 PM, TheCriminalDuder wrote:
At 9/7/09 11:40 AM, SweetSkater wrote: Aion online... I'm downloading it now. Looks like a great MMORPG.
You can be Wolverine! What more could ya ask for?

Say whaaa? well that sounds dandy, imma google it.

BBS Signature

None

zrb

Reply To Post Reply & Quote

Posted at: 9/7/09 09:13 PM

zrb LIGHT LEVEL 11

Sign-Up: 08/08/06

Posts: 4,537

Songs that would make you want to kill the author if you were a crazy psychopath:

Single Ladies by Beyoncé

You cannot imagine how much I wan't her dead after I heard that song >:C
It angers me like there's no tommorow.

School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

Coaly

Reply To Post Reply & Quote

Posted at: 9/7/09 10:17 PM

Coaly LIGHT LEVEL 23

Sign-Up: 08/11/04

Posts: 2,830

At 9/7/09 09:13 PM, zrb wrote: Songs that would make you want to kill the author if you were a crazy psychopath:
Single Ladies by Beyoncé

Think you could do better, that's not really a bad song for what it is, NOT SAYING I LIKE IT, FUCK, but obviously it's aimed at chicks...

The Climb by miley cyrus. I'd murder her if I were a psychopath. She was born famous, sucks at acting, and is still famous, omg life so hard :*[

Zed's Dead

BBS Signature

Happy

doctormario

Reply To Post Reply & Quote

Posted at: 9/7/09 10:25 PM

doctormario NEUTRAL LEVEL 07

Sign-Up: 01/30/09

Posts: 669

I can rebuild my huge music collection over time

What did you lose? Depending what it is, I may be able to help. I have a wall of stuff, and most of it is imported. :)


None

ImpotentBoy2

Reply To Post Reply & Quote

Posted at: 9/8/09 09:32 AM

ImpotentBoy2 LIGHT LEVEL 18

Sign-Up: 04/01/03

Posts: 5,318

Just got back from Las Vegas, losing money is a lot of fun!

Some times my "L" key decides not to work.


None

Jimp

Reply To Post Reply & Quote

Posted at: 9/8/09 10:19 AM

Jimp FAB LEVEL 14

Sign-Up: 08/05/05

Posts: 1,969

Huh, they have Spotify on mobiles now too. You can even download playlists and listen to them offline. This makes so much sense.

Working on my 2010 NG Calender entry today, its gonna be sweet :)

BBS Signature

None

jmtb02

Reply To Post Reply & Quote

Posted at: 9/8/09 11:12 AM

jmtb02 LIGHT LEVEL 29

Sign-Up: 03/01/04

Posts: 5,842

Last weekend I finished my Half-Marathon in 2:24:55, today my RPG trading game will be done, and Saturday I'm getting hitched. Week is busy beaver.

Hi there!

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/8/09 11:32 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

I keep forgetting about your fitness :p It clashes with the stereotypical idea of games devlopers I've had since I was a kid. Today I needed to persuade my self that I cared desperately about cashing a <$10 cheque just for an excuse to walk into town.

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 9/8/09 11:42 AM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,536

At 9/8/09 10:19 AM, Jimp wrote: Huh, they have Spotify on mobiles now too. You can even download playlists and listen to them offline. This makes so much sense.

You need Spotify premium though :( £10 a month is a bit much for the amount I use it.. I can stand the ads when using it on Windows anyway. I hope they make the iPhone version usable with a free account too, ad-supported of course. If it's marketable on computers it must be marketable on mobile devices.


None

FlashtooREV

Reply To Post Reply & Quote

Posted at: 9/8/09 03:40 PM

FlashtooREV LIGHT LEVEL 06

Sign-Up: 06/09/09

Posts: 603

At 9/8/09 03:32 PM, Kirk-Cocaine wrote: Where's a good place (i.e. cheap) place to buy a .com and hosting?

You mean rent?
Depends on what you need. Storage/bandwidth, dedicated/shared, etc.

Ceterum censeo Carthaginem esse delendam.


None

Toast

Reply To Post Reply & Quote

Posted at: 9/8/09 04:09 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,919

Back in 2005 there was some guy on the flash forum who had a server and he was selling bandwidth at extremely low prices for people from the flash forum. I don't know if he still does it though.

i bought 6 months hosting from him and he even raised the bandwidth and disk space limit for free when it was getting close to the limit


All times are Eastern Standard Time (GMT -5) | Current Time: 11:15 PM

<< Back

This topic is 1,755 pages long. [ 18471,693 | 1,694 | 1,6951,7251,755 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!