Monday, March 28, 2016

Day 79: Taking Action

Phew! Today's been plenty of a long day, with plenty thanks to finishing off the Action assignment.

The main thing that troubled me today was the existence and use of ActionCreateAction and ActionDestroyAction. By way of their functions (clarified in class today), the actions would add and remove actions from an entity. However, if that entity contained the action which added and destroyed actions during the update loop, that would lead to an invalidation of the iterator. Yikes! I'm going to have to build special cases around it.

However, it is finished! I almost fumbled with calling Orphan incorrectly (orphan the child, not the parent), but pedaled through and made a fully functional set of Actions.

As for GameLab, it's quite peculiar to realize that Unity does not allow a particle system to restart after it has stopped. I had to go so far as to update the emission rate, but it works! Picture time!


I also set the rotation rate on the obstacle trail so it wouldn't fling all over the screen. I'm thankful I get to work with such nifty particle art.

And with that, my work is done for today! (But not tomorrow...)

No comments:

Post a Comment