TUTORIALS
World example using object movement and obstacle manipulation
38min
sample project 📘 project files used in lecture videos https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 summary summary this is a follow along lecture for beginners of zepeto world development \ set up for zepeto world development and learn zepeto character controller \ it is a jump map that can be completed with a simple gameobject movement code and a teleport code difficulty beginner time required 30 minutes project goals understand how to create unity projects using zepeto templates world id interwork and zepeto login summon zepeto characters and understand character controllers create default jump maps control the movement of gameobjects using zepeto script teleport characters using zepeto script example of completed world https //www youtube com/watch?v=i4zmjqpn7zw https //www youtube com/watch?v=i4zmjqpn7zw part 1 setting up the world console ❗️ caution before watching this video, please follow the installation and settings docid\ yej7qotmsgrxn9oloftyc guide to complete the basic installation learn how to set up the zepeto studio world console learn how to set up unity projects using zepeto template english version https //www youtube com/watch?v=qlv1z723gem https //www youtube com/watch?v=qlv1z723gem korean version https //www youtube com/watch?v=jqpu5azn0wo https //www youtube com/watch?v=jqpu5azn0wo part 2 setting up zepeto players learn how to make zepeto characters appear in the world english version https //www youtube com/watch?v=gsw jxi4c6q https //www youtube com/watch?v=gsw jxi4c6q korean version https //www youtube com/watch?v=zmwd1qhlyp8 https //www youtube com/watch?v=zmwd1qhlyp8 charactercontroller script 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; }); } } part 3 moving objects learn how to create a moving gameobject english version https //www youtube com/watch?v=ecw59kg0jos https //www youtube com/watch?v=ecw59kg0jos korean version https //www youtube com/watch?v=hxr9bexwb60 https //www youtube com/watch?v=hxr9bexwb60 rotator script 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); } } } part 4 teleporting zepeto characters learn to teleport characters when they reach the object english version https //www youtube com/watch?v=8lxwq7k23uy https //www youtube com/watch?v=8lxwq7k23uy korean version https //www youtube com/watch?v=hhakkpgt2vm https //www youtube com/watch?v=hhakkpgt2vm teleport script 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() { // zepeto character object 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 to origin position this zepetocharacter teleport(new vector3(0, 0, 0), quaternion identity); } } part 5 test play learn how to test play on mobile english version https //www youtube com/watch?v=wfwao8uzlsc https //www youtube com/watch?v=wfwao8uzlsc korean version https //www youtube com/watch?v=ixj2z47wp k https //www youtube com/watch?v=ixj2z47wp k part 6 utilizing asset store learn how to lavishly decorate your world english version https //www youtube com/watch?v=xfmrcr skjy https //www youtube com/watch?v=xfmrcr skjy korean version https //www youtube com/watch?v=nq10qeyec1m https //www youtube com/watch?v=nq10qeyec1m part 7 launching the world learn how to launch the world english version https //www youtube com/watch?v=cnloh28ezf8 https //www youtube com/watch?v=cnloh28ezf8 korean version https //www youtube com/watch?v=trgrk3gezwo https //www youtube com/watch?v=trgrk3gezwo