TUTORIAL
Contoh dunia menggunakan pergerakan objek dan manipulasi rintangan
38mnt
proyek contoh 📘 berkas proyek yang digunakan dalam video kuliah https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 ringkasan ringkasan ini adalah kuliah yang diikuti untuk pemula dalam pengembangan zepeto world \ siapkan untuk pengembangan zepeto world dan pelajari pengendali karakter zepeto \ ini adalah peta lompatan yang dapat diselesaikan dengan kode gerakan gameobject yang sederhana dan kode teleport kesulitan pemula waktu yang diperlukan 30 menit tujuan proyek pahami cara membuat proyek unity menggunakan template zepeto interaksi id dunia dan login zepeto panggil karakter zepeto dan pahami pengendali karakter buat peta lompatan default kontrol pergerakan gameobjects menggunakan skrip zepeto teleport karakter menggunakan skrip zepeto contoh dunia yang selesai https //www youtube com/watch?v=i4zmjqpn7zw https //www youtube com/watch?v=i4zmjqpn7zw bagian 1 menyiapkan konsol dunia ❗️ peringatan sebelum menonton video ini, silakan ikuti pemasangan dan pengaturan docid\ kanjlegikqicsxqqu7sun panduan untuk menyelesaikan instalasi dasar pelajari cara menyiapkan konsol dunia zepeto studio pelajari cara menyiapkan proyek unity menggunakan template zepeto versi bahasa inggris https //www youtube com/watch?v=qlv1z723gem https //www youtube com/watch?v=qlv1z723gem versi bahasa korea https //www youtube com/watch?v=jqpu5azn0wo https //www youtube com/watch?v=jqpu5azn0wo bagian 2 menyiapkan pemain zepeto pelajari cara membuat karakter zepeto muncul di dunia versi bahasa inggris https //www youtube com/watch?v=gsw jxi4c6q https //www youtube com/watch?v=gsw jxi4c6q versi bahasa korea https //www youtube com/watch?v=zmwd1qhlyp8 https //www youtube com/watch?v=zmwd1qhlyp8 skrip charactercontroller import { zepetoscriptbehaviour } from 'zepeto script'; import { spawninfo, zepetoplayers, localplayer, zepetocharacter } from 'zepeto character controller'; export default class charactercontroller extends zepetoscriptbehaviour { start() { zepetoplayers instance createplayerwithzepetoid("", "\[zepeto id]", new spawninfo(), true); zepetoplayers instance onaddedlocalplayer addlistener(() => { let player localplayer = zepetoplayers instance localplayer; }); } } bagian 3 menggerakkan objek pelajari cara membuat gameobject yang bergerak versi bahasa inggris https //www youtube com/watch?v=ecw59kg0jos https //www youtube com/watch?v=ecw59kg0jos versi bahasa korea https //www youtube com/watch?v=hxr9bexwb60 https //www youtube com/watch?v=hxr9bexwb60 skrip rotator import { zepetoscriptbehaviour } from 'zepeto script'; export default class rotator extends zepetoscriptbehaviour { public rotationspeedx number = 0 5; public rotationspeedy number = 0; public rotationspeedz number = 0; update() { this transform rotate(this rotationspeedx, this rotationspeedy, this rotationspeedz); } } movement script import { zepetoscriptbehaviour } from 'zepeto script'; import { vector3, gameobject, object, time } from 'unityengine'; export default class movement extends zepetoscriptbehaviour { public movingtime number = 1; public movingrangex number = 0; public movingrangey number = 2; private delta number = 0; private directionflag bool = true; update() { this delta += time deltatime; if (this delta > this movingtime) { this delta = 0; this directionflag = !this directionflag; } if (this directionflag) { // move upward during the set moving time this transform translate(this movingrangex time deltatime, this movingrangey time deltatime, 0); } else { // move downward during the set moving time this transform translate( 1 this movingrangex time deltatime, 1 this movingrangey time deltatime, 0); } } } bagian 4 teleportasi karakter zepeto pelajari cara untuk teleportasi karakter saat mereka mencapai objek versi bahasa inggris https //www youtube com/watch?v=8lxwq7k23uy https //www youtube com/watch?v=8lxwq7k23uy versi bahasa korea https //www youtube com/watch?v=hhakkpgt2vm https //www youtube com/watch?v=hhakkpgt2vm skrip teleport import { collider,vector3,quaternion } from 'unityengine'; import { zepetocharacter, zepetoplayer, zepetoplayers } from 'zepeto character controller'; import { zepetoscriptbehaviour } from 'zepeto script'; export default class teleport extends zepetoscriptbehaviour { private zepetocharacter zepetocharacter; start() { // objek karakter zepeto zepetoplayers instance onaddedlocalplayer addlistener(() => { this zepetocharacter = zepetoplayers instance localplayer zepetoplayer character; }); } ontriggerenter(collider collider) { if (this zepetocharacter == null || collider gameobject != this zepetocharacter gameobject) { return; } // teleport ke posisi asal this zepetocharacter teleport(new vector3(0, 0, 0), quaternion identity); } } bagian 5 uji permainan pelajari cara menguji permainan di mobile versi bahasa inggris https //www youtube com/watch?v=wfwao8uzlsc https //www youtube com/watch?v=wfwao8uzlsc versi bahasa korea https //www youtube com/watch?v=ixj2z47wp k https //www youtube com/watch?v=ixj2z47wp k bagian 6 memanfaatkan toko aset pelajari cara menghias dunia anda dengan mewah versi bahasa inggris https //www youtube com/watch?v=xfmrcr skjy https //www youtube com/watch?v=xfmrcr skjy versi bahasa korea https //www youtube com/watch?v=nq10qeyec1m https //www youtube com/watch?v=nq10qeyec1m bagian 7 meluncurkan dunia pelajari cara meluncurkan dunia versi bahasa inggris https //www youtube com/watch?v=cnloh28ezf8 https //www youtube com/watch?v=cnloh28ezf8 versi bahasa korea https //www youtube com/watch?v=trgrk3gezwo https //www youtube com/watch?v=trgrk3gezwo