Escape game***
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Escape game***

  1. #1
    Junior Member
    Join Date
    Feb 2017
    Posts
    3

    Escape game***

    Hello,

    I've been creating flash websites, trying to learn some code and modifying some ready scripts, I've also made an adventure game with AGS which is pretty cool and there is actionscript like code also in that software.

    I'm not a programmer and when I can I try to achieve the result in a graphical way. That's why I'm still using Flash 8 despite it's obsolete. But it suits my design ideas, mainly because I'm alone doing things and I'm not collaborating with some expert guys.

    Here some of my pages

    http://www.twinpeaksgame.altervista.org/
    http://www.mccollection.altervista.org/
    http://www.gabartsdigital.altervista.org/
    http://www.clubilgioiello.eu/

    I'd like to create an escape game project and I want to insert sort of healt status. Like for example that one in doors and rooms, whenever you click in the evil spot with the bad item your healt drops to - 1. Basically I have in mind how to design it but I really don't know how to code this thing.

    Let say I have this dynamic text field with 5 and whenever player click a spot in the room (button) if wrong drops -1 otherwise something else happen. Hope it's clear. Thanks for help

    As I continue to design it I may need more help!

  2. #2
    Senior Member
    Join Date
    Apr 2011
    Posts
    766
    The only way to create a fully customizable program is with software, drag and drop builders are only good to an extent as hard as it is to write software in the beginning thats as flexible as it gets


    var num=5;
    my_field.text=num;

    btn.onPress=function(){
    num--;
    my_field.text=num;
    }
    Last edited by Alloy Bacon; 02-23-2017 at 07:43 PM.
    a* on an ic!

  3. #3
    Member
    Join Date
    Oct 2016
    Posts
    53
    mo sure why you want a small bit of code like that when you have these goodish sites already, best than you sites alloy, must be gimmick to look at sites,
    n0 way not know if do these sites before, good luck with game

  4. #4
    Junior Member
    Join Date
    Feb 2017
    Posts
    3
    Thanks for the help! Sorry for late answer but apparently there was some problems with the forum board...
    I'll do some test but still have to design the entire game.

    @Dezoid
    As I mentioned, those sites have been adapted and really contain easy code. The only hard coding thing is been the game made with AGS! That was hard...

    @Bacon
    Yeah, I'd really like to use drag and drop inventory, for example I'm trying to find Lassie adventure studio (the 1st version), that software is perfect to make an adventure game with basic flash coding. But here I just need a simple scrolling inventory for items and then I'll use a "Doors and Rooms" style, so that when you have an active item you can make interactions with other buttons ingame. Thanks for the code.

  5. #5
    Junior Member
    Join Date
    Feb 2017
    Posts
    3
    Quote Originally Posted by Alloy Bacon View Post
    var num=5;
    my_field.text=num;

    btn.onPress=function(){
    num--;
    my_field.text=num;
    }
    I've created my dynamic text calling it "healt" and the button

    the code is working and number decreases till -9 then reset to -1
    Now. I need a function that if the number reach 0 value then i use gotoAndPlay

  6. #6
    Senior Member
    Join Date
    Apr 2011
    Posts
    766
    var num=5;
    my_field.text=num;

    btn.onPress=function(){
    num--;
    my_field.text=num;
    if(num<=0){
    btn.gotoAndPlay(2);
    }
    }
    a* on an ic!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center

Poll by Flashkit.com