Search:

Type: Posts; User: astrospoon; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    A few frames as in MMF frames, or frames per second? I assume you mean there is just a slight delay from when you bind to when you can access the info.
  2. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Can someone explain how to properly use a Lua state between different frames? Does the new frame's XLua object need to bind the state again, or is it already set from the previous frame? What calls...
  3. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Pixel-

    You only need one XLua object to run any number of files. Once you run them, any functions and variables that are contained in a file are in memory, and at that point can be called from...
  4. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Well-

    You are right about not being able to deal with "destroy object if too far from frame."

    But in all other instances, instead of just using the event "Destroy OBJECT" you can just instead...
  5. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Yeah-- I ran into this too. It is indeed when Lua tries to call mmf.Object calls on a deleted object.

    The best thing is to set up some sort of "destroy" function that must get called in Lua to...
  6. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Ret: PM sent. If anyone else wants to take a peek, I posted the project files here.
  7. Replies
    424
    Views
    270,376

    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:



    In MMF2, the...
  8. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    ret: Everything I have done so far works fine in HWA except for SetAngle. I'll post if something else turns up not working as I go.

    It would indeed be convenient to have a temporary SetAngleHWA()...
  9. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    I was thinking of trying to write some crazy function that converted my integer into another integer that happens to represent the original number as a float. (Basically hack the heck out of the...
  10. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    This must be it. My project requires HWA because it has tons of scaling and rotating. (I am writing a pseudo-3d engine)

    From what I recall, eventually the HWA version will merge into just regular...
  11. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    Yeah, I just ended up making a DoCall that ran one event in MMF2 to set the angle, and passed it in as a variable, and it worked.

    I assume there is no way to "cast" in Lua to make sure that it...
  12. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    void mmf.Object.SetAngle ( number objectId, number angle ) doesn't seem to be working. (This is with the newest MMF update)

    I have in my code this:

    mmf.Object.SetScale(self.id, _scale, _scale)...
  13. Replies
    424
    Views
    270,376

    Re: XLua extention beta

    ^ ditto. Xlua has totally transformed how I work in MMF2.

    I learned Click products back with Klik and Play, and I majored in Computer Science, doing mostly C++ coding, but nothing ever felt right...
Results 1 to 13 of 13