Lists 101 & While Loops: Ordered Scores (Facebook Horizon)

  Рет қаралды 4,135

Vidyuu Tutorials

Vidyuu Tutorials

Күн бұрын

Пікірлер: 66
@OfficialMelodyOfWorship
@OfficialMelodyOfWorship 2 жыл бұрын
Ur almost at 300 videos... thats crazy to think about how much value you've brought regular degular people when it comes to building!
@crazymakerofthings633
@crazymakerofthings633 2 жыл бұрын
Thanks so much for these videos! Never would have even figured out how to move the reference pill between objects if it hadn't been for you.
@tom_something
@tom_something 2 жыл бұрын
The visual scripting environment looks so intuitive... until the moment you have to use it to do something that isn't just... already a thing. Iterating through a list. Sorting a list. There are many programming languages where you can do this with just a tiny little piece of code. But here.... I can't imagine how much patience you have, to be able to figure this whole thing out. It's really remarkable.
@Vidyuu
@Vidyuu 2 жыл бұрын
More codeblocks are added regularly, if you ask you may receive ;) Here’s a link to the official group, where you can make feature requests: facebook.com/groups/horizonworlds/
@tom_something
@tom_something 2 жыл бұрын
@@Vidyuu Thanks! I'm sure there have been others requesting more codeblocks for lists, but I'll add my voice to the chorus. I went through beginner tutorials from two other channels before I found yours. Yours are much easier to understand. That's super important, since I have to take my visor off to watch KZbin, and I have to rush back into Horizon before it auto-closes. I'm sure Meta is working on a way to expand multitasking so I can at least watch a KZbin tutorial without closing Horizon. I'm still having fun though.
@Vidyuu
@Vidyuu 2 жыл бұрын
I’m fighting for this too, hopefully sooner than later 💜🙌
@tom_something
@tom_something 2 жыл бұрын
@@Vidyuu They let me in the group, and five days ago I posted about how it would be nice to have block to convert a color into its RGB values, and I added my current workaround, which is to convert the color to a vector and then pull the X/Y/Z out of it. This afternoon there was an update, and the only release note for the scripting portion is that there's now a color-to-RGB block. And they made it even better than what I was talking about. Rather than separate blocks for R, G, and B, it's a block that features a _dropdown!_ Could just be a coincidence. I'm glad to see it, though. I have a couple of experiments that require access to the RGB values, so it's nice to have something that makes my scripts a little shorter, since you can only see a few lines at a time. I think it's the first block to feature a dropdown, but I hope it's not the last. Having separate blocks for "greater than" and "greater than or equal to" is nice when you're grabbing a fresh block to use, but if you realize later you want to change it, it's this whole "duplicate the whole line of code, drop the greater-than-or-equal-to block, use the original to repopulate the values for it, delete the original" thing. Drop-downs, in! What's next? Radio buttons? Checkboxes? Oooo, a unification of "send event" and "send event with delay".
@cantjimout25
@cantjimout25 3 жыл бұрын
This is such a useful script and helpful breakdown ^^
@Vidyuu
@Vidyuu 3 жыл бұрын
Thank you so much!! 😁
@fefe__
@fefe__ 3 жыл бұрын
Awesome video! Definitely gonna use in the future
@Vidyuu
@Vidyuu 3 жыл бұрын
Thank you so much for watching! If you’d like to be added to the world, just drop your user name and I’ll add you as a collaborator :-)
@fefe__
@fefe__ 3 жыл бұрын
@@Vidyuu first 2 letters of my last name
@Vidyuu
@Vidyuu 3 жыл бұрын
Omgggggg XD The connection, I’ve made it, thanks for watching fe fe! 💜😍😁
@empress5039
@empress5039 2 жыл бұрын
Aye this is a good one!!! If I wanted the target my player shoots at to reflect receiving a “point” you think you could do another video on this script sometime or maybe help me understand?? Blessings to you Fam!
@Vidyuu
@Vidyuu 2 жыл бұрын
One of my favorite new codeblocks is owner of, this allows you to get the owner of an object (found on the actions tab). And if you’re using the projectile launcher it will actually return the player who was hit. I’m going to grab a couple links that might help :-)
@Vidyuu
@Vidyuu 2 жыл бұрын
Respawn / Teleport Players With Projectiles in Horizon Worlds! #LaunchersCompetition kzbin.info/www/bejne/rHqciWSimpKnsMk Horizon Scripting Class: Economy 101 kzbin.info/www/bejne/gHSoiI2lft2Yn80
@empress5039
@empress5039 2 жыл бұрын
@@Vidyuu Yaaaas, thank you dude !!!!! These def helped, s/o for everything you do !!! These videos are Platinum. My brain is breaking lmaoo but I’m close! I’m stuck on if player with a gun (projectile) hits an object (bird) and it currently disappears and makes a sound but now I want it to track the score when being hit do I plug recognizing the player in my bird script or the hit script of my gun or a whole different page of new script 😅🤨😭
@Vidyuu
@Vidyuu 2 жыл бұрын
@@empress5039 Great question, consider using the new owner of codeblock found on the Actions tab. For instance on the gun When World is Started -listen to events on ProjLauncherVar When Index Trig Pressed by Player - Launch Projectile on ProjLauncherVar When Projectile Collides WIth Object - Set Visibility to false, etc - Set Player Score to Get Score + 1 for ( owner of ( self ) ) Because this script runs on the gun, the person who grabs the object is automatically the owner :D You can also save a player var for later by creating a Player ID Variable, and then do "Set MyPLIDVar to Player" this would go into grab start, trigger press, or other player related events :)
@empress5039
@empress5039 2 жыл бұрын
@@Vidyuu I never said thaannnnk yous!!! Love your energy dude ❤️‍🔥👊🏾
@steffenbaker9429
@steffenbaker9429 2 жыл бұрын
Are tuples, dictionaries, and sets a thing in Horizon Worlds?
@Vidyuu
@Vidyuu 2 жыл бұрын
Not yet, but I’m sure one day we’ll get these! :)
@bigchief5803
@bigchief5803 2 жыл бұрын
Where did you get the Score+1 script?
@TH3B4K3
@TH3B4K3 2 жыл бұрын
How much would you want, to make my timer leaderboard script. I just can’t grab the concepts. I’ve given up…
@Vidyuu
@Vidyuu 2 жыл бұрын
There’s some free ones in the essentials bundle! :D what’s your oculus username?
@PatDooley50
@PatDooley50 3 жыл бұрын
thank you
@Vidyuu
@Vidyuu 3 жыл бұрын
Thank you Pat! Running out the door, I’ll be back home later tonight, would you like me to add you to the world when I get home? :-)
@PatDooley50
@PatDooley50 3 жыл бұрын
@@Vidyuu thank you! I would love to be added - utterlyotter
@rodolfocastro1043
@rodolfocastro1043 2 жыл бұрын
If I do join the free world how do I save this so I can bring it to my own world ? because I tried it and the names aren't popping up
@Vidyuu
@Vidyuu 2 жыл бұрын
Hopefully this helps :) How To Import Worlds & Assets kzbin.info/www/bejne/ppbHq6iplLaohpo
@alexbutler1592
@alexbutler1592 2 жыл бұрын
I'm trying to do the same scenario but with an object entering a trigger (think basketball scoreboard), but i can't seem to make it click. is there a common mistake i might be making?
@Vidyuu
@Vidyuu 2 жыл бұрын
I’m wondering if you set the trigger to detect objects with a tag, and also added a tag to the objects… Here’s a video that should explain this a little bit better, let me know if you’re still having trouble 😁 Teleport Key kzbin.info/www/bejne/lZbddY2em9eZkK8
@Kiraloven
@Kiraloven 2 жыл бұрын
How do we do it when it’s teams
@Vidyuu
@Vidyuu 2 жыл бұрын
This is a great question, there are a number of options: Option 1, create a team score manager, this will store a variable tracking the teams points Ie. When trigger is entered by object - set CurScore to CurScore + 1 You would have one for each team (presuming there are separate goals. You could send an event to that score manager to get data, ie: On another object: - send GetData to Team1 with param: self - send GetData to Team2 with param: self When NewData is received with ObjVar and NumberVar - if ObjVar = Team1 - - set Team1Score to NumberVar - if ObjVar = Team2 - - set Team2Score to NumberVar On the score manager script When GetData is received with ObjVar - send NewData to ObjVar with Self and CurScore
@Vidyuu
@Vidyuu 2 жыл бұрын
This video might help :) Send & Receive Object Properties kzbin.info/www/bejne/aXjPgHuuiJaKZ7s
@Vidyuu
@Vidyuu 2 жыл бұрын
Also consider checking out this section of the learn hub :) www.oculus.com/horizon-worlds/learn/tutorial/count-objects-in-a-trigger/
@RandomsHouse
@RandomsHouse 3 жыл бұрын
Hi Vidyuu. Love your videos. I'm working through this video to reproduce your code, but in Scores+1 script, I am getting a "Type error in Facebook.SocialVR.Modules.Scripting.LequalOperation" at the if statement. Do you know what could be causing this?
@RandomsHouse
@RandomsHouse 3 жыл бұрын
N/m, i found my error.
@Vidyuu
@Vidyuu 3 жыл бұрын
Great to hear that you solved it! :-)
@MrsLaBear
@MrsLaBear Жыл бұрын
Hi Viduu would this work to add to my leaderboard in world so that every players points double ?
@Vidyuu
@Vidyuu Жыл бұрын
Perhaps, but it would only work if the players are currently in the world. Instead of +1, use *2 :)
@courtneypearls638
@courtneypearls638 2 жыл бұрын
How would you change the script to make the ice cream cones go off every time you touch them?
@Vidyuu
@Vidyuu 2 жыл бұрын
Just leave the one line to increase score and delete the if in list portion
@MakeMoneyBuddy
@MakeMoneyBuddy 2 жыл бұрын
How to reset the score in world?
@Vidyuu
@Vidyuu 2 жыл бұрын
Something like: When world/trigger is entered by player: - set playervariable to 0 for player Hope this helps :)
@crich2091
@crich2091 2 жыл бұрын
Hi, could you point me to where i can find out how to use lists for sending pop ups? For instance, I have created 2 lists of players, teamA and teamB. I am attempting to have “when object X is grabbed send a pop up to each individual player on team A. I think pop ups are only able to be sent to individuals, so is there a way to retrieve the plid for player at index 1, 2, 3 etc from playerlistA and send a pop up to those unique plids? Or can I send a pop up to an entire list of players at one time?
@Vidyuu
@Vidyuu 2 жыл бұрын
you’ll want to while loop through the list, you can then show a pop up to each person once at a time… i’ve got a run, or else I’d go in to more detail, but there is an easier way, where you create a iterator player id list, you can set that list to be plid list a, and then remove an item at a time and while loop for as long as there are items in the list… It’s a little bit easier and a new technique I’ve been working with, definitely need to make a tutorial on this :-)
@crich2091
@crich2091 2 жыл бұрын
@@Vidyuu thank you.
@Vidyuu
@Vidyuu 2 жыл бұрын
No problem! Let’s see if I can break this down real quick: Set IteratorPlidList to PlidListA While (length of IteratorPlidList) > 0 - show pop up for get item at index 0 in IteratorPlidList - remove item at index 0
@crich2091
@crich2091 2 жыл бұрын
@@Vidyuu wow this actually works well and was easy to set up with your instructions! You’ve saved me so much time :) I’ve noticed if you have multiple pop up events that happen at the same time only one will show up. Is there a way to have them stack and show up in turn? I wish we could customize the audio on the pop ups. Is there a (hopefully equally smooth) way to just send audio to your specific lists?
@Vidyuu
@Vidyuu 2 жыл бұрын
@@crich2091 This is probably possible if you create a pop up manager for each player, but really not worth the hassle for most cases, would just recommend using delayed events for the pop up...like if you know it always goes A B C, do pop up a immediately, send event B with 4 second delay, then event C with 8 second delay. A player manager would have to create a list of the strings for the pop up and then remove them 1 at a time resending the event as long as the list was greater than 0.... Interesting idea though :)
@leftfishjet4029
@leftfishjet4029 3 жыл бұрын
So... list==array?
@Vidyuu
@Vidyuu 3 жыл бұрын
Yes! :)
@Byron_Hill
@Byron_Hill 2 жыл бұрын
Hi. I would love a copy of this world. I am building a world that is using a lot of list type scripting and this may help a lot. Thank you!!
@Vidyuu
@Vidyuu 2 жыл бұрын
What’s your Oculus username Byron? :)
@Byron_Hill
@Byron_Hill 2 жыл бұрын
@@Vidyuu C9JoeByron If you want to add me too i would love to show you what i am working on sometime! I couldent have done it without your videos 🙌🏼🙌🏼
@Vidyuu
@Vidyuu 2 жыл бұрын
Thanks Byron! Pleasure to help! I’ll add you late tonight :) How To Import Worlds & Assets kzbin.info/www/bejne/ppbHq6iplLaohpo
@TheHoustonCrew
@TheHoustonCrew 3 жыл бұрын
Can I please be added to this world? ~Rainmaker99
@Vidyuu
@Vidyuu 3 жыл бұрын
Added :)
@carsonelliott627
@carsonelliott627 2 жыл бұрын
Hey man 😊 great video! Can I get access to this world? Shizencoff, I believe you have me added already 🤟🏻
@Vidyuu
@Vidyuu 2 жыл бұрын
You got it :) You’ll find it in the corner near the carnival rides, make sure to import the world into an empty world :)
Booleans in Facebook Horizon
7:21
Vidyuu Tutorials
Рет қаралды 1,8 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 262 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН
Keyframe Motion in Horizon Worlds! (Script Tutorial)
21:06
Vidyuu Tutorials
Рет қаралды 6 М.
Horizon Scripting for Absolute Beginners
21:33
metacrafters
Рет қаралды 3,2 М.
Create Unbelievable Ladders in Horizon Worlds! (No Script)
10:26
Vidyuu Tutorials
Рет қаралды 3,2 М.
Counting Up & Scripting Timers in Horizon Worlds!
10:01
Vidyuu Tutorials
Рет қаралды 1,8 М.
Horizon Scripting Class: Economy 101
19:33
Vidyuu Tutorials
Рет қаралды 14 М.
Facebook Horizon Building 102 (Gizmos)
38:48
Vidyuu Tutorials
Рет қаралды 24 М.
LISTEN TO EVENTS: Horizon Worlds
0:43
Angelos Metaverse
Рет қаралды 627
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 262 МЛН