Tag Archives: stop

How to create a stop-motion video in Premiere Pro

This tutorial explains how to create a stop-motion video using imported photos in Adobe Premiere Pro CC.

Here is a summary of the steps involved:

  1. Create new project.
  2. Drag your images into Premiere Pro project import area. You can also drag an entire folder in or move the images to a bin to organise them (right-click to create a new bin/folder) if necessary.
  3. Select all images (shift-click) and then right-click and select Speed/Duration from the menu.
    Pasted Graphic
  4. Change the duration of each photo to the desired speed. Eg. 00;00;00;02 (2 hundredths of a second). Click OK.
  5. Right-click just the first image and click New Sequence From Clip.
    Pasted Graphic 1
  6. Now select all other images (excluding the first one) by shift-clicking and drag them onto the timeline after the first image.
    Pasted Graphic 2
  7. Click Play and watch your stop-motion animation!

Stopping the player from sticking to the edge of platforms and walls in a 2D Unity game

This tutorial will show you a quick fix for stopping the player from sticking to the edge of platforms and walls in your 2D Unity game.

Next tutorial: Setting up a fall detector

Break and continue in PHP

In this tutorial you will learn how to break a loop (stop a loop from running when a certain condition is met) and continue (skip an iteration of a loop). A for loop will be used for the example shown in this tutorial.

There may be situations where you may wish to use the break statement if you want a loop to stop running if a condition from an if statement inside the loop evaluates to true. Similarly, you may also want to skip an iteration of a loop using the continue statement.

Watch the video below and then scroll down to see the examples of break and continue being used in PHP code.

Sample PHP code for breaking a loop:

1
2
3
4
5
6
7
8
<?php
 for($i=0; $i<10; $i++){
 if($i==8){
 break;
 }
 echo $i , '</br>';
 }
?>

Sample code for using continue to skip an iteration of a loop:

1
2
3
4
5
6
7
8
<?php
 for($i=0;$i<10;$i++){
 if($i==5){
 continue;
 }
 echo $i , '</br>';
 }
?>

Sample code for using continue to skip any even numbers in a for loop:

1
2
3
4
5
6
7
8
<?php
 for($i=0;$i<10;$i++){
 if($i%2==0){
 continue;
 }
 echo $i , '</br>';
 }
?>

Sample code for using continue to skip any odd numbers in a for loop:

1
2
3
4
5
6
7
8
<?php
 for($i=0;$i<10;$i++){
 if($i%2!=0){
 continue;
 }
 echo $i , '</br>';
 }
?>

PHP Manual references: