Re: [Pipmak-Devel] new features in Pipmak
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2008-09-01 12:35:43
|
Hi Aidan, Running Lua code immediately after a certain sound stops playing. > I think that adding this possibility can be very useful! It would be useful also if someone would to concatenate different sounds (when finish one, then start another). For example, some time ago I tried to add voice messages, and I didn't want to record a sound for each message, but I wanted to compose the message using a dictionary of words...(like TomTom do....) So the message "the door is closed" was composed by 4 sounds played in sequence "the" "door" "is" "closed", but this is difficult with actual pipmak sound APIs. One possible implementation could be adding the method "onsoundstop" mysound = sound "mysound.ogg" mysound:onsoundstop ( function () .... end ) Another implementation: onsoundstop( function(sound) if sound:getfilename() == "sound1.ogg" then ..... end if sound:getfilename() == "sound2.ogg" then ..... end end ) offcourse adding also the method getfilename() > > 2. > Problem: Restoring engine settings from variables in the state table > (specific > to a particular Pipmak project file). > > I think that the simple way should be add the possibility to read/write text file....I asked to add this to Pipmak some time ago, but Christian have an hard position about that..... Off course, if you really want, you can use lua loadlib function and write a DLL or SO lib file to add file read/write API. I have already writen a DLL to do this (sorry just for Windows....), if you need it I can send you. Bye, Andrea |