User Tag List

Results 1 to 4 of 4

Thread: Pushout function

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pushout function

    Hi
    Im trying to create a pixel perfect push-out function.

    Example:
    An Object moves from point A to point B, and at point B is stuck in an Obstacle.
    Object then moves incrementally backwards untill he no longer is overlapping an obstacle ( with pixel perfect accuracy ).

    Anybody got any ideas about how to do this, with perfect accuracy?
    Thing is ive been trying for a long while now, ive got it got it pretty good, but there is an occasional error where the Object is shifted by a single pixel after the pushout, and i dont know where or at what point the system fails.

    Im looking for:

    A
    Anybody having any new idea about how to do this with flawless accuracy.

    B
    Someone technical minded who can help me by looking at what ive got and identify the origin/ reason for the slight error.

    Thanks in advance

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    on loop "loop"
    ->move Object to x(Object)+1

    on loop "loop"
    if Object overlap Obstacle
    -> move Object to x(Object)-1

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes off cource thats easy
    But a 'point' in my example above consists of an X and Y position
    Objects dont just move along one of the axis alone in my case

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    save position as two seperate values (X and Y) in Object alternable values and recall if object overlaps?

Similar Threads

  1. Function Eggtimer problem // Power Function for MMF2 Android?
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 03:17 AM
  2. 'and' function?
    By mitsuki in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 27th November 2009, 08:04 AM
  3. Super Function 1.1
    By Jeff in forum Released Extensions
    Replies: 2
    Last Post: 1st November 2006, 11:38 PM
  4. Fast Function
    By DizzyDoo in forum Extension Development
    Replies: 2
    Last Post: 1st November 2006, 05:43 AM
  5. What is the function/calculation for...
    By Ben in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 6th July 2006, 03:36 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
  •