A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: please help with script for a game..

  1. #1
    <83)~ ratman
    Join Date
    Mar 2001
    Posts
    120

    please help with script for a game..

    gday guys...

    i'm making a flash game for an assignment and i was wondering if you guys could help me with working out how to do my actionscript...

    ok so basically there's a puzzle where you choose to turn a wheel clockwise or anti-clockwise... and if you turn in the correct way then it removes a stone.. if you choose the correct combo (for example cl | anti-cl | anti-cl | cl | anti-cl ) it will have removed 5 stones and the puzzle is complete... but each time you turn it the wrong way, all the stones move back in and you start again...

    if that makes any sense.. i was wondering how i would script this..

    do i make each different stone removed on a diff frame, and on each frame there is a diff code for direction it wants the wheel to turn. and then if you do it wrong it goes back to the first one?

    sorry i don't know whether this makes sense to anyone else..

    thanks for ya help anyway...

    steve rat

  2. #2
    Senior Member sherif79's Avatar
    Join Date
    Jan 2001
    Location
    Essex, England
    Posts
    266
    an example will be of great help..
    or some code

  3. #3
    <83)~ ratman
    Join Date
    Mar 2001
    Posts
    120
    well it's currently in my head so its hard..

    um.. the closest example that i can give is what i am modelling this puzzle on.. i know it's french and stuff but go here and then choose any adventure, and after the opening scene, you will notice the first puzzle involves trying to break houdini free using a combination of keys.. each one you do right, he gets a little bit more free but if you muck up, it starts again...

    this basically what im doing..

    tell me if this makes sense

    thanks for ya help

    steve rat

  4. #4
    <83)~ ratman
    Join Date
    Mar 2001
    Posts
    120
    anyone...

    steve rat

  5. #5
    <83)~ ratman
    Join Date
    Mar 2001
    Posts
    120
    i didn't know it was that hard a question??

    anyone?? is it just me or is it dead season?

    steve rat

  6. #6
    Cat
    Join Date
    Aug 2003
    Location
    In the bottle
    Posts
    12
    I think I get the idea of what u're trying to say...

    Hmm...
    How bout have a variable, such as "progress", and have it start as zero each time.

    If they get the first clockwise right, it should be like

    if (progress==0 and turn="clockwise") {
    progess++;
    with stone1{
    _x=800;
    _y=800; (this is to get them off the screen)
    }
    else {progress=0 (then assign the locaton at which each of the stones should be)

    I dunno, but I hope this might help
    code:

    trace("Meow!");


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