User Tag List

Results 1 to 2 of 2

Thread: Shooting Game with radar

  1. #1
    No Products Registered

    Join Date
    Sep 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shooting Game with radar

    Hi

    I am trying to make a game with combat like the Zoids NES game. I've included a link to a Youtube clip so you know what I'm talking about but note that the fighting doesn't start until at least four and a half minutes in: http://www.youtube.com/watch?v=Awfwb7_LUjw

    It's mothing flashy (It is a NES game afterall) but I'm havng a hard time figuring out how to recreate this kind of thing with the whole radar and moving enemies.

    I thoughtI'd try the 3d method I found in the articles section but I'm not sure how to rotate the camera's view so to speak. Any insight would be appreciated. Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting Game with radar

    Always --> Delete object "Radar Blip"
    Always --> Spread "0" in Alterable Value A of Enemies
    Always --> Start loop "radar_blips" num("Enemies") times
    On loop "radar_blips"
    + Alterable Value A of Enemies = loopindex("radar_blips")
    --> Create object "Radar Blip" at (-100,-100)
    --> Set X position of "Radar Blip" to X("radar") + (Y("Enemies")*cos(((X("Enemies")-X("Target"))*360)/Frame Width)*100)/Frame Height
    --> Set Y position of "Radar Blip" to Y("radar") + (Y("Enemies")*sin(((X("Enemies")-X("Target"))*360)/Frame Width)*100)/Frame Height





    So basically, here's what I'd do.

    Make a normal frame that's as wide as you want it to be, and as high as the screen.

    Make a controllable target. Allowing it to "wrap around" when it hits the side of the screen is a different story.

    Make enemies.

    Each cycle, you can delete all your radar blips and create new ones in their new positions.

    Spread a value in Enemies so you can reference them by ID.

    Start a fast loop that runs once for each enemy.

    For each enemy, create a blip on the radar where it's supposed to be. Basically what I did with those expressions is convert the enemy's X position to an angle, and convert the Y position to distance from the center. I just threw in a random number (100) to represent the radius of the radar.

    Does that make sense? Let me know if you have any questions.

Similar Threads

  1. My 2D Shooting Game. What Do You Think?
    By Ryan9171 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st March 2012, 08:57 PM
  2. Radar
    By RickyRombo in forum File Archive
    Replies: 1
    Last Post: 1st May 2009, 01:17 AM
  3. HELP!!! shooting game
    By Opmux in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 23rd November 2008, 06:36 PM
  4. Help. Shooting Game
    By Opmux in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 23rd November 2008, 02:06 PM
  5. radar
    By kjellm87 in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 5th April 2008, 06:51 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
  •