I've found at least one type of game in which the methods above aren't quite enough, for example History Museum Escape by JustPineGames. Similar thing with the "NoScale" and "No_Scale" commands we don't want. I'm just listing them both for completeness. Whatever the technical differences are between "Show_All" and "No_Borders," both seem to work for our purposes. I'm using upper and lower case in the above text searches and commands just to be anal, but as long as you leave the default "ignore case" button checked in the search command, case doesn't seem to matter. For example, sometimes the changes you make in the P-code automatically update the AS, whereas if you start by editing the AS, you may get an error. I've found that it's best to start by editing the P-code, not the action script. When you've made all the text replacements for both P-code and AS, go to the "File" menu and choose "Save as." Now minimize JPEXS and try running your game! If there were no results for AS, you can just skip this part. Now you'll be editing in the tall middle text window. Go to the AS ("action script") search results box you created in the beginning, and repeat the above steps. Return to the P-code search box and repeat the above steps for any other entries. Then, when you're done with that section of code, hit "Save" at the bottom of that script section. Remember, you want to change each and every instance of "NoScale," so if in doubt, search the whole section a second time just to be sure you've made all the needed changes. Change it to either "No_Border" or "Show_All." Repeat as necessary using CTRL-H / F3, or right click to find any other instances. Once you find the offending text, hit the "Edit P-code" button and go modify it. What you're looking for are instances of "ScaleMode" followed by "NoScale" or "No_Scale." You can also resize the window width to make things easier. You might need to scroll left and right a bit. Note the highlighted line number over on the right side (line 1 in the screenshot), click on it, and examine the text. It will also show you within the script on the left side where the specific element is you searched for. This should generate a tall text box that takes up the right part of the screen. Now double-click on the first result in the P-code results box. Set the search result boxes to the side, keeping track of which is which. Press "OK" each time, and you should now have two search result boxes. Do this once for the default button AS ("action script"), and once for the P-code ("player code") button, which must be manually selected. Go to the menu "Tools," click on the binoculars and enter the text "ScaleMode". Now refer to THIS screenshot and follow the steps below. Step-by-step explanation- start by running JPEXS and opening the desired. If you're already comfortable using editors of this type, that's probably all you need to know. Quick explanation- Open the Flash file (.swf) in JPEXS, search on all instances of "ScaleMode" in the script, then change the associated values from "No_Scale" or "NoScale" to "Show_All" or "No_Borders" in order to force full screen format. I'm using JPEXS here, but others should also work. We'll also need a Flash decompiler / editor. If you're unsure how to extract that from its site, there's plenty of help online. For example, here is an example of an unmodified game compared to the same one after a couple simple edits. Most games just look and play better when in full screen mode, after all. Unfortunately, sometimes a size limit is hard-coded in to the game itself, which sucks for obvious reasons. This will happen automatically, simply by maximizing the window of your Flash player. But one of the perks of extracting the game file (or ".swf") from the site is that you can now run it in full screen mode. The issue- most Flash games are served on gaming sites, which naturally run them at a fixed size so they can surround each game with links, ads, and other content. I'm not a Flash coder or anything, but have had success fixing this issue, and wanted to share my method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |