The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


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