Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 2 of 2

Thread: Bomb Excape Game - Need Help :S

  1. #1

    Bomb Excape Game - Need Help :S

    Hey, ok im working on this game where you are a fish and you swim around while mines appear in the water and gravitate towards you. your saposto swim between two mines to make them blow up to score points. My problem is i dono how to do a good hit test between the duplicated bombs. could anyone show me a more efficant way of coding it? (I included the swf and fla files, the bomb duplicating code is in 30th frame of the brown square movie clip named codeHolder)
    Code:
    shotCount++;
    if(bombCount<bombMax){
    _root.bomb.duplicateMovieClip("bomb"+shotCount,shotCount);
    _root["bomb"+shotCount]._x=random(300);
    _root["bomb"+shotCount]._y=random(300);
    }
    Attached Files Attached Files

  2. Quote Originally Posted by lancerawks View Post
    Hey, ok im working on this game where you are a fish and you swim around while mines appear in the water and gravitate towards you. your saposto swim between two mines to make them blow up to score points. My problem is i dono how to do a good hit test between the duplicated bombs. could anyone show me a more efficant way of coding it? (I included the swf and fla files, the bomb duplicating code is in 30th frame of the brown square movie clip named codeHolder)
    Code:
    shotCount++;
    if(bombCount<bombMax){
    _root.bomb.duplicateMovieClip("bomb"+shotCount,shotCount);
    _root["bomb"+shotCount]._x=random(300);
    _root["bomb"+shotCount]._y=random(300);
    }
    Here's all you need to make this work.

    http://www.kirupa.com/forum/showthread.php?t=288440&

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012