Awesome!! Thanks a ton for that example usage of macro. I have a feeling i am going to love typing in boo. So each macro is a seperate boo script stored in the Assets folder? Can they be anywhere in my assets folder, such as Assets/BooMacros/AdjustedCompiling
Yes, you should be able to put them in a sub folder.
I would assume so.
Yes, they can be virtually anywhere. There are a few directories in which files can be placed, but they won’t be compiled, i.e the webplayer templates folder. The location you spoke of is fine.
Yep, it worked perfectly.
One last noob question before i start writing boo on my “own”. Can i have multiple macros(like the print macro, some other macro) in one script, or does each macro need its own script named the same as the macro itself for locating and compiling?
Oh, never mind. I just added the same macro structure with a different name in the same script and it worked. I didnt think of that til just now.
Im having a tough time with the ‘yield’ keyword or it might be the while loop itself, maybe you guys can help me out. I have this code, which is simple enough
def Splash(point as Vector3)as IEnumerator:
splash=Instantiate(splashSystem,point,Quaternion.identity)as ParticleSystem
while splash.isPlaying:
yield
Destroy(splash.gameObject)
if i remove the while loop completely the code works fine, but with the while loop and yield the particle system never instantiates(i cant even print before that call). Any ideas?