kiigame / adventure_engine

KiiGame Adventure Engine
BSD 3-Clause "New" or "Revised" License
1 stars 6 forks source link

Automatic delay/timeout handling in interactions #92

Open evktalo opened 9 years ago

evktalo commented 9 years ago

If you e.g. play a sequence in an interaction, and want to delay subsequent commands (do_transition, monologue etc), you need to calculate the correct timeout parameter by hand for interactions.json.

The play_sequence function in kiigame.js generously returns the sequence delay; perhaps it could be used in handle_commands.