Page 3 of 3 < 1 2 3
Topic Options
#159342 - 09/12/09 10:18 PM Re: How to interact with MMF objects from LUA? [Re: Retriever2]
uprize


Registered: 03/26/07
Posts: 1340
Loc: Sydney, Australia
OK, so in order to define the function all I need to do is enter a function with that name "function mmf.DestroyCallback(ID)" somewhere in my script? Then that will be executed automatically everytime MMF destroys the object without the need for me to do anything else??
_________________________
previously know as bigredron

Top
#159346 - 09/12/09 10:34 PM Re: How to interact with MMF objects from LUA? [Re: uprize]
Retriever2
Extension Developer


Registered: 06/30/06
Posts: 406
Loc: United States
Yes, that is all.

Though to be clear, not immediately when an object is destroyed, but at the end of the current even loop. The main purpose of this function is to help you clean up when object destruction is beyond your control (like if the destroy if too far from frame box is checked).

Top
#159347 - 09/12/09 10:47 PM Re: How to interact with MMF objects from LUA? [Re: Retriever2]
uprize


Registered: 03/26/07
Posts: 1340
Loc: Sydney, Australia
Thanks, now its perfectly clear. I have the function set up which is why it worked before when I had #define in there. Its strange why that didnt throw an error message though. Everything seems to be working great now, cheers.
_________________________
previously know as bigredron

Top
Page 3 of 3 < 1 2 3


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum

Quick File Links
Multimedia Fusion 2
Updates - build 249
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 249
Community Links
Fusion Wiki
MFA Repository
Klikdisc
The Daily Click
GameBuilder

GB Arcade
TDC Arcade
Madword

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm

Money from your games
Click Chat
9 People are chatting
Game Builder

Visit the GameBuilder Homepage

Recent Download

Ultimoid 9.75

Latest News