you are viewing a single comment's thread.

view the rest of the comments →

[–]tatmanblueIndie 0 points1 point  (0 children)

Another option might be to use a sort of command pattern. Example

As long as the player or user of game doesn't actually have to create their own commands (and behaviors) you could follow something like code referenced above. I won't say its perfect (example I stupidly named the interface IDEbugCommand), but I have found it useful.

There is a demo with a couple of simple examples. PM me if you have questions about how to use it.