Horizon Worlds Tutorial - Episode 3: Scripting Basics

preview_player
Показать описание
After struggling myself to learn the ins-and-outs of Horizon Worlds Build Mode, I decided to make my own tutorial series to help new builders learn how to make things in Worlds.

In this video we will go over some more advanced techniques when approaching a build. We'll build a carnival space from start to finish, with a couple simple interactions for players that don't require the use of the Script gizmo.

Check out these other channels for even more tutorials on scripting:

HUGE thank you to my good friends Jared Morse, Cameron David and Poz Long, who helped make these videos the best that they could be.

Timestamps:
0:00 - Intro
0:56 - Script Gizmo
1:29 - Code Blocks
2:54 - Your First Script
4:30 - Attaching a Script
5:00 - The Logic of Scripts
5:16 - Scripting a Rotation Animation
7:16 - "Rotate By" Code Block
9:07 - Looping Scripts
12:19 - Leveraging Variables
15:53 - Trigger Gizmo
16:31 - Player Collision Scripts
17:25 - Object Variables
18:02 - Attaching Objects to Variables
19:23 - Object Collision Scripts
20:39 - Scripting an Automatic Door
24:49 - IF Statements
30:12 - Scripting Sounds
31:16 - Asset Library Scripts
31:46 - Quest Gizmo
32:50 - Leaderboard Gizmo
33:49 - Projectile Launcher Gizmo
35:49 - Raycast Gizmo
38:11 - Outro
---

#horizonworlds #tutorial #vr #vrgaming #guide
Рекомендации по теме
Комментарии
Автор

Thanks for the kind words on this video series, everyone! I plan on playing around with some other projects—both in Horizon Worlds and out. And while this is my last episode for this beginner series, I’ll likely add more tutorial videos as new functionality and features become available for builders.

I’ll be publishing all that on this channel, so I hope to see you there :)

dhelberg
Автор

Loving the series. It seems like they need to add some kind of callback feature. Relying on timers matching up, just feels a little but hacky.

GadgetAddict
Автор

The series is absolutely invaluable in helping me learn about Horizon worlds over this last week. The quality of the work you put into making this series is apparent. It would have taken me a lot longer without your help. Thanks!

LiamOliver
Автор

Wait, what?? Last one?
I really think you are a true asset to Horizon Worlds. I hope you end up doing more build videos.

I really liked the tips about using assets for other purposes in the previous video. I could watch a whole video on that alone.

mimiwilson
Автор

Thanks for making these videos! They are very professional and helpful!

muttmcdog
Автор

Hi David, thanks so much for taking the time to make these. You are truly one of the better teachers of this on youtube. You have plans to make others after this series ?

JohnStraussmusic
Автор

So thorough and informative!! I can't believe this is a final episode. When are you announcing your next series?? I need to know more is coming 😢

elenaweikel
Автор

Bittersweet to hear that it's the final episode in this series, but you covered a ton of teaching ground in this 4 episodes. Looking forward to whatever the next series is!

NeroStrike
Автор

This actually seems really fun! I hope this game is still around when my future kids are learning.

KingRevvi
Автор

Another amazing video! Thank you, it’s very helpful 😊

CottonDooda
Автор

As someone who also hasn't made games before, you do such a great job of breaking this down for us without assuming that we already know any basic language and things like that. This is by far the easiest to follow tutorial I've come across surrounding anything I've wanted to learn vr related. You are much appreciated friend! Thank you!

BeSoSerious
Автор

Great series. Had me up and running quickly. Thanks a lot

ssatguru
Автор

This was super helpful. Thank you for taking the time to create this series.

CliqCliqBom
Автор

Thanks for all these lessons man, all very useful stuff. cheers

francesco.giunta
Автор

This is a great series and helped me a lot. I do have one point that had me confused for a while and I believe is bad programming practice: When you use variables inside a script that refer to an object to be acted on, ideally they should be generic/descriptive. I really don't think they should be the same name as an object in the world as it is very easy to get confused, especially if you start using the same script for different objects. e.g. in the trigger section of your video, calling the variable that identifies a shape to rotate "cube1" makes people think it will only rotate cube1. Instead it should be called something like "shape-to-rotate" or something, then, when you get the option to fill in variables on the trigger panel you are now dragging "cube1" to the variable "shape-to-rotate." Now, when you add another shape (say cone3) that you also want to trigger, when you add the script to that shape, rather than having to fill out cube1: cone3, you will now have "shape-to-rotate: cone3." I hope this all makes sense and I got it correct.
I come from a programming background and equate it to calling a variable to store a name john_smith$ instead of name$ (this would look like: john_smith$="John Smith" and next name john_smith$="Jane Doe" - very confusing - instead of name$="John Smith", name$="Jane Doe")
Thanks again. I appreciate how well made your videos are: editing, smooth camera, clear etc.

oryxis
Автор

Could you tell me how to implement a sound effect at the moment of impact? This will probably go for the explosion as well, but I'm having trouble telling the script the location of the projectile. Surprisingly, I'm not finding much regarding it. Great videos, and thanks in advance.

bringhurstvr
Автор

thanks for this great series of videos. Perfect speed and detail! Your presentation skills are top notch. Quick question. I've seen large screens with video displayed in some worlds. Is this something that is easy to do? I wanted to display a screen with a cycling video that I uploaded. I'm presuming displaying through youtube is the best route for this kind of thing? many thanks

TheXRSchool
Автор

Just bought a new vr, cant wait to make games for people.

longlastingflavor
Автор

Hi David! Great video! I was wondering about your Leaderboard script. I noticed it says "when trigger is entered by player" I want to track leaders for how many times they enter my world, but i fear that if i use a trigger to tall their visits, they might walk over the trigger several times and I won't get an accurate read. Any suggestions?

raisaroni
Автор

If only more tutorials could be like that

sigridopps
visit shbcf.ru