- Joined
- Jul 23, 2005
- Messages
- 329
I would like to know whether the following system is efficient, and, if it isn't, how it could be improved:
We've got this triggered ball moving about, and need it to have certain actions that can be defined at the start of the level. When it hits something, it needs to execute a certain predetermined action. However, instead of hard-coding what actions happen when, we've decided to have it execute a trigger, and have that trigger be added and removed actions dynamically. This way, we can easily add and remove actions, and have the conditions coded as an if-else statement within the action.
Would this be efficient, or just a waste of time? If you need clarifications, let me know.
We've got this triggered ball moving about, and need it to have certain actions that can be defined at the start of the level. When it hits something, it needs to execute a certain predetermined action. However, instead of hard-coding what actions happen when, we've decided to have it execute a trigger, and have that trigger be added and removed actions dynamically. This way, we can easily add and remove actions, and have the conditions coded as an if-else statement within the action.
Would this be efficient, or just a waste of time? If you need clarifications, let me know.