User Tag List

Results 1 to 3 of 3

Thread: Object following?

  1. #1
    Clicker Fusion 2.5

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

    Object following?

    Is there a way to make an object follow another object similar to "Look at (#, #) from" but by keeping it relative to only its given directions? I've got a few active objects that have the movement type 8 Directions, and respectively, they've only got animations in those frames. I don't really know how to make them do some path finding to follow the player around according to the 8 directions they have. It'll always produce some "sliding" look to things. =(

  2. #2
    No Products Registered

    Join Date
    Jan 2007
    Location
    Florida
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object following?

    So, you have an eight-direction object and you want to restrict to only eight directions when you use "look at (x,y) from"?

    I don't think there is any sort of built-in feature like that.

    Dunno if you already thought of this yet, but if both the objects - the one moving and the other following - are unique, that is, only have ONE duplicate/instance in the frame, you could make a third object that filters the directions for the one that is following. That's only if both of the objects you were talking about have no duplicates in the same frame, though; I don't know how - if it's even possible - to get duplicates to act individually in TGF/MMF.

    If that sounds like it might work well enough for you, I'll elaborate on what I mean, but it's kind of a round-about way of doing it. Even so, it's the best way I can think of to do it, and at least it will work.

    Hope that helps.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Object following?

    You could try something like:
    [events]
    * Every 00"-50
    -(Active) [obj_active] : Look at (0,0) from [obj_active] (Active 2)
    -(Active) [obj_active] : Set direction to (Dir( "[obj_active]Active" )/4)*4
    [/events]
    .:::.Joshtek.:::.

Posting Permissions

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