User Tag List

Results 1 to 8 of 8

Thread: BUG: direction Calculator + virtual width

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    BUG: direction Calculator + virtual width

    Attached please find an example of a serious bug found of the extension.

    It has serious issues with the use of the virtual scrolling in MMF2.

    You can see on the example it starts having some malfultioning after a while, and stops completely working around minute 1:40.

    That's actually stopping the developing of my game (a sidescrolling shooter). Would it be possible to correct it?

    Thank you!!
    Attached files Attached files

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,025
    Mentioned
    108 Post(s)
    Tagged
    2 Thread(s)

    Re: BUG: direction Calculator + virtual width

    Actually we cannot fix this action, the problem comes from the position parameter of the Rotate toward position action. The 2 coordinates of the position are passed to the object in a single parameter value, and so are limited to +/- 32767.

    To fix this problem in your application you have to use the Rotate toward direction action and calculate the direction manually with the XY to direction expression. Something like :

    XY_to_Dir( "Direction Calculator", X( "target" )-X( "bullet" ), Y( "target" )-Y( "bullet" ))

  3. #3
    No Products Registered

    Join Date
    May 2007
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: BUG: direction Calculator + virtual width

    wow, not only that, watch what happens to the fireballs if ya put another window over the game!

    (for me , it speeds up tremendously!, at least 2-3x faster)

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

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: BUG: direction Calculator + virtual width

    Quote Originally Posted by Yves
    Actually we cannot fix this action, the problem comes from the position parameter of the Rotate toward position action. The 2 coordinates of the position are passed to the object in a single parameter value, and so are limited to +/- 32767.

    To fix this problem in your application you have to use the Rotate toward direction action and calculate the direction manually with the XY to direction expression. Something like :

    XY_to_Dir( "Direction Calculator", X( "target" )-X( "bullet" ), Y( "target" )-Y( "bullet" ))
    Ok, it seems pretty doable.

    Just suggest to add this paragraph in the object's documentation too, since the problem will surely appear to other people too.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: BUG: direction Calculator + virtual width

    Quote Originally Posted by Yves
    XY_to_Dir( "Direction Calculator", X( "target" )-X( "bullet" ), Y( "target" )-Y( "bullet" ))
    It happens after a while also with this event..

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,025
    Mentioned
    108 Post(s)
    Tagged
    2 Thread(s)

    Re: BUG: direction Calculator + virtual width

    At which coordinates does this expression fail?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: BUG: direction Calculator + virtual width

    It constantly occours on my game.. after a while coordinates gets crazy.. but I can't reproduce on the example!

    Since I can't post it on a public board, shall I send you the .mfa via email??

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,025
    Mentioned
    108 Post(s)
    Tagged
    2 Thread(s)

    Re: BUG: direction Calculator + virtual width

    Yes, you can send it to me by e-mail. But don't send me your full game I won't have time to look at it and try to find what happens. Just send me an example with 2 or 3 objects and events so that I can see easily what happens with a debugger.

Similar Threads

  1. Bug with virtual frame width?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th June 2010, 01:57 PM
  2. Direction Calculator + virtual width: BUG
    By Snakesoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th November 2007, 07:23 PM
  3. Virtual Width/ Virtual Height Revisited
    By Donald in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th July 2006, 12:32 AM
  4. What is Virtual Height and Virtual Width?
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th July 2006, 12:23 PM
  5. Changing Virtual Height and Virtual Width at run
    By Donald in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 13th July 2006, 10:36 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
  •