Jump to content
4 minutes ago, Wictorian said:

So I downloaded a flash game, decompiled it and got its contents. Now I wanna remake it in unity (using the same files) 

How do I import the files and which formats should they be in?

This is a bit too vague to answer.

Things like textures and such should be png files and music/audio effects should likely be wav files. But that's just the about the only things you can just transfer right away.

 

Flash games usually use Actionscript programming, which is very much incompatible with the C# Unity uses. Code will have to be rewritten.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

Be aware that if you don't own the rights to the game you decompiled, you might break the law if you decide to publish the game!
 

On that note, while Actionscript is far away from C#/Js in many aspects, the logic still holds similarities.

Doing it by hand might be a large task, but it should be doable with some knowlegde in Unity, and if you hurry up, you might be able to use Unity Learn Professional while it is available, free of charge! (their free tier is great too!)

Link to post
Share on other sites

10 hours ago, fpo said:

You’d have to write a file converter & have extensive knowledge of both flash and unity’s file formats in order to import them. 

 

Why do I need to write a file converter? Many already exist.

10 hours ago, fpo said:

Or you can translate it by hand by knowing action script and unity and opening both scripts simotaniously. 

I dont know action script but I will just do it according to the game's mechanics

Link to post
Share on other sites

4 hours ago, Mortenrb said:

Be aware that if you don't own the rights to the game you decompiled, you might break the law if you decide to publish the game!
 

Yeah, this is really for experience and it is a little personal. Dont really care if I cant publish but maybe the creator would allow me.

4 hours ago, Mortenrb said:

 

On that note, while Actionscript is far away from C#/Js in many aspects, the logic still holds similarities.

Doing it by hand might be a large task, 

Game is simple, really and as I said I wont bother with original code, I will just write it from scratch according tot the game

4 hours ago, Mortenrb said:

but it should be doable with some knowlegde in Unity, and if you hurry up, you might be able to use Unity Learn Professional while it is available, free of charge! (their free tier is great too!)

Will they charge it later? I thought it was forever free

Link to post
Share on other sites

Even though I'm no longer a Unity programmer (moved to Unreal Engine once I got my needs), I can assure the file format that both Unreal and Unity can import are:

  • Sprites/Textures: .JPG files, .PNG files, .TGA files
  • 3D Models; .FBX files, .OBJ files
  • Audio: .WAV files*
    *IIRC, Unity can import .OGG, but it's best to keep audio files in .WAV and let the engine do the compressing job on build.

I leave the file conversion from Flash stuff on yourself. Just know that those file formats above are 100% guaranteed to be working in both Unreal and Unity.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×