SlideShare a Scribd company logo
1 of 100
Download to read offline
サードパーソンを選択
スターターコンテンツは
無し
名前は「Practice1」に
しましょう
プロジェクトを作成すると
この画面にでます
試しに右上にある再生ボタンを
押してみましょう
これはゲーム画面です
操作方法は
【Wキー 前】【Sキー 後】【Dキー 右】【Aキー 左】
【マウス移動 視点操作】【SPACEキー ジャンプ】
ESCキーで終了します
とりあえず初期からあるオブジェクトが邪魔なので
消していきます
左クリックでオブジェクトを選ぶと枠が黄色に光ります(この状態が選択している状態です)
選択した状態で【BACK SPACEキーかDELETEキー】で削除できます
間違って消してしまった場合は
【CTRLキーを押しながらZキー】を押すことで
一つ前に戻れます
消せたらこのようになります
この調子で他の置いてあるオブジェクトも
消していきましょう
オブジェクトを削除しても影が残ってしまうと思います
ビルドの右の▼を押して
ライティングのみビルドをクリックして実行しましょう
影が消えたら次にいきます
コンテンツブラウザ内で右クリックを押すと
このようなメニューが出ます
メニューの中のブループリントクラスを
クリックします
このメニューが開いたら
Characterを選択します
新しくブループリントが作成されます
名前を「Enemy」に変えておきましょう
名前の変更はブループリントを選択して右クリックで
出るメニューから変更可能です
作成したブループリントを開くと
このような画面になります
左上の一覧からMesh(継承)を選択します
右側のMeshの覧の「なし」と書いてあるとこを
クリックしましょう
クリックしたら現れるメニューから
SK_Mannequinを選択します
そしたらキャラクターが現れます
青矢印のところをクリックでつかみ
-90まで下げましょう
位置のZのところの値を-90に変更してもできます
こんな感じになるかと思います
右側のAnimationの覧の
Anim Classの「なし」をクリックして
メニューを表示させます
出したメニューからThirdPerson_AnimBPを
選択してください
この水色の矢印がキャラクターの進行方向です
キャラクターを進行方向に向かせるために
キャラクターを回転させましょう
上の回転マークを選択して移動ではなく
回転させれるようにします
足元の青い円を回転させ-90度にしましょう
右側の回転の覧のZの値を-90に設定する方法でも可能です
どのブループリントも変更し終わったら
必ずコンパイルを実行しましょう
クリックするだけで大丈夫です
緑のチェックマークがついたら完了しています
完了したらこのタブを閉じても大丈夫です
Enemyのブループリントを押しながらマップ上に
ドラッグ&ドロップして設置しましょう
設置するとマップ上に現れます
次は敵Enemy(敵キャラクター)が
動くようにします
もう一度このメニューを出しブループリントクラスを
選択してください
一番下の全てのクラスの左の▼を押し
検索バーを表示させ、そこに「AIContriller」と入力し
同じものをクリックで選び下の選択をクリックします
名前をEnemyAIに変更しておきましょう
EnemyAIを開いたら
上の覧のイベントグラフを選択して画面を切り替えます
この画面でノードを組んでいきます
この画面の操作方法は画面内を
右クリックで押しながらマウスを
動かすことで移動できます
左クリックはノードを選択できます
△を左クリックで押しながら
マウスを動かすと糸のような
物が出ます
この糸はノードとノードを
つなぐものです
離した位置で検索欄がでてきます
検索欄にAI Move Toと入力し
白い箱のようなものが
ついた文字を選択します
この中で右クリックすることで
検索欄を出すことも可能です
繋がっていない場合は繋げましょう
Pawnから伸ばし
Get Controlled Pawnと入力し
選択します
Target Actorから伸ばし
Get Player Pawnと入力し
選択します
終わったらコンパイルして
閉じてください
次にEnemyを開いてください
この画面にならなかったら開いた画面の
ブループリントエディタを開くを選択してください
そしてイベントグラフの画面に切り替えてください
Enemyを選択してください
右側のPawnの覧のAIControllClassの右側をクリック
してください
その場所をEnemyAIに変更しましょう
設定し終えたらコンパイルして閉じてください
次はAIが動ける範囲を設定します
左の覧のボリュームを選択してください
その右側の覧を下へスクロールして
Nav Mesh Bounds Volumeを選択しましょう
選択したらマップ上へ
ドラッグ&ドロップして
設置しましょう
ステージを覆うように
サイズを調整しましょう
ここでサイズ調整に変えれます
配置した敵キャラクターが追いかけてくるようになったら
ここまでは成功です
今の状態は一度ぶつかると止まるように
なっているはずです
EnemyAIをひらいて
「Event Begin Play」のところを
「Event Tick」に変更すれば
ずっとついてくるようになります
Event Tickがないときは
右クリックからの検索で
Event Tickと入力して出しましょう
ぶつかってもずっとついてきます
(今回の鬼ごっこでは一度ぶつかるとゲームオーバーなので
実装しなくてもOK)
敵キャラクターのスピードが
速いと感じてスピードの調整をしたいときは
敵キャラクター内(Enemy内)の設定を変えましょう
Enemyを開きCharacterMovementを
選択します
右の覧にある
Character Movement:Walkingの中の
Max Walk Speed(上の方)の値を
初期の600から変更しましょう
初期のスピードが600なので
300は半分のスピードです
好きなスピードに調整してみましょう
敵のスピードを遅くさせることに
成功しました!
次は敵に当たった時にゲームオーバーに
なるようにします
Enemyを開いてください
左上の「コンポーネントを追加」を押して
検索バーにBox Collisionと入力してください
表示されたBox Collisionをクリックしてください
クリックすると左上の覧に追加されます
(この時名前を変更できますが今回は変更していません)
線で囲われたBOXがキャラクターの中心に
表示されるのでキャラクターの前に出るように
調整しながら移動させましょう
調整し終わったら左上の覧の
Boxの上で右クリックします
イベントを追加に
カーソルを合わせると
さらに右の覧が現れます
出た一覧からOnComponentBeginOverlapを選択します
出現したノードから
新しくつなげていきます
Cast To ThirdPersonCharacter
と検索欄に入力し上側のほうを
選択します
出現したノードのObjectと
On Component BeginOverlapの
Other Actorを繋げてください
次にDisable Inputと入力し
選択してください
出現したノードのTargetと
Cast To ThirdPersonCharacterの
As Third Person Characterを
つなげてください
DisableInputのPlayer Controllerから
伸ばしGet Player Controllerと入力し
選択してください
終わったらコンパイルして
閉じてください
ゲームをプレイしてみてください
敵の正面に衝突するとプレイヤーの入力が効かなくなります
次はいつまでも逃げ続けるとクリアが
ないので制限時間を実装します
ブループリントクラスを選択してください
検索バーから「GameModeBase」と
入力して選択してください
名前は「CountDown」に設定しましょう
完了したら「CountDown」を開いてください
値が変化していく
変数というものを設定します
左の覧の変数と書いたところの右側にある
+ボタンを押してください
名前を「Seconds」に設定しましょう
名前の変更ができたら
次は型を変更します
右側の覧の変数の型を選択し
Intangerを選択してください
変更できたらコンパイルしてください
しかしまだ閉じないでください
コンパイルが完了したら
変数の中の値が設定できるようになります
とりあえず1分に設定
しましょう
この値は秒数にするので60に設定しましょう
Event Tickから繋げていきます
検索バーに「Delay」と
入力して選択してください
Delayの中の値を変更します
中の値を1に変更してください
左の覧の作った変数を
ドラッグ&ドロップしてください
「Get Seconds」か「Set Seconds」の
ふたつが出るので「Set Seconds」の方を
選択してください
出現したノードのSecondsから伸ばし
「-」と入力して
Intanger – intangerを選択してください
変数をドラッグ&ドロップで
「Get Seconds」を選択してください
「Get Seconds」と
「intanger - intanger」の左上側を
繋げてください
コンパイルして
閉じてください
ユーザーインターフェイスの
ウィジェットブループリントを選択してください
「CountDownWidget」という名前に
変更してください
変更できたら開いてください
左上の検索バーに「Text」と入力して
でてきたTextをドラッグ&ドロップで
このパネル上に置いてください
置けたらこのようになります
右上の覧のアンカーを選択してください
このように一覧がでるので
矢印が示しているものを
選択してください
次はテキストを変更します
右側のContentのtextを「60」に
変更してください
変更できたらこのようになります
右側の覧のAppearanceのFontの中にある
Sizeの部分をちょうどいい感じの大きさに
なるように変更してください
サイズの所を左クリックしながらマウスを動かすことでも
サイズを変更させることができます
右側の「Content」覧の上の覧の
Size To Contentにチェックをいれてください
Contentの覧のTextの一番右側にある
バインドをクリックして
バインディングの作成を選択してください
バインディングの作成を選択すると
この画面に移動すると思います
Get Text0から
Cast to CountDownへつなぎます
Cast To CountDownのObjectから
Get Game Modeに繋ぎます
Cast To CoountDownのAs Count Downから
Get Secondsへつなぎます
Get SecondsのSecondsから
Return NodeのReturn Valuに繋ぎます
繋ぐと自動的にToText(intanger)というものが
生成されますがこれで合っています
完成したらコンパイルして閉じてください
上の覧のブループリントの右にある▼を
クリックして出てきた覧にある
「レベルブループリントを開く」を選択して
開いてください
右クリックから検索バーに
「Create Widget」と入力し選択してください
クラスを選択のところを押し
出た一覧の中から
CountDownWidgetを選択してください
「Event Begin Play」を
さっきのノードの前につなげてください
「Create Widget」から
「Add to Viewport」をつなぐ
「Create Widget」のReturn Valueと
「Add to Viewport」のTargetを繋げてください
完了したらコンパイルして
閉じてください
右下の「ワールドセッティング」の覧の
GameModeの覧の「GameMode Override」のところに
「CountDown」を設定してください
これで時間の実装ができました
長くなりましたがこれで前編は終了です

More Related Content

Recently uploaded

202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)
202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)
202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)KayaSuetake1
 
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料シンフォニティ 株式会社
 
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店ssuserfb441f
 
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチ
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチUP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチ
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチユニパー株式会社
 
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdf
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdfストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdf
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdfmasakisaito12
 
Service-introduction-materials-misorae-leadership
Service-introduction-materials-misorae-leadershipService-introduction-materials-misorae-leadership
Service-introduction-materials-misorae-leadershipYasuyoshi Minehisa
 
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdf
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdfストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdf
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdfmasakisaito12
 
20240427 zaim academy counseling lesson .pdf
20240427 zaim academy counseling lesson .pdf20240427 zaim academy counseling lesson .pdf
20240427 zaim academy counseling lesson .pdfssuser80a51f
 

Recently uploaded (8)

202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)
202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)
202405_VISIONARYJAPAN_engineerteam_entrancebook(ver2.1)
 
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料
シンフォニティ株式会社(SYMPHONITY , Inc.) 会社説明・人材採用資料
 
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店
株式会社MAVEL会社概要_アフィリエイト広告_運用型広告_LTVを予測しLOIを最適化する広告代理店
 
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチ
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチUP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチ
UP103シリーズ パワーコメット ユニパー スライドレールタイプ 瓦揚げ機 ウインチ
 
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdf
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdfストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdf
ストックマーク株式会社がお客様へご提供しているAnews概要資料のご共有.pdf
 
Service-introduction-materials-misorae-leadership
Service-introduction-materials-misorae-leadershipService-introduction-materials-misorae-leadership
Service-introduction-materials-misorae-leadership
 
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdf
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdfストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdf
ストックマーク株式会社がご提供しているAnews(エーニュース)概要紹介.pdf
 
20240427 zaim academy counseling lesson .pdf
20240427 zaim academy counseling lesson .pdf20240427 zaim academy counseling lesson .pdf
20240427 zaim academy counseling lesson .pdf
 

Featured

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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

早速ゲームを作ってみよう 前編