Redoing the player in Flash

Discuss topics that are unrelated to Ace Attorney Online, introduce yourself if you're new and read the latest Member of the Month interview.

Moderators: EN - Assistant Moderators, EN - Forum Moderators

User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Redoing the player in Flash

Post by Nevfx »

Meph wrote:Yes. ;) It's just a backend change that allows for better improvements.

Ah, thats good. XD
Last edited by Nevfx on Sun Jun 20, 2010 10:38 pm, edited 1 time in total.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

I think you might need to correct your BBCode in your post. :P
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Redoing the player in Flash

Post by Nevfx »

...

How the hell did that happen.
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

So I feel like actually doing this. But the issue I have first is the animations.

What I mean here is a lot of small things. The first being, what is the correct framerate? The second is, how should I get the animation data? I need to know what picture to show when and for how long. And I need proper pictures too. As in clearly separated and aligned bitmaps. Not the mess that unofficial sprite sheets has. The best would be to read the animations directly from the game data itself. Anyone know someone with tools for that?
Currently working on a redesign of Court-records.net.
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

Surprise surprise! Guess what?

I actually did it! (old version)

I have a working cross exam system now. I will just add in objections before making the next release. Also, expect a feature that no other trial player has.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

henke37 wrote:Also, expect a feature that no other trial player has.
It's almost as though you're... bribing us. :P I have to admit, however, that this is intriguing.
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

No, I am not bribing. I am just teasing. Btw, I forgot to thank you for providing with the hosting, thanks Meph.

But there is one thing that I do need assistance with. That is getting the animations in order. As will be more and more obvious, I have no clue how fast the animations should run. So, I need help deciding on the framerate to use for the player. The acceptable range is 24 to 60 frames per second. Once that is settled, the animations themself need to be scaled to work at that rate. I will need either someone with Flash that can directly tweak things or someone who thinks that it will be exciting to write screen after screen of animation data into a text file that I can manually read and apply.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

The framerate depends on the FPS for animated GIFs in Firefox.

And you're welcome. ;)
User avatar
Unas
Admin / Site programmer
Posts: 8850
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Redoing the player in Flash

Post by Unas »

Meph wrote:The framerate depends on the FPS for animated GIFs in Firefox.
Why are you talking about framerates in GIF files ?
In an animated GIF, each frame has its own length set. It's not "change frame every x milliseconds" with x a global value, it's "jump to the next frame in x milliseconds", with x a property of the current frame.

If that can help, usually the lowest possible interval between two frames is 10ms, but that's not part of the GIF spec as far as I know, it's just a common use because lower values use the processor too much.
henke37 wrote:Once that is settled, the animations themselves need to be scaled to work at that rate. I will need either someone with Flash that can directly tweak things or someone who thinks that it will be exciting to write screen after screen of animation data into a text file that I can manually read and apply.
Can't you read the data contained in the gif file at runtime, to know what's the length of each frame and then round "length of the gif frame * your flash framerate" to get the number of your frames that'll be used by that gif frame ?
Doing that at runtime would avoid the need to prepare all data like you're wanting to.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

Unas wrote:
Meph wrote:The framerate depends on the FPS for animated GIFs in Firefox.
Why are you talking about framerates in GIF files ?
Oh! Sorry! I meant to say the "FPS for Flash" :P
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

I could read the gif files. I am sure there is some library to extract the data out of them. But I want to have just one file to load for each character. This both in order to save bandwidth (requests are not free) and to allow data sharing. True, there will be some unused, yet loaded, assets, but the file will be cached soon enough and most of the time, there will be more used ones than unused ones.

Of course, I am still thinking that some of the characters should be split.

I am also using a fair amount of scripting in the character animations to ensure that they will interact just right.
Last edited by henke37 on Mon Aug 30, 2010 10:56 pm, edited 1 time in total.
Currently working on a redesign of Court-records.net.
User avatar
ThePaSch
Moderator
Posts: 1269
Joined: Sun Jun 13, 2010 5:56 pm
Gender: Male
Spoken languages: English, German (native)
Location: Germany

Re: Redoing the player in Flash

Post by ThePaSch »

henke37 wrote: Of course, I am still thinking that some of the characters should be split.
You mean, like, in half? :shock:
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

I mean that groups of poses should be split into separate characters. For example, when there is different clothes. For some reason, people want the clothes to stay the same.
Currently working on a redesign of Court-records.net.
User avatar
ThePaSch
Moderator
Posts: 1269
Joined: Sun Jun 13, 2010 5:56 pm
Gender: Male
Spoken languages: English, German (native)
Location: Germany

Re: Redoing the player in Flash

Post by ThePaSch »

Ah, I see.
henke37 wrote:For some reason, people want the clothes to stay the same.
Can't think of any reason why people would want such a thing. :?
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

It's called constiency. People tend to note when things changes with no explanation.
Currently working on a redesign of Court-records.net.
Post Reply