User Tag List

Results 1 to 3 of 3

Thread: Need Help Creating Pong AI (Variable Difficulties)

  1. #1
    No Products Registered

    Join Date
    Jul 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Help Creating Pong AI (Variable Difficulties)

    I've managed to create a rather simple pong game with a title screen along with a two player version, but have been unable to create a decent CPU opponent.
    I have an always active condition where the Y position of the CPU Paddle is set to the Y position of the ball, which makes for an impossible AI. It doesn't follow the ball at the given Speed, and I have no idea how to possibly implement that.
    I've also tried creating a detector, a small invisible active object to precisely mimic the ball's Y position, but have run into the same problem.

    The gist of the problem is having the CPU paddle follow the ball or detector smoothly without getting its position set.

    I have my MFA attached with comments explaining the problem more efficiently and with more detail.

    Pong

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Your AI was set to the wrong Paddle.

    Pong 2.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,213
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You could set you AI up like this .



    It's what I used for my game https://aenever.itch.io/pixel-pro-tennis

Similar Threads

  1. creating multiple objects based on value of a variable
    By infinitum3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd March 2013, 02:52 AM
  2. Creating objects in rows with variable dimensions
    By netninja in forum File Archive
    Replies: 0
    Last Post: 9th July 2009, 07:18 AM
  3. MOO difficulties
    By jathak in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 30th May 2009, 03:37 PM
  4. (0,0) difficulties, origin difficulties
    By Beginier in forum File Archive
    Replies: 4
    Last Post: 25th April 2009, 10:59 PM
  5. TGF_MMF Notion Variable, “Système Variable”.
    By SpringUp in forum File Archive
    Replies: 2
    Last Post: 13th March 2009, 12:43 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
  •