Create a survival horror game in Flash – AS3 version

Emanuele Feronato Actionscript 3, Flash, Game design

I receive almost daily requests to port the old AS2 survival horror game in AS3, so here it is.

Since it was an easy conversion, I decided to add two features:

* Adjustable torch power using keys 1 and 2

* A flicker variable to set torch flickering rate (0-100)

So we can also have an upgradable torch…

To know the whole concept behind this, I recommend you to read step 1.

Here it is the AS3 example:

And this is the result:

Move the player with arrow keys, aim the torch with the mouse and increase/decrease its power with 1 and 2.

Download the source code.

Comments 24

  1. ps2ita

    Grazie!
    Spero che si potrà creare un bel gioco!
    Secondo me però devi aggiungere anche qualche potenziamento (vita ecc.) e armi per uccidere i nemici

  2. antoan

    light.graphics.beginFill(0xffffff, 100);

    I think that should be light.graphics.beginFill(0xffffff, 1) (the alpha value should be 1, not 100)

  3. Pingback: Ganalot! » Blog Archive » Resident Evil 5 (PC) Review

  4. Pingback: Create a Flash racing game tutorial – Artificial intelligence - Emanuele Feronato

  5. Pingback: Call of Cthulhu survival horror game prototype

  6. Ryan

    i noticed a glitch in this: if you continue to decrease the power of the flashlight, it eventually will shine behind the player. How do you fix this?

  7. Timothy

    He i can really use this for a school project but how do i get this to work? i got flashdevelop and flash builder installed but i cant seem to open the .fla file. what do i need to open it so i can see all of the source code?

    thanks in advance.

  8. Kyle O'Donnell

    Is it possible to have the same kind of movement/collision detection system when the level is moving around a character instead of character moving around a level?

  9. CjTheDragonWolf

    Game is good, but did what happened to that second part? plus you may want to put a limit on how far backthe light can go. hold 2 long and you get light shining out your ass somehow.

  10. Pingback: A quick HTML5 survival horror prototype made with Phaser | Emanuele Feronato

Leave a Reply

Your email address will not be published. Required fields are marked *