Aidan Gauland
2008-08-03 02:32:45 UTC
Hello,
I have reached a point with my game where I can't think of a way to do what
I want with Pipmak's current capabilities.
1.
Problem: Running Lua code immediately after a certain sound stops playing.
Specific instance: In node 122, I want to make the a button pulse to a
heartbeat sound, which is started by moving the mouse over a hotspot, and then
started again when the sound stops playing. I could use Pipmak schedule, but
I'd have to hard-code the duration of the sound file, and, besides, that would
leave a little more room for accumulated time-sync errors.
Possible Solution: Giving sounds something like the onenternode handler for nodes.
2.
Problem: Restoring engine settings from variables in the state table (specific
to a particular Pipmak project file).
Specific instance: I have a settings node (121), but the settings don't
persist between sessions (i.e. they're lost when you save and resume a game).
Possible Solution: Adding a handler equivelant to onopenproject that is run
when opening a saved game.
Would anyone else find features like these useful? Could these be easily
implemented in Pipmak? Do we just have too much spare time on our hands? :)
-Aidan
I have reached a point with my game where I can't think of a way to do what
I want with Pipmak's current capabilities.
1.
Problem: Running Lua code immediately after a certain sound stops playing.
Specific instance: In node 122, I want to make the a button pulse to a
heartbeat sound, which is started by moving the mouse over a hotspot, and then
started again when the sound stops playing. I could use Pipmak schedule, but
I'd have to hard-code the duration of the sound file, and, besides, that would
leave a little more room for accumulated time-sync errors.
Possible Solution: Giving sounds something like the onenternode handler for nodes.
2.
Problem: Restoring engine settings from variables in the state table (specific
to a particular Pipmak project file).
Specific instance: I have a settings node (121), but the settings don't
persist between sessions (i.e. they're lost when you save and resume a game).
Possible Solution: Adding a handler equivelant to onopenproject that is run
when opening a saved game.
Would anyone else find features like these useful? Could these be easily
implemented in Pipmak? Do we just have too much spare time on our hands? :)
-Aidan