User Tag List

Results 1 to 4 of 4

Thread: How to make a Phaser?

  1. #1
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a Phaser?

    Hi All.

    Need some help. I want to make a Star-Trek syle phaser in my spaceship game, with little ships on screen. When I hold down on the mouse button, I want to:
    A: Target the closest enemy ship
    B: While holding the mouse button down, shoot a phaser (straight line laser) at the targeted ship. When I release the button, the phaser stops.
    Can anyone tell me how to do these 2 items?
    Thanks
    JT

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a Phaser?

    Well for the first one you'd need to fastloop through all the ships that are within phaser range and find the closest ship you could use advanced direction object.

    For the phaser itself you could either use the overlay redux or you could stretch an active object between the phaser gun and the point of impact.

    If you don't know what I'm talking about you should probably spend a little time experimenting with fastloops and the advanced direction object. Also look at any related examples that are posted on the file archive.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a Phaser?

    Stuckboys solution is the best, although I don't like using an extension for something that you only need 2 events for (finding out the angle).

    Perhaps my distance and angle example can be helpful?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a Phaser?

    It's the matter of selecting the nearest one out of the group that the extension helps with, really. I actually wonder if it's more efficient doing the fastloop to find the nearest then calculating the angle, or relying on ADO to do it.

Similar Threads

  1. How to make?
    By PolSito in forum File Archive
    Replies: 1
    Last Post: 8th June 2009, 10:37 PM

Posting Permissions

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