This document provides an overview of using objects and scripting motion in Adobe Flash. It discusses creating ActionScript classes, placing objects on the stage programmatically and from the library, and drawing objects like circles with code. It then covers moving objects by updating x and y coordinates, using event listeners like ENTER_FRAME to trigger movement, bouncing objects off edges by changing movement direction, and detecting edge collisions more precisely using an object's width and height. The homework assignment is to read a chapter on game elements and create a Flash file with an object moving across the stage via ActionScript.
Introduction to Game Programming TutorialRichard Jones
The slides to accompany the Introduction to Game Programming tutorial I ran at LCA 2010. The tutorial ran over 90 minutes with the participants following along.
Sceneform SDK на практиці - UA Mobile 2019Eugene Kurko
Тема нативних движків, що спрощують роботу з 3D графікою для Android, є головним болем багатьох розробників. У той час як для iOS існує SceneKit, розробники під Android були змушені або йти в крос-платформені рішення (Unity3d, LibGDX і т.п.) або використовувати самописні/опенсорсні рішення з обмеженим функціоналом. Поява Sceneform SDK вирішує не тільки цю проблему але й інкапсулює в собі роботу з ArCore SDK, відкриваючи для розробників можливість нативної реалізації AR рішень, не вдаючись до стороннього SDK.
В рамках доповіді будуть розглянуті практичні можливості та обмеження Sceneform SDK стосовно проектів з доповненою реальністю (AR). Так само будуть розглянуті такі теми як SLAM, ArCore SDK, розпізнавання та трекінг маркерів на основі зображень, Cloud Anchors та існуючі альтернативи на ринку.
Introduction to Game Programming TutorialRichard Jones
The slides to accompany the Introduction to Game Programming tutorial I ran at LCA 2010. The tutorial ran over 90 minutes with the participants following along.
Sceneform SDK на практиці - UA Mobile 2019Eugene Kurko
Тема нативних движків, що спрощують роботу з 3D графікою для Android, є головним болем багатьох розробників. У той час як для iOS існує SceneKit, розробники під Android були змушені або йти в крос-платформені рішення (Unity3d, LibGDX і т.п.) або використовувати самописні/опенсорсні рішення з обмеженим функціоналом. Поява Sceneform SDK вирішує не тільки цю проблему але й інкапсулює в собі роботу з ArCore SDK, відкриваючи для розробників можливість нативної реалізації AR рішень, не вдаючись до стороннього SDK.
В рамках доповіді будуть розглянуті практичні можливості та обмеження Sceneform SDK стосовно проектів з доповненою реальністю (AR). Так само будуть розглянуті такі теми як SLAM, ArCore SDK, розпізнавання та трекінг маркерів на основі зображень, Cloud Anchors та існуючі альтернативи на ринку.
The translation industry has undergone a paradigm shift every decade since 1980, but none was as big as the one we are facing now. We are entering the Convergence era: automatic translation will be a utility embedded in every app, device, sign board and screen. Businesses will prosper by finding new customers in new markets. Governments and citizens will connect and communicate easily. Consumers will become world-wise, talking to everyone everywhere as if language barriers never existed. It will not be perfect, but it will open doors and break down barriers. And it will give a boost to the translation industry, which will be chartered to constantly improve the technology and fill the gaps in global communications. In this interactive opening session Jaap van der Meer will zoom in on the choices we are facing and the decision factors that help us make planning for an uncertain future opportunistic and profitable.
Useful Tools for Making Video Games - XNA (2008)Korhan Bircan
A presentations I gave back in 2008 when I was the teaching assistant for Innovating Game Development course in Brown University.
This is an introductory tutorial of Microsoft XNA Game Studio. I talk about displaying 3D models, handling keyboard and mouse input, 3rd person shooter camera, and creating spline animations.
The translation industry has undergone a paradigm shift every decade since 1980, but none was as big as the one we are facing now. We are entering the Convergence era: automatic translation will be a utility embedded in every app, device, sign board and screen. Businesses will prosper by finding new customers in new markets. Governments and citizens will connect and communicate easily. Consumers will become world-wise, talking to everyone everywhere as if language barriers never existed. It will not be perfect, but it will open doors and break down barriers. And it will give a boost to the translation industry, which will be chartered to constantly improve the technology and fill the gaps in global communications. In this interactive opening session Jaap van der Meer will zoom in on the choices we are facing and the decision factors that help us make planning for an uncertain future opportunistic and profitable.
Useful Tools for Making Video Games - XNA (2008)Korhan Bircan
A presentations I gave back in 2008 when I was the teaching assistant for Innovating Game Development course in Brown University.
This is an introductory tutorial of Microsoft XNA Game Studio. I talk about displaying 3D models, handling keyboard and mouse input, 3rd person shooter camera, and creating spline animations.
Let's take a look at the HTML5 element canvas. See how you can draw shapes and images, manipulate single pixels and even animate it. Given as a lecture in the fh ooe in Hagenberg, Austria in December 2011.
How to integrate the Leap Motion SDK V2 with the Oculus Rift DK2 in Unity for hand skeleton tracking, object hand interaction and player movement using the Rift's positional tracker.
I use the slide to give a tutorial of ActionScript in the freshman training course of Intelligent Agent Laboratory in Computer Science Department of National Taiwan University. It is the second session of the Flash-ActionScript-Flex class.
Stop running from animations droidcon Londonmaric_iv
Talk from droidcon London
Creating eye candy animations takes time and effort, but the end result is worth it. To make your life a bit easier, in this talk Ivan will share with you 10 tips he learned while working on all sorts of animations. Those tips will help you break your fear of animations and after this talk, you will have no more excuses.
Predictive analytics built on massive amounts of data, complex scientific modeling, and tens of thousands of simulations doesn’t add up to much to a farmer, if you haven’t gained their trust. Gaining trust is an important goal for any display of information, especially when your customer expects it to inform critical decisions with lasting effects, i.e. bet the farm. Getting to know your customer intimately and designing the appropriate user experience is essential. In this presentation I will share our experience at The Climate Corporation designing data visualizations and displays of predictive models for this unique group of customers and walk through a process your company can use to do the same.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
3. Create an ActionScript class
• Save your ActionScript file, example:
MyAnimation.fla
• Go to New... > ActionScript File to
create a new external AS file
• Save the file using the same name as
your Flash file, example:
MyAnimation.as
4. Review: ActionScript Class
Class file declaration
package { Library classes needed
import flash.display.*;
import flash.text.*; Class definition
public class HelloWorld2 extends MovieClip {
public function HelloWorld2() {
var myText: TextField = new TextField();
myText.text = "Hello World!";
addChild(myText);
}
} Constructor
}
5. Create a new AS class
package {
import flash.display.*;
public class MyAnimation extends Sprite {
public function MyAnimation() {
}
}
}
6. Placing objects on the stage
• Programmatically (using Flash
display objects)
• Library (named instances)
• Library + Programmatically (export
for ActionScript)
7. Drawing a circle with code
• Add this code to your class to draw a
circle on the screen
public var myCircle:Sprite = new Sprite();
myCircle.graphics.lineStyle(5,0x000000);
myCircle.graphics.beginFill(0xCCCCCC);
myCircle.graphics.drawCircle(0,0,25);
addChild(myCircle);
8. Draw a circle
• Create a new movie clip
• Draw a circle
• Drag it onto the stage
• Name the instance of the object
• The instance name becomes the way to use
the object in the code:
//moves circle to the upper corner
happyFunBall.x = 0;
happyFunBall.y = 0;
9. Export for ActionScript
• Open the Properties for an object in
the library
• Check export for ActionScript and
click OK
• Flash will create a class for you
10. Export for ActionScript
• Now you can created an unlimited
number of named instances in the
code to add the object to the stage
var superFunBall:Ball = new Ball();
superFunBall.x = 0;
superFunBall.y = 0;
addChild(superFunBall);
12. Moving objects
• An instance of a movie clip can be
moved to any location using x and y
as coordinates:
myCircle.x = 300;
myCircle.y = 200;
13. Updating location
• By updating x and y values we can change
the location of our object
// Move the clips
myCircle.x = myCircle.x + 10;
myCircle.y = myCircle.y + 10;
16. (Dynamic) Flash Animation
There’s only one frame!
get apply
render display
initial rules to
frame frame
state state
17. Event Listeners
• By using an event listener that's triggered by
ENTER_FRAME the movie clip instance will move on
it's own
addEventListener(Event.ENTER_FRAME,
myFunction);
19. Triggering movement
package {
import flash.display.*;
import flash.events.*;
public class MyAnimation extends MovieClip {
// Setup the values
private var myCircle:Sprite;
public function MyAnimation() {
myCircle = new Sprite();
myCircle.graphics.beginFill(0xCCCCCC);
myCircle.graphics.drawCircle(0,0,25);
addChild(theBall);
addEventListener(Event.ENTER_FRAME,
onMoveCircle);
}
public function onMoveCircle(pEvent:Event):void {
myCircle.x = myCircle.x + 10;
myCircle.y = myCircle.y + 10;
}
}
}
20. Bounce the clip off the edges
• The edge of the stage can be detected by
determining if the movie clip's x or y values are
greater or less than the stage width or height:
myClip.x > stage.stageWidth
myClip.x < 0
myClip.y > stage.stageHeight
myClip.y < 0
• stage.stageWidth and stage.stageHeight are
variables stored by Flash that you can access at
any time.
21. Change direction
• The direction of the clip can be changed when an
edge is detected:
if(myClip.x > stage.stageWidth || myClip.x < 0) {
moveX = -moveX;
}
if(myClip.y > stage.stageHeight || myClip.y < 0) {
moveY = -moveY;
}
22. Bounce the clip off the edges
// Setup the values
var moveX:Number = 10;
var moveY:Number = 10;
function moveClip(pEvent:Event):void {
if(myClip.x > stage.stageWidth || myClip.x < 0){
moveX = -moveX; //change direction
}
if(myClip.y > stage.stageHeight || myClip.y < 0){
moveY = -moveY; //change direction
}
// Move the clips
myClip.x = myClip.x + moveX;
myClip.y = myClip.y + moveY;
}
// Trigger the movement automatically
addEventListener(Event.ENTER_FRAME, moveClip);
23. Use the edge of the ball
For a more realistic bounce the edge of the ball should
be detected when it comes into contact with the edge.
Do this by adding or subtracting half the width of the
ball:
myClip.width/2
myClip.height/2
The full statements:
myClip.x > stage.stageWidth - myClip.width/2 ||
myClip.x < myClip.width/2
myClip.y > stage.stageHeight - myClip.height/2 ||
myClip.y < myClip.height/2
24. Bounce using the ball edges
var moveX:Number = 10;
var moveY:Number = 10;
function moveClip(pEvent:Event):void {
if(myClip.x > stage.stageWidth - myClip.width/2
|| myClip.x < myClip.width/2){
moveX = -moveX; //change direction
}
if(myClip.y > stage.stageHeight - myClip.height/2
|| myClip.y < myClip.height/2){
moveY = -moveY; //change direction
}
myClip.x = myClip.x + moveX;
myClip.y = myClip.y + moveY;
}
25. Homework, due March 9
• Read p65-81, Chapter 2:
ActionScript Game Elements in AS
3.0 Game Programming University
• Create a Flash movie with scripted
motion
• Add an object to the stage
• Make the object move across the
screen using ActionScript