Friday, August 31, 2012

Bugz: My spawn or your spawn?

Jeez, spent the longest time trying to figure a bug in Unity where 'spawnpoint' wasn't defined. Didn't quite figure out it was a transform value I'd set up in the thing I was trying to instantiate - I kept thinking I hadn't set up the instantiate properly and was going through all sorts of hoops and variations trying to figure what I did wrong!

Eventually clicked and had to figure a way to plug the player value into the instantiated object.

Now I can have the ghosts spawn after a certain position is passed, for a bit of a 'Argh!' effect - which the characters dialog is set up to give as well!

No comments:

Post a Comment