Flash RPG

click the screen, then use the arrow keys to move, space to talk, and enter to choose dialogue.

Get Adobe Flash player

project info

FlashRPG is a library of AS3 files that provide the shell of an RPG Game. It relies on Flashpunk 1.4, which is included in the download.

The images used in this demo are not intended for use in any derivative production. They were gathered from the web link below, and should only be used to demo the software. Image source: Spriters-Resource.com


FlashRPG is being developed with FlashDevelop. It may be possible to compile these source files with another IDE, but I cannot guarantee that it will work.

To start working with FlashRPG in FlashDevelop follow these steps:

  1. complete the steps on this website to setup FlashDevelop: UseFlashPunk.net, except:
    • instead of naming your new project 'Hello World', name it whatever you want your game to be called
    • note that you can use any version of the Flash Debugger. You do not have to find v10.
  2. Copy and paste the contents of this repository into the 'src' folder of your new project. Overwrite any conflicts.
  3. Build and Run! Your now good to go and free to edit anything.

source code notes

Main - the entry point of the application. It sets the screen resolution and creates a new GameWorld.

GameWorld - the main function of FlashRPG. GameWorld is initialized with a level to fill out its data, then it controls all input, UI changes, and character interactions.

Level - the parent object of a Level. Contains references to tile data and dialogue strings.

Level_PalletTown - an example of a Level child. Contains references to level specific xml data and images, and implements essential functions.

Character - the parent object for all Players and NPCs. Contains state information and manipulation functions.

Player - the player character, contains a reference to the player image.

NPC - an object containing Non-Player-Character images and data.

MapAnimation - an object used for any animating tiles on the map.

TextBubble - the black popup shown when an interaction starts.

TextObject - a line of text in a TextBubble.

getting help

If you need help with installation or have a question/issue with the source code, post a query via Github.