Sketchify Tutorial Defining Interaction and Logic in Sketchify sketchify.sf.net Željko Obrenović

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

CIMCO Integration Software Products
User interface Adobe video and audio applications provide a consistent, customizable workspace. Although each application has its own set of panels (such.
Microsoft® Small Basic
Power Point Introduction Table of Contents Step One: Create a Slide Step Two: Enter in Text Step Three: Background Step Four: Insert Picture Step Five:
Windows Basics: The Mouse. The Mouse Before you can explore the Desktop and Taskbar, you must know how to use your mouse. Your mouse is a pointing device.
Events Chapter 7. Interactivity The real world is interactive User determines order of actions instead of programmer.
Events Chapter 7. Interactive Real world is interactive User determines order of actions instead of programmer.
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Microsoft® Small Basic
Online Calculator Basic Word Processing Skills Computer Keyboard Skills Computer Mouse Skills Basic Computer Terminology Computer Mouse Skills “I really.
Sketchify Tutorial Timers sketchify.sf.net Željko Obrenović
Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović
Sketchify Tutorial Macros sketchify.sf.net Željko Obrenović
Introduction to Scratch UC Santa Cruz CMPS 10 – Introduction to Computer Science 13 May 2011.
Exploring Events. Try this Start Alice and create a blank world using the grass template. Add an instance of a BlueBallerina. Add an instance of a PinkBallerina.
Sketchify Tutorial Exercises sketchify.sf.net Željko Obrenović
Sketchify Tutorial Graphics and Animation in Sketchify sketchify.sf.net Željko Obrenović
Sketchify Tutorial Getting Started – Creating a New Project sketchify.sf.net Željko Obrenović
Sketchify Tutorial External Spreadsheets sketchify.sf.net Željko Obrenović
Sketchify Tutorial Scripting sketchify.sf.net Željko Obrenović
XP Tutorial 8 New Perspectives on JavaScript, Comprehensive1 Working with the Event Model Creating a Drag-and-Drop Shopping Cart.
Sketchlet Tutorial Defining Interaction and Logic in Sketchlet sketchlet.sf.net Željko Obrenović obren.info/
Sketchlet Tutorial Screen Poking sketchlet.sf.net Željko Obrenović obren.info/
Sketchlet Tutorial Actions sketchlet.sf.net Željko Obrenović obren.info/
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
Introduction to Scratch!
A computer is an electronic device used to process data, converting data into information that is useful to people.
Sketchify Tutorial Defining Interaction and Logic in Sketchify sketchify.sf.net Željko Obrenović
Review For Test Chapter 4 & 5 Test is Wednesday, January 27th.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
Developing the Game User Interface (UI) Lesson 5.
The Very Basics of Alice: A Simple Overview 6 th & 7 th Grade Tech Apps.
QML Qt Quick with QML and you can use JavaScript for engine along C++ Started to be released since late 2009 (Qt 4.7) Nokia focused on that for the Symbian/Meego.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Timer, Animation Responding to Mouse & Keyboard Lab 7 7 McGraw-Hill© 2006 The McGraw-Hill Companies, Inc. All rights reserved.
Microsoft PowerPoint Tutorial Created by L. George 2006.
Inserting an AutoShape. This is the “Drawing” toolbar, located at the bottom of the screen.
Learning How to Make a PowerPoint Presentation A tutorial for novice users.
Controls. Adding Controls to Form -You can pick controls from the toolbox. -To add the controls from Toolbox to the Form You have be in design view. -To.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Events (Alice In Action, Ch 6) Slides Credit: Joel Adams, Alice in Action CS 120 Lecture September 2012.
CIS 3.5 Lecture 2.2 More programming with "Processing"
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
Power Point Tutorial Team Purple Michelle Morgan Christina Mullikin Mike Newell Rebecca L. Nickoli Keoni Pau Grand Canyon University TEC539 July6, 2010.
Sketchlet Tutorial Scripting sketchlet.sf.net Željko Obrenović obren.info/
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
Presenter: Judith Glazer Lead Math Teacher Thomas J. McCann Woodside I.S th Avenue Woodside, NY 11377
Lecture 10 Using Interface Builder to create Mac Applications.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Basics of Windows 95/98/NT. Versions of Windows Windows 95 and 98 used mainly on standalone computers Windows NT used on networked computers (as in our.
5 Event Handling Interactive Programming Suggested Reading Interaction: Events and Event Handling, Supplemental Text for CPSC 203 Distributed this term.
 objects in Client  What is Event?  Event Handlers  programming.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
How to add Word-Art to a Word Document Purpose: To learn how to add WordArt to a Word Document.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Presenter: Carol Liss Timberlane Regional Middle School 6 th and 7 th grade Tech. Educator Co presenters:
Introduction to PowerPoint 2003 Professional Development Training for Classroom Teachers.
Introducing Scratch Learning resources for the implementation of the scenario
Chapter 5: Enhancing Classes Presentation slides for Java Software Solutions Foundations of Program Design Second Edition by John Lewis and William Loftus.
Scratch Programming Cards
THE DOM.
Software Operating System Applications BIOS.
Starting Out with Alice: A Visual Introduction to Programming
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
PowerPoint Part 2 Slide Animation and Transitions
SV-10c Template Systems Event/Trace Description – step-by-step instructions and template Click the mouse button to see the next slide. Use the browser.
Getting to powerpoint. Go to your start menu. Go to all programs.
Skills Sheet: ‘Using the 3D viewer’
Presentation transcript:

Sketchify Tutorial Defining Interaction and Logic in Sketchify sketchify.sf.net Željko Obrenović

Events and Actions Event – what happens Action – what to do when something happens Logic – connecting actions with events

Defining Interaction in Sketchify Events – Mouse Events, Keyboard Events, Regions Overlap and Interaction, Variable Events Actions – Sketch Transition, Variable Actions, Timer Actions, Macro Actions Connecting Actions and Events – Drag-and-drop – Templates and Formulas

Defining Interaction in Sketchify Events – Mouse Events, Keyboard Events, Regions Overlap and Interaction, Variable Events Actions – Sketch Transition, Variable Actions, Timer Actions, Macro Actions Connecting Actions and Events – Drag-and-drop – Direct Specifying

Events Region Events: – Mouse Events – Region Overlap Events Page-level Events – Keyboard Events – Sketch Entry/Exit Events – Variable Update Events

Mouse Events Mouse Events are captured by Active Regions Two Types of Mouse Events – Continuous motions – Discrete Mouse Events

Discrete Mouse Events 14 types of mouse events – Left Button Click/Press/Release, Right Button Click/Press/Release, Middle Button Click/Press/Release, Double Click, Mouse Entry/Exit, Mouse Wheel Up/Down Discrete Mouse Events are defined in the properties of active regions:

Region Overlap Events Detected in active regions Define what will happen when two regions overlap Four types of events: – touches, inside, outside, completely outside touches inside outside completely outside

Continuous Mouse Events When user drags the region, you can connect the variables with several elements: – position x, position y, – rotation (when dragged with right mouse button), – speed of dragging, and – trajectory position (if trajectory is defined)

Keyboard Events Keyboard events are defined within the sketch settings You can capture “pressed” or “released” events for any keyboard key Double-click on this icons will also open the keyboard event settings

Page Events Two types of sketch events – On sketch entry Defines what will happed when you open the sketch – On sketch exit Defines what will happen when you close the sketch (or go move to another sketch) Double-click on these icons will also open the sketch event settings

Variable Events Variable events are defined in sketch settings Define what will happen when variable is updated or has particular value Double-click on this icons will also open the variable event settings

Defining Interaction in Sketchify Events – Mouse Events, Keyboard Events, Regions Overlap and Interaction, Variable Events Actions – Sketch Transition, Variable Actions, Timer Actions, Macro Actions Connecting Actions and Events – Drag-and-drop – Direct Specifying

Actions Sketch Transitions Variable Actions Timer Actions Macro Actions

Sketchify Actions ActionParam1Param2 Go To Sketchpage-namenot used Variable updatevariable-namenew value Variable incrementvariable-namenumber to add Variable appendvariable-namestring to append Variable glidevariable-name[start] end duration-in-sec Start timertimer-namenot used Pause timertimer-namenot used Stop timertimer-namenot used Start macromacro-namenot used Stop macromacro-namenot used Start sequencecommand sequence

Sketch Transitions Actions that causes that current sketch is closed and new one open In interface defined as “Go To Sketch” When this actions occurs: – On exit event occurs on the old sketch – On entry event occurs on the new page

Variable Actions Three types of variables actions – Variable update – sets the variable to a new value – Variable increment – increments current value “122” increment with “12” results in change of variable value to “134” If a variable does not contain numeric value nothing happens If variable is empty (or does not exists), 0 value is assumed – Variable append – appends string to existing variable content For example, if variable has the value “abc”, append of “de” will result in change of variable value to “abcde” – Variable glide – animates variable updates from start to end, with given duration If start is not given, current variable value is used

Timer Action Two types of timer actions – Start timer – Pause timer – Stop timer

Macro Actions Two types of macro actions – Start macro – Stop macro

Defining Interaction in Sketchify Events – Mouse Events, Keyboard Events, Regions Overlap and Interaction, Variable Events Actions – Sketch Transition, Variable Actions, Timer Actions, Macro Actions Connecting Actions and Events – Drag-and-drop – Direct Specifying

Events and Actions Event – what happens Action – what to do when something happens Logic – connecting actions with events

Connecting Actions and Events Drag-and-drop support – Drag variable, sketch, timer or macro to connect it with various events Specify directly

Drop Event Anchors Anchors for connecting sketch events (on entry, on exit, on variable update, on keyboard event) by drag-and-drop of variables, timers and macros. You can also double-click on these icons to open current settings for these events and properties. Anchors for connecting region events (region overlap, discrete mouse events, continues mouse events) by drag-and-drop of variables, timers and macros. You can also double-click on these icons to open current settings for these events and properties.

Example: Connecting Region Continuous Mouse Event to Variable Step 1: Creating variable “rot”

Example: Connecting Region Continuous Mouse Event to Variable Step 2: drag-and-drop the variable on the active region motion mapping icon

Example: Connecting Region Continuous Mouse Event to Variable Step 3: select properties of motion that you want to capture in the variable In this example it is “rotation”

Example: Connecting Region Continuous Mouse Event to Variable Step 4: interact with the region and observe variables changes In this example, dragging the region with right mouse button will rotate it and update the variable “rot”

Example: Connecting Region Continuous Mouse Event to Variable You can drag-and-drop the variable on the region properties icon, and select property

Example: Connecting Region Continuous Mouse Event to Variable In this example we are using variable “rot” to control rotation property of another region

YouTube Video

More Examples Sketch Transitions Based on Mouse Events – YouTube Video YouTube Video

Directly Connecting Events and Actions For each event, you can directly open its settings, and there select actions

Directly Connecting Events and Actions – Mouse Events double-click

Directly Connecting Events and Actions – Mouse Continuous Events double-click

Directly Connecting Events and Actions – Regions Overlap double-click

Directly Connecting Events and Actions – Sketch Events Double-click on these icons will also open the sketch event settings

Directly Connecting Events and Actions – Variable Events Double-click on this icons will also open the variable event settings

Directly Connecting Events and Actions – Keyboard Events Double-click on this icons will also open the keyboard event settings