User Tag List

Results 1 to 4 of 4

Thread: Reposition Boss

  1. #1
    No Products Registered

    Join Date
    Dec 2009
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reposition Boss

    I'm sure this has been asked before, but after my boss performs a series of strings, I want him to reposition to his starting point.

    The only way I can think of doing this is to have an object at his starting point that sucks him back until he collides with it.

    How do I do this, or is there some other way(s) I can reposition my boss?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reposition Boss

    You could store the initial position of the boss in two of its alterable values (call them InitialX and InitialY), and at the end of the cycle, continually reposition it:

    X("Boss") > InitialX("Boss"):
    Set X("Boss") to X("Boss") - 1

    X("Boss") < InitialX("Boss"):
    Set X("Boss") to X("Boss") + 1

    Y("Boss") > InitialY("Boss"):
    Set Y("Boss") to Y("Boss") - 1

    Y("Boss") < InitialY("Boss"):
    Set Y("Boss") to Y("Boss") + 1

    X("Boss") = InitialX("Boss")
    Y("Boss") = InitialY("Boss"):
    [Go to the next phase]

  3. #3
    No Products Registered

    Join Date
    Dec 2009
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reposition Boss

    That's the problem: I can't figure out how to get him to move back to his starting point. I don't want him to just jump back there.

  4. #4
    No Products Registered

    Join Date
    Dec 2009
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reposition Boss

    Wait, I misinterpreted your code.
    I just need to add a timer so for every ___ it adds or subtracts to get to the boss' original position, like you had above.

Similar Threads

  1. [BUG] Compatibility - Reposition / Animation Dir
    By mojofltr in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th August 2011, 10:08 AM
  2. move object (not reposition)
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 22nd December 2010, 11:44 PM
  3. Boss help
    By Dakk in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd March 2010, 12:29 PM
  4. delay the reposition
    By semie in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 26th March 2009, 01:50 AM
  5. Reposition/resize object when app maximized
    By Ran_TH in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd August 2008, 07:12 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
  •