User Tag List

Page 11 of 43 FirstFirst ... 9 10 11 12 13 21 ... LastLast
Results 101 to 110 of 426

Thread: XLua extention beta

  1. #101
    Clicker Multimedia Fusion 2
    Algul's Avatar
    Join Date
    Feb 2008
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Thanks!

  2. #102
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Thanks for this!

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #103
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Wow you update this thing fast... I might have to convert now

  4. #104
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    O_O
    thats some mighty support you manage

  5. #105
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Thanks

  6. #106
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Thanks for all the comments.

    I wanted to mention that every so often I add one or two things to MMF Interface, but I usually don't mention them here. If you thumb through the documentation on a new release, you might find new functions listed. I always keep that up to date.

  7. #107
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    i believe you're understating the importance of the mmfi functions you just added >

  8. #108
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    I've added some properties and some items to the debugger to flesh out the object a bit. The properties will let you store a script or automatically bind a state.

    Note the new URL for the moment, in case I broke something with the updated editdata structure and you need to go run and fetch the older version.

    The only new functionality per se is new control over when the on error / on print events get executed.

  9. #109
    No Products Registered

    Join Date
    Dec 2006
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    So I have come across something strange that involves the Lua object, though I am not sure it is at fault.

    In my program, I use the following code to check for collisions:

    --MOVE MASK AND CHECK
    mmf.Object.SetX(self.mask, self.x + xINC)
    mmf.Object.SetY(self.mask, self.y)
    mmf.Object.Update(self.mask)
    local colcheck = 0
    local colObj = 0
    colcheck, colObj = DoCall("checkCollision", self.mask)
    In MMF2, the function "checkCollision" looks like this:



    So if the fixed value of a group "Mask" object is overlapping one of those things (backdrop, obstacle, or push block) it will return a number to Lua (1, 2, or 3) to let it know what it is colliding with. If it isn't hitting anything, it returns 0. (colcheck) It also returns the Fixed ID of the object it is colliding with, provided that one exists. (colObj)

    The strange part is that I have 2 types of objects currently that check for collisions currently: push blocks and the player. They are both of group "Mask"

    The push blocks work perfectly, but the player mask will not work with the above code. It always returns "nil" - meaning none of the events are triggering.

    HOWEVER!!! If I copy all of 4 of the "Mask" events in MMF2, and replace group "Mask" with the actual player mask object, everything works correctly:



    This is not really ideal however, since every new object would need copied events to function - the entire point of groups in the first place! Also, there is no logical reason why MMF would treat the above code differently if that same object is also in group "Mask"

    Does anyone have any idea why one object would work with group events (my push blocks) while another object that shares the same group would not (my player object)? When I print out the value of the parameters and the fixed IDs, everything seems to match up in both cases - where is the difference coming from?

    UPDATE: If the push blocks are removed from the "Mask" group in MMF2, then the player object will work correctly. (As it is now the only "Mask" group object) In other words: only one "type" of object seems to function with the group events, and the others ignore them.

    UPDATE #2: It seems to stem from using groups with the "Fixed Value" conditions...Events without that work correctly.

  10. #110
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Could you isolate this into an MFA and give it to me to look at?

    Yeah, I could make my own, but often there are subtle differences in implementation that make all the difference.

Page 11 of 43 FirstFirst ... 9 10 11 12 13 21 ... LastLast

Similar Threads

  1. XLua
    By Retriever2 in forum Released Extensions
    Replies: 6
    Last Post: 13th August 2017, 07:42 PM
  2. Extention error with exe
    By Jinxtengu in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th October 2012, 03:47 AM
  3. SPC extention question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 20th November 2009, 03:25 PM
  4. Lua+ or xLua?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th October 2009, 10:55 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
  •