User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: How do you wrap an object around the play area?

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you wrap an object around the play area?

    I gave one of my active objects the Bouncing Ball movement in an attempt to make it wrap around the play area.. But it doesn't.. I did a Always, but it doesn't seem to work :S How can you make it do?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: How do you wrap an object around the play area?

    Test for the object to leave the frame then in your actions Movement/Wrap around playfield

  3. #3
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    Ah, yea there was the event Ive been looking for so many times
    .. But now, it turns out the movement events of the object is messing it all up. Is there any tutorials about doing this without the built in movement and event method?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    Just always set its position to its position mod frame size.
    Code:
    Set X Position to X("Ball") mod Frame Width
    Set Y Position to Y("Ball") mod Frame Height
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    Im sorry, what? Mod frame? Are those in the Storyboard Control?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?



    The "Frame Width" expression comes from the frame object.
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    Is Frame object an extension? Cause this is not working for me, when I use the Storyboard Control, which gives exactly the same expression when I choose Frame Width.. But then again, this could be because one of my other events are also using Set X position of Object to xxx, Set Y position of Object to xxx....

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    The "Storyboard Object" IS the "Frame Object". Most people call it the frame object because it handles things about the frames and not the storyboard...
    Working as fast as I can on Fusion 3

  9. #9
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    Yea, thats what I guessed :]

    Bah, this project was just supposed to be a very small one-day-created game to relax my brain from my main project.. Yet, Ive had thousands of issues and stuff not working already +_+

    Ill just make the player DIE if he tries to move out of the frame.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do you wrap an object around the play area?

    I know you opted to do something different, but just FYI, LB's method is the best.

    Although both MMF's inbuilt wrap function and LB's method don't take into the account the width of the animation, so it's a good idea to include some offsets.

    (X("Ball") + (AnimationWidth/2)) mod (Frame Width + AnimationWidth)

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Wrap aroud play area clickteam fusion 2.5
    By Carbon_X in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd January 2014, 08:41 AM
  2. Make object go faster in play area
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st May 2011, 06:17 AM
  3. If Object is in the Play Area....
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th September 2010, 11:59 PM
  4. Wrap around play area ignores conditions!
    By LB in forum File Archive
    Replies: 3
    Last Post: 14th March 2010, 03:39 PM
  5. wrap around Play Area Issue
    By Puff_N_Stuff in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th August 2009, 12:46 PM

Posting Permissions

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