So, to make it slower, just enter 1 fastloop count. If you want to move the object faster or slower, just increase or decrease the amount of fastloops respectively. Remember we told Fusion, everytime the left arrow key was held in, execute the left fastloop 5 times? This will move it 5 pixels to the left every execution (before it draws the next frame). Now, let's just look at this a little closer before we move on. Press the left arrow key and you will see the object move to the left. Hit F8 on your keyboard to run the application. It should appear in the expression editor. So, in the expression editor, hover over the active object, right-click on it, select Position > X Coordinate. To move it one pixel to the left, we need to first get it's current X position, then minus 1 from that. So, on this event line, hover over to the object, right-click and select We want to move our object on the screen, 1 pixel to the left each loop. So we now have our event in that will execute when the “left” fastloop is running, so let's give it an action when this loop is executed. Once you have done this, Fusion will ask you for the name of the loop. Insert a new condition, in the dialog, right-click on the first icon “Special Conditions” and select On loop. But we haven't told Fusion what to do on each loop. Now, this means that all the while we have the left arrow key held down, it will keep running that fastloop (“left”) 5 times at a constant rate. If you hover over what you just did, it should look like the above image. Then in the second expression dialog (it will ask for number of loops) type in 5 and click Okay. In the expression dialog that follows, type in “left” click Okay. Right-click and select Fastloops > Start loop. Now, on that event line, hover over the first field “Special Conditions”. This condition will be met all the time the left arrow key is pressed. When the prompt dialog appears, hit the LEFT ARROW KEY on your keyboard. Let's start with a new event, create a new condition go to the Mouse and Keyboard object, right-click and select Keyboard > Repeat while a key is pressed. Once you are inside the event editor we need to start making some events. So, go ahead and click on the Event Editor icon to jump into the Event Editor. Now, we don't need to do anything else with the properties or the frame itself as we're going to code a custom movement in the event editor (using fastloops). Select the Active object from the list and click OK.ĭrop it into the centre of the playarea. Ok, so let's open up Clickteam Fusion 2.5 and insert an active object. If you're not sure why, it's probably best to dive in and follow this guide with the hope that you will come out understanding why and more importantly, how. Normally to move an object to the right 10 pixels would take longer than doing it via a fastloop. This means, it will move the object literally pixel by pixel. In the next section, we will develop a pixel perfect custom movement. Basically, fastloops were devised, so that the actions could take place before the next frame was drawn. Actually, so fast and so precise the naked eye couldn't really see what happened in the fastloop unless it was repeating. A fastloop basically does an action but repeats it fast, we're talking, very fast. In other words, you don't want to use one of the built-in Fusion movements as you want complete control over the movement of this object. Now, you wanted to create a custom movement inside the event editor. I'm hoping to write this guide with a sense that, you do not know what a fastloop is, or how you can use them, so hopefully I can shed some light on how you can use fastloops to your advantage in Clickteam Fusion 2.5. They have now become a vital part of Fusion 2.5 and will continue to be one of the most powerful routines you can take advantage of internally. Fastloops were introduced early in Multimedia Fusion 2.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |