Hello World! I'm going to make a dog wag its tail. I've set up a scene with a Dalmatian, and I've created in myFirstMethod, the dog wags his tail. Now, the dog's tail starts hanging down straight in the back. I need to move it half a turn, 0 .5 would get it sticking straight up behind him. but I want it to be a little bit past that. so .5+ the amount of half a turn is .6, I'm going to turn the tail .6, that's to get it into position for the first wag, you usually will find, for instance if you're going to walk the first step is from a standing position to the first step. subsequent steps are from already being in the walking position. So this statement is to put the tail into position. and that's .5+.1 to go from one side to the other is going to be an amount of .2, so let's watch that. Now the problem is, I want the dog to wag his tail forever, which he does with this set up, but he can't do anything else. if I go back to procedures and have the dog wag his tail and say hello, you're never going to see him say hello because this while loop is going on and on. We could put that there, and then he'll say hello. but he'll never say goodbye with this statement. So nothing else is going on while we have that statement, he is not going to say goodbye. My solution is to first of all, take all of this code, not the hello and goodbye, leave that out. I want this block of statements right here to be a procedure called wag. There's a little trick for doing this: I'm going to put this statement in the while loop for right now, and then copy this to the clipboard and then I can delete it. We are going to go to our Dalmatian, or the quadruped. I don't know if all quadrupeds have a tail, Let's add a quadruped procedure and call it wagTail and then from our clipboard, I'm going to put this in and of course the Dalmatian no longer applies this is "this". is going to be whatever quadruped with pick. So we need to change that warning to this and this and this statement and this one that I snuck inside to make it so I can copy it is going to be there. If I go back to myFirstMethod, I can now go back here and I have a procedure for the Dalmatian to wag his tail. and I can put that there and run it and he says hello and he wags his tail, but he isn't going to say goodbye. The solution is to go to initialize Evente listeners and add a scene activation listener and inside there, I'm going to have the dog wag his tail. Let's go back to my first method and delete that there and run it, and the dog says hello and he says goodbye and he wags his tail the whole time. So you can use those scene activate to make something happen continuously. Basically this gets started at the same time myFirstMethod gets started and in myFirstMethod now we can do whatever else we want to do and the dog will just keep wagging his tail. That's it!