Lua coroutines in MMF + scripting
Author: | Zephni
|
Submitted: | 31st May, 2009
|
Favourites: | 0 |
Genre: | Tutorial
| Downloads: | 426
|
Rated: |
|
|
Ive been tring to figure this out for a while now...
You know like how "the underside" has scripts where everything is executed line by line in the function "runscript()". This can be done because of somthing called coroutines.. It basicaly says:
"LUA, just shut up for a second and wait until MMF says you can carry on you supid little script..OK!"
The MMF code is heavily commented, yet i kept the actions it can do quite small, because this is ment to be modable, therefore you are ment to make your own functions.
It works (to my knowledge) the same way The Podunkians works, exept i have named the functions different.
With the power of MMF and Lua together you could have endless possabilitys, espesialy if you wanted to make a level editor.
You could create a game completly EXTERNAL to MMF. All the bugs would be external, and the scripting would be external, everything.
If you want to see the power that this can acheive go download "the underside preveiw" on the pod's webste.
type in "the underside" on google and it should be the first entry.
Review This Download
http://www.box.net/shared/z85nt85tgk (18 kb )
|
|
ZephniMy other cars a Balrog Registered 17/10/2007
Points 4019
Is this worth a look? Let others know! Favourite
|