Wednesday, May 22, 2019

Animate CC - Pong Game -Part 1 & Part 2 -setup - ball

Animate CC - Pong Game
Part 1 and Part 2

Pong Part 1 -setup the stage
https://as3gametuts.com/2011/03/19/pong-1/

Actionscript 3.0 – stage: black – FPS: 60 – W 550xH 400
Ball (white is optional)
- edit the symbol and make the ball spin in 20 frame
Draw a (white) circle – hold shift key – in properties –set size to 10x10
– convert to symbol – ‘Ball’ – movie clip
Paddle

Draw a vertical (white) rectangle – in properties – set size to W:10 x H: 50
– convert to symbol –‘paddle’ – movie clip
-duplicate symbol

-edit each paddle symbol and make the colours blink(#1) and change(#2)
Add an extra paddle to the stage – drag from library
Position these items on the stage
In properties of the:
Paddle left (X: 20 Y: 200)
Ball (X: 275 Y: 200)

Paddle right (X: 530 Y: 200)

  


Pong Part 2 - the ball moves



Name your games pieces:
Paddle left : -in properties- <instance name>: playerPaddle – note the capital P for Player
Paddle Right : -in properties- <instance name>: cpuPaddle – note the capital P for Player
Ball : -in properties- <instance name>: ball – note the lower case b for ball
ADD the CODE
CLICK ON THE BALL – press F9
Paste the following
var ballSpeedX:int = -3;
var ballSpeedY:int = -2;

init();

function init():void
{
    stage.addEventListener(Event.ENTER_FRAME, loop);
}

function loop(e:Event):void
{
    ball.x += ballSpeedX;
    ball.y += ballSpeedY;

    //because the ball's position is measured by where its CENTER is...
    //...we need add or subtract half of its width or height to see if that SIDE is hitting a wall

    //first check the left and right boundaries
    if(ball.x <= ball.width/2){ //check if the x position of the left side of the ball is less than or equal to the left side of the screen, which would be 0
        ball.x = ball.width/2; //then set the ball's x position to that point, in case it already moved off the screen
        ballSpeedX *= -1; //and multiply the ball's x speed by -1, which will make it move right instead of left

    } else if(ball.x >= stage.stageWidth-ball.width/2){ //check to see the right side of the ball is touching the right boundary, which would be 550
        ball.x = stage.stageWidth-ball.width/2; //reposition it, just in case
        ballSpeedX *= -1; //multiply the x speed by -1 (now moving left, not right)

    }

    //now we do the same with the top and bottom of the screen
    if(ball.y <= ball.height/2){ //if the y position of the top of the ball is less than or equal to the top of the screen
        ball.y = ball.height/2; //like we did before, set it to that y position...
        ballSpeedY *= -1; //...and reverse its y speed so that it is now going down instead of up

    } else if(ball.y >= stage.stageHeight-ball.height/2){ //if the bottom of the ball is lower than the bottom of the screen
        ball.y = stage.stageHeight-ball.height/2; //reposition it
        ballSpeedY *= -1; //and reverse its y speed so that it is moving up now

    }
}

-add your name and a title on a different layer
Now: Type CTRL-ENTER to test
Use WINDOW KEY + G – record your part 2 stage in action

Upload to https://ezgif.com/ convert to a GIF and Post it.





https://as3gametuts.com/2011/08/31/pong-3/

https://as3gametuts.com/2011/09/13/pong-4/

https://as3gametuts.com/2011/09/24/pong-5/

https://as3gametuts.com/2011/09/28/pong-6/




Tuesday, May 14, 2019

Animate CC - Under the SEA

Title: Under the SEA


- a live fish tank-
Starfish start button (symbol)
Green to white background gradient (symbol)
Seaweed looking tree (symbol)
the scene:- a rock -sandy bottom -a castle (draw)
bubbles (symbol) (move upwards)
A 'SeaBreacher' minisub (symbol) (get image from internet)
two fish - swim in front and behind sea weed (draw 1 - get the other off internet)
a collision in the tank!
...something on a motion guide
...something shape tweened
sound effects - found in hand-out/#students/#sounds

 Crash Hit Pop Shot

In FLASH choose FILE- EXPORT -EXPORT MOVIE - ANIMATED GIF

The following is an Animated GIF


The Following is a SWF file

Monday, May 6, 2019

Animate CC -Tools -Tween -Guide -The City

Learn to animate

Animate CC Beginner Tutorials Ep 1: Tools


! -create something interesting from the tools you learnt about. 

  • Use the text tool to write in your name
  • Export the image as a JPG or a PNG file. 
  • Explain in your blog post what tools you used to draw your image.
  • show your layers






Create animations

Animate CC Beginner Tutorials Ep 2: First Animation


! -create a classic tween then several shape tweens

  • Put a shape in each corner
  • Add your name and a background colour
  • Export as an Animated Gif
  • Explain in your blog how you made this "perfect loop"







Animate CC Beginner Tutorials Ep 3: Motion Guide and Graphics






-added VIEW - snap to GUIDE and snap to OBJECTS in Animate CC
-hide the GUIDE layer before exporting as an animated GIF


 Animate CC -The City

follow the tutorial EXACTLY 
including naming the layers.
Then add your own effects
  • add a motion guide for the airplane
  • add the extra tree layer so the car can drive behind it.
  • make sure your name is in the scene


 




Thursday, May 2, 2019

HEALTH WEEK Cyber Criminal 06

HEALTH WEEK Cyber Criminal

FIND -SNIP -CREATE the following slideshow



FIND -RECORD -EDIT -CROP
the following 2 ANIMATIONS



HEALTH WEEK Spam Scam Slam 05 -slideshow PLUS animated gif

HEALTH WEEK Spam Scam Slam

Create the following SLIDESHOW


CREATE the following ANIMATED GIF

record - edit - crop


remove parts that do not belong
https://ezgif.com/crop



Wednesday, May 1, 2019

HEALTH WEEK Phishing Scams 04

HEALTH WEEK Phishing Scams

Collect the following Screenshots and create the following Slide Show



Create the following animated GIF!  
Use G  to record the following movie
Using Premiere Pro - Remove the extras -Save as an Animated Gif
Use an Animated Gif Crop tool to lose the erroneous parts





Tuesday, April 30, 2019

HEALTH WEEK Skin Deep 03

HEALTH WEEK Skin Deep

find similar screenshots create a comprehensive slide show 
your scenario might be different
add 20 screenshots!



First slide should be your name