User Tag List

Results 1 to 6 of 6

Thread: CPU Players

  1. #1
    No Products Registered

    Join Date
    Jun 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CPU Players

    I Was Wondering How To Make Computer Players
    Like Attack, Jump, And Move Around Just Make Them Do It On There Own

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Players

    You are referring to enemy AI. I think there are some articles on this here on the forums.

    Here is one of them:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=89661#Post89661

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    No Products Registered

    Join Date
    Jun 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Players

    no i mean like in a fighting game the other player moves, jumps, and attacks, by their self

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Players

    Depends on the game.

    Code your own movement engine.
    Replace the players input with variables.
    Change the variables based on situations.

    I usually have these variables for my AI

    LeftRight
    Jump
    Attack1
    Attack2

    I make a loop to check what's going on around the AI, like whether or not what it wants to attack is close enough, or if it's too far away walk towards it, ect. I set my varibles based on this.

    Example:

    If "Player" is Overlaping "AI"-
    -Set Attack1 = 1 of "AI"

    Then at the end of my AI loop I carry out the actions contained in the variables.

    Like this:

    Always-
    -Set X Position to X("AI")+LeftRight("AI")
    -Set Y Position to Y("AI")+Jump("AI")

    If Attack1("AI") == 1-
    -(Attack Code Here)

    ect...

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Players

    Chaos has a Fighting Tutorial under Tutorials in the side bar -->

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    No Products Registered

    Join Date
    Jun 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CPU Players

    Chaos's Fighting Tutorial i think would be perfect but everytime i pick one of the buttons at the main menu it crashes anybody know why

Similar Threads

  1. Help with more than 2 online players
    By Oreo in forum Lacewing
    Replies: 4
    Last Post: 17th January 2009, 12:34 AM
  2. Players
    By Noctrama in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th December 2008, 06:36 PM
  3. More than 4 players
    By Pleng in forum The Games Factory 2 - Technical Support
    Replies: 11
    Last Post: 27th January 2008, 10:44 PM
  4. 2 players
    By Nate in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th January 2008, 07:54 AM
  5. Kicking Players
    By grayhuskie53 in forum Multimedia Fusion 2 - Technical Support
    Replies: 26
    Last Post: 29th September 2007, 03:15 AM

Posting Permissions

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