SlideShare a Scribd company logo
1 of 2
Download to read offline
แผนการเรียนรู้ที่ 2 พื้นหลังและตัวละคร
-13-
ใบความรู้ที่ 2.1
พื้นหลังและตัวละคร
การสร้างโปรเจกต์เพื่อให้มีการเปลี่ยนภาพพื้นหลังของเวทีได้หลายภาพ และการทาให้ตัวละครสามารถ
เคลื่อนที่ไปได้ในทิศทางต่างๆ สามารถเขียนสคริปต์ให้ตัวละครหรือพื้นหลังแยกส่วนกัน เพื่อสั่งงานให้เกิด
เหตุการณ์ที่ต่างกัน แต่แสดงผลการทางานไปพร้อมๆ กัน ซึ่งบล็อกที่ใช้มีดังต่อไปนี้
1. บล็อกในกลุ่มบล็อก Looks ของเวที เพื่อสลับพื้นหลัง
สลับพื้นหลัง ตัวอย่าง สลับพื้นหลังเป็นพื้นหลัง background1
สลับพื้นหลังเป็นพื้นหลังถัดไปที่มีอยู่ในรายการ
2. บล็อกในกลุ่มบล็อก Motion เพื่อให้ตัวละครเคลื่อนที่ไปในทิศทางต่างๆ
หมุนตามเข็มนาฬิกา ตัวอย่าง หมุนตามเข็มนาฬิกา 15 องศา
หมุนทวนเข็มนาฬิกา ตัวอย่าง หมุนทวนเข็มนาฬิกา 15 องศา
ระบุทิศทางที่ต้องการ ตัวอย่าง ระบุทิศทาง 90 องศา
ไปที่ตาแหน่ง (x, y) บนเวที ตัวอย่าง ไปตรงกลางเวที (x=0, y=0)
ตั้งค่าตาแหน่งตัวละครไปด้านซ้ายหรือขวา
ตัวอย่าง ตั้งค่าตัวละครไปที่ตาแหน่ง x = 0 คือ กลางเวที
x = 240 คือ ขอบขวาสุด
x = -240 คือ ขอบซ้ายสุด
ตั้งค่าตาแหน่งตัวละครไปด้านบนหรือด้านล่าง ตัวอย่าง ตั้งค่าตัวละคร
ไปที่ตาแหน่ง y = 0 คือ กลางเวที
y = 180 คือ ขอบบนสุด
y = -180 คือ ขอบล่างสุด
แผนการเรียนรู้ที่ 2 พื้นหลังและตัวละคร
-14-
การเคลื่อนที่ไปได้ในทิศทางต่างๆ ของตัวละครจะไม่เกี่ยวข้องกับลักษณะการหันหน้าของตัวละคร
ดังนั้นในการทาให้ตัวละครเคลื่อนที่ ผู้เรียนควรทาความเข้าใจกับประเด็นนี้ เพื่อให้การแสดงผลการเคลื่อนที่ของ
ตัวละครมีลักษณะเป็นธรรมชาติมากที่สุด
เส้นสีน้าเงินเป็นตัวกาหนดทิศทางการเคลื่อนที่ของตัวละคร ในภาพแมวมีทิศทางการเคลื่อนที่ 108
องศา ทิศทางการเคลื่อนที่ที่ระบุในโปรแกรม Scratch เช่น
0 องศาจะมีทิศทางการเคลื่อนที่ไปด้านบน
90 องศาจะมีทิศทางการเคลื่อนที่ไปทางขวา
-90 องศาจะมีทิศทางการเคลื่อนที่ไปทางซ้าย
180 องศาจะมีทิศทางการเคลื่อนที่ไปด้านล่าง
การหมุนของตัวละคร ถ้าค่าเป็นบวก จะเป็นการหมุนตามเข็มนาฬิกา ถ้าค่าเป็นลบจะหมุนทวน
เข็มนาฬิกา เช่น -180 มีทิศทางการเคลื่อนที่ไปด้านล่างเหมือนกับทิศ 180 องศา แต่เป็นการหมุนทวนเข็ม
นาฬิกา
ตัวอย่าง การระบุทิศทางของตัวละครในโปรแกรม Scratch
อุดร(เหนือ)
-90 องศา
0 องศา
180 องศา
90 องศา
อีสาน(ตะวันออกเฉียงเหนือ)
ตะวันออก(บูรพา)
(
ตะวันออกเฉียงใต้(อาคเนย์)
ใต้(ทักษิณ)
ตะวันตกเฉียงใต้(หรดี)
ตะวันตก(ประจิม)
ตะวันตกเฉียงเหนือ(พายัพ)
90
0
180-180
-90

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

ใบความรู้กิจกรรมพื้นหลังและตัวละคร

  • 1. แผนการเรียนรู้ที่ 2 พื้นหลังและตัวละคร -13- ใบความรู้ที่ 2.1 พื้นหลังและตัวละคร การสร้างโปรเจกต์เพื่อให้มีการเปลี่ยนภาพพื้นหลังของเวทีได้หลายภาพ และการทาให้ตัวละครสามารถ เคลื่อนที่ไปได้ในทิศทางต่างๆ สามารถเขียนสคริปต์ให้ตัวละครหรือพื้นหลังแยกส่วนกัน เพื่อสั่งงานให้เกิด เหตุการณ์ที่ต่างกัน แต่แสดงผลการทางานไปพร้อมๆ กัน ซึ่งบล็อกที่ใช้มีดังต่อไปนี้ 1. บล็อกในกลุ่มบล็อก Looks ของเวที เพื่อสลับพื้นหลัง สลับพื้นหลัง ตัวอย่าง สลับพื้นหลังเป็นพื้นหลัง background1 สลับพื้นหลังเป็นพื้นหลังถัดไปที่มีอยู่ในรายการ 2. บล็อกในกลุ่มบล็อก Motion เพื่อให้ตัวละครเคลื่อนที่ไปในทิศทางต่างๆ หมุนตามเข็มนาฬิกา ตัวอย่าง หมุนตามเข็มนาฬิกา 15 องศา หมุนทวนเข็มนาฬิกา ตัวอย่าง หมุนทวนเข็มนาฬิกา 15 องศา ระบุทิศทางที่ต้องการ ตัวอย่าง ระบุทิศทาง 90 องศา ไปที่ตาแหน่ง (x, y) บนเวที ตัวอย่าง ไปตรงกลางเวที (x=0, y=0) ตั้งค่าตาแหน่งตัวละครไปด้านซ้ายหรือขวา ตัวอย่าง ตั้งค่าตัวละครไปที่ตาแหน่ง x = 0 คือ กลางเวที x = 240 คือ ขอบขวาสุด x = -240 คือ ขอบซ้ายสุด ตั้งค่าตาแหน่งตัวละครไปด้านบนหรือด้านล่าง ตัวอย่าง ตั้งค่าตัวละคร ไปที่ตาแหน่ง y = 0 คือ กลางเวที y = 180 คือ ขอบบนสุด y = -180 คือ ขอบล่างสุด
  • 2. แผนการเรียนรู้ที่ 2 พื้นหลังและตัวละคร -14- การเคลื่อนที่ไปได้ในทิศทางต่างๆ ของตัวละครจะไม่เกี่ยวข้องกับลักษณะการหันหน้าของตัวละคร ดังนั้นในการทาให้ตัวละครเคลื่อนที่ ผู้เรียนควรทาความเข้าใจกับประเด็นนี้ เพื่อให้การแสดงผลการเคลื่อนที่ของ ตัวละครมีลักษณะเป็นธรรมชาติมากที่สุด เส้นสีน้าเงินเป็นตัวกาหนดทิศทางการเคลื่อนที่ของตัวละคร ในภาพแมวมีทิศทางการเคลื่อนที่ 108 องศา ทิศทางการเคลื่อนที่ที่ระบุในโปรแกรม Scratch เช่น 0 องศาจะมีทิศทางการเคลื่อนที่ไปด้านบน 90 องศาจะมีทิศทางการเคลื่อนที่ไปทางขวา -90 องศาจะมีทิศทางการเคลื่อนที่ไปทางซ้าย 180 องศาจะมีทิศทางการเคลื่อนที่ไปด้านล่าง การหมุนของตัวละคร ถ้าค่าเป็นบวก จะเป็นการหมุนตามเข็มนาฬิกา ถ้าค่าเป็นลบจะหมุนทวน เข็มนาฬิกา เช่น -180 มีทิศทางการเคลื่อนที่ไปด้านล่างเหมือนกับทิศ 180 องศา แต่เป็นการหมุนทวนเข็ม นาฬิกา ตัวอย่าง การระบุทิศทางของตัวละครในโปรแกรม Scratch อุดร(เหนือ) -90 องศา 0 องศา 180 องศา 90 องศา อีสาน(ตะวันออกเฉียงเหนือ) ตะวันออก(บูรพา) ( ตะวันออกเฉียงใต้(อาคเนย์) ใต้(ทักษิณ) ตะวันตกเฉียงใต้(หรดี) ตะวันตก(ประจิม) ตะวันตกเฉียงเหนือ(พายัพ) 90 0 180-180 -90