User Tag List

Results 1 to 5 of 5

Thread: Tails Style AI?

  1. #1
    No Products Registered

    Join Date
    Feb 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tails Style AI?

    Recently, I started work on a platform game (actually a sequel to the first one I made). In this sequel, I wanted to have one character follow the other the way Tails does in Sonic the Hedgehog 2 (If anybody's played that). I was wondering how one might go about this. I thought that I could give platform control to both characters to player 1, but then remembered that the characters would act at the same time. What I'd like to do is when the player moves the main character, the following character would do the same action with a delay of 1 second or so. Anyone know how to do this? Thanks

  2. #2
    Clicker SWF Export Module

    Join Date
    Apr 2009
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tails Style AI?

    I'm also wondering how this is done.

  3. #3
    No Products Registered

    Join Date
    Aug 2010
    Location
    California
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tails Style AI?

    My best guess would be to use an array that stores the x and y coordinates of the player. Every frame it bumps all the values down one row and puts the newest x and y coordinates up top. The following character would then be set to use the x and y coordinates of a specific row of the array. (Say if your frame rate is 60fps, then using the 61st row would have the character follow a second behind. Assuming the array is set to "Base 1 index".)

    To make the animations match up too, you could add a third column to the array, assign each animation a value, then use it in the same way as the x and y coordinates. (For example you could have stopped=0, walking=1, jumping=2, etc.) This part might be a little trickier, but I don't know since I haven't tried it before.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tails Style AI?

    Maybe this could be done with the timeline object?

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tails Style AI?

    My guess is that in Sonic, Tails had a simple AI that would cause him to jump when near an obstacle or ledge, and move towards sonic when the 2 of them were far enough apart.

Similar Threads

  1. How to make multiple-object wiggly tails?
    By FlipSwitchX in forum File Archive
    Replies: 0
    Last Post: 28th May 2013, 05:25 AM
  2. typeface style ?
    By Johnny in forum File Archive
    Replies: 4
    Last Post: 20th March 2009, 09:09 PM
  3. RTS style 'toolbar'
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th November 2007, 11:51 AM
  4. RPG-Style Text Box
    By BenMo in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd November 2006, 03:50 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
  •