A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Help With First Flash Game - \\\TopGuN 2025/// - ISO ART Scrolling

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Location
    I'm a brumie, currently in London working for the man
    Posts
    147

    Help With First Flash Game - \\\TopGuN 2025/// - ISO ART Scrolling

    Hey ya dudes and dudetes, Right busy trying to make an Desert strike kinda game. using a isometric map which is drawn, haven't got time to do it in tiles.

    My Game Called TopGun 2025 (working title) is based on the original film of the same title. But i've used futuristic planes which have harrier style abilty. Anyway the whole point of the game is 2 to blow up everything in sight really. Shoot Oncoming enemies and bomb ground targets.

    Only Problem i'm having is getting the scrolling to work yeah i've tried the same code extract from tonypa's tute. I'm stuck at the moment my plane just kinda goes off the screen never to be seen again.

    i've tried everything, got lost on the web searching for isometric tutes. At the moment the only reason everything works is cause i've had to draw what seems like millions and millions of different angle rockets, planes and bullets.

    So then people who know more than me, how on earth do u get this damn scrolling thing working,

    oh and another thing is how on earth do i get my plane to rotate back on it's self...

    At the moment i've got my HERO (plane) in a frame by frame animation so when u hit say left it goes to the said frame and plays a series of frames so it looks smooth,
    Problem is when u say go from left to right without going up it gets confused and jumps back on it's self without playing all the frames.

    is there a way of letting flash know which was the HERO is pointing so that is can play the right selection of frames depending on it's starting position?

    This is my first Attempt at making a flash game, it's for a uni project which has to be in next wednesday so i could do with as much help as pos.

    Stay Cool.

    Game will be featuring here when complete.

    http://www.canofpop.com/topgun2025/

    Oh and if u fancy a laugh, check this out,

    http://www.canofpop.com/colemanator/
    Attached Images Attached Images

  2. #2
    one BAD mutha FK'er astrocalder's Avatar
    Join Date
    Oct 2004
    Location
    LA
    Posts
    221
    i think the reason you're code isn't working is because you're applying a tile-based code to an art-based MC - just a guess, i don't know how you altered it. but you should look for art-based scrolling tutorials, and they don't need to be isometric, you just have to alter the angle yourself, from 90 degrees up, down left, right, to 45 angle degrees...actually not quite 45, but i haven't gotten that far either...

    as for the turning, this is what i've been using for my isometric art-based rpg - it's not exactly the same as yours, but it will register what angle the hero's facing, so if you hit the move key it'll switch directions - i think you can apply it if you add in animation of your turning harrier. i think.

    the animations in that MC are - 1-up right, 2-up right move, 3-down left, 4-down left move, 5-up left, 6-up left move, 7-down right, 8-down right move.

    code:

    onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
    //this is the part you need i think - if the current frame is not 6, go to 6
    if (_currentframe != 6) {
    gotoAndStop(6);
    }
    } else if (Key.isDown(Key.RIGHT)) {
    if (_currentframe != 8) {
    gotoAndStop(8);
    }
    } else {
    //if you're facing left (6) but not pressing the key, it'll stop moving (5)
    if (_currentframe == 6) {
    gotoAndStop(5);
    }
    if (_currentframe == 8) {
    gotoAndStop(7);
    }
    }
    if (Key.isDown(Key.UP)) {
    if (_currentframe != 2) {
    gotoAndStop(2);
    }
    } else if (Key.isDown(Key.DOWN)) {
    if (_currentframe != 4) {
    gotoAndStop(4);
    }
    } else {
    if (_currentframe == 2) {
    gotoAndStop(1);
    }
    if (_currentframe == 4) {
    gotoAndStop(3);
    }
    }



    i hope you can use this in some way. if not sorry for getting your hopes up. but good luck.

    astrocalder

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Location
    I'm a brumie, currently in London working for the man
    Posts
    147

    thanks, but can anyone help me with my scrolling

    Thanks dude, That really sorted my rotation out,


    now any one gonna help me with my scrolling|
    \'???

  4. #4
    one BAD mutha FK'er astrocalder's Avatar
    Join Date
    Oct 2004
    Location
    LA
    Posts
    221
    all i get help you out on that is if your plane stays still, while the bg moves - like this -

    code:

    onClipEvent (enterFrame) {
    if (Key.isDown(Key.UP)) {
    play();
    move(s, -s);
    }
    if (Key.isDown(Key.DOWN)) {
    play();
    move(-s, s);
    }
    if (Key.isDown(Key.LEFT)) {
    play();
    move(-s, -s);
    }
    if (Key.isDown(Key.RIGHT)) {
    play();
    move(s, s);



    "s" is the speed, which you need to define (s = 10 or whatever). so if you hit the UP key, the bg'll move s in the x direction and -s in the y direction - basically in the opposite direction the plane is supposed to fly (hence the illusion of movement). it'll also move at 45 degree angles - if you wanted just 90 degree anlges, you'd have to replace an S with zero.

    otherwise you'll have to hope someone who knows AS better will see this...

    astrocalder

  5. #5
    Senior Member
    Join Date
    Nov 2004
    Location
    I'm a brumie, currently in London working for the man
    Posts
    147

    I made a game in flash ye.

    I finished my game, well as much as it needed to be for my coursework, i didn't finish the coding so the helicopters don't fire back and there are some cliches at the mo, but i'm happy with the other all effect.


    http://www.canofpop.com/topgun2025/

  6. #6
    Senior Member
    Join Date
    Nov 2004
    Location
    I'm a brumie, currently in London working for the man
    Posts
    147
    would love to hear what u all think

  7. #7
    one BAD mutha FK'er astrocalder's Avatar
    Join Date
    Oct 2004
    Location
    LA
    Posts
    221
    looks good and the play is okay. good sound too. seems to run well.
    i got stuck in the upper left corner for a second, but i manged to get out - don't know why.
    do you think you can get the enemy heli's to crash into the ground, instead of mid-air? my only complaint, everything else was good.

    astrocalder
    a little bit of imagination goes a long way...
    www.asobiproductions.com

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