🧑‍🍳 Cooking with WIRED: Pseudo Waypoint Mechanism

:book: Preface

  • Prep Time: ~ 12 minutes
  • Cook Time: ~ 0 minutes
  • Total Time: ~ 12 minutes
  • Can Serve: A LOT of people

Hi guys :3 and welcome to cooking with Wired. Today we’ll make a pseudo waypoint mechanism, which is just fancy lingo for “I made a waypoint using other devices”. I came up with this recipe when thinking about how to let a player “drop” a waypoint at their location. Using standard methods with the waypoint or brute-forcing the problem wasn’t going to work, so I decided to re-invent the wheel waypoint :D!


:bowl_with_spoon: Ingredients

  • 1 coordinates device
  • 6 properties
  • 2 game overlays
  • 1 notification
  • 2 triggers!
  • 0 waypoints!

:scroll: Instructions

  1. To let a player “drop” a waypoint, we must first find their location. Place down a coordinates device.

  2. Check inside the coordinates device and set “Update Properties” to yes. To know where a player was, we must store their location in not only 1, but 2 properties!

  3. Now I hope you went grocery shopping because now you have to add two of your properties to the mix. Again, these will store your x and y coordinates, which will be tracked by the coordinate device.

  4. Make XPos a number property, have the default value be zero, have player scope, and change nothing else. DO the same for YPos. It’s a coordinate, it’s not going to be text!

  5. Go back to the coordinate system, because we’re not quite done yet. We have to know when our coordinates change, so let the device transmit on the channel “ChangeCoordinates” when a player’s coordinates change.

  6. Change the “X-Position” and “Y-Position” properties to the properties you placed down earlier, X-Pos and Y-Pos. Your coordinate system should be DONE and its settings should match this image:

What’s next? We’re now constantly storing a player’s coordinates, but the goal is to let a player drop their coordinates and have everyone follow them. So obviously… we need a button on their screen to do that!

  1. Add a game overlay into the bowl, and change it into a button via settings.

  2. Set the overlay text to “Drop Location” since the player needs to know what the button even does.

  3. “When button clicked, transmit on…” Store. Here’s an image of the game overlay’s settings:

  4. We now need to add another three properties, which are going to be the stored x-coordinates and the stored y-coordinates, and the name of the player who dropped their location.

  5. Name the properties “StoredName”, “StoredXPos”, and “StoredYPos”. For the two coordinate properties, you can just copy and paste the “XPos” and “YPos” properties. HOWEVER, make sure to change the scope of the two properties to “GLOBAL”. We want everyone to know your location, not just one player!

  6. For “StoredName”, your name won’t be a number, so it’ll be text! Nothing else should be filled out.

  7. Go into blocks and create a new block. Set the channel name to “Store”.

  8. Place down these blocks:

    This makes it so that your current location is set to a property and fixed. Then it also finds your name. Just be glad this isn’t real life :skull:

Okay. So we’ve been able to constantly track the coordinates of every player in the game, and store the coordinates and name of players who choose to drop their coordinates, but we’re missing the key point - the waypoint mechanism!

So what does a waypoint do? A waypoint shows up on your screen:

and shows you the distance in meters to a point and the direction you need to go. So it has direction and magnitude.

Well, that’s figured, we’ll next notify the player that a location has been dropped, tell them how far they are to that location, and if they need to go up, down, left, or right to get there.

  1. Open a box of notifications, take one out, and don’t edit any of its settings.

  2. Create a block (select the first option) that runs when receiving on channel “Store”.

  3. We need to send a notification (the block imma show is in “For this Device” btw) so place down these blocks:

    This is what the notification looks like in-game:

  4. Now, we will activate a game overlay that says how far you are from the waypoint and what direction you need to go. But first, we need to put one down!

  5. Put the overlay in the top right and set the content scope to “Player”. Set “Visible on Game Start” to no. Set it so that it shows when receiving on channel “Store”. Why would a player need to see the overlay if there’s no dropped location?

Quick intermission: You might be wondering when the overlay is closed? And to be honest? I don’t know when. You can make that part yourself and decide when you want the overlay to stop showing.

  1. Place these blocks down when receiving on channel “ChangeCoordinates” (there’ll be an explanation):

What is this? This is the distance formula, a way to find the distance between two points on a plane. The formula looks like this:

You don’t need this many variables, but I had a hard time troubleshooting and making sure everything was right.

Now to find the direction that you need to go?

  1. Place down a property named “RequiredDirection”. It’ll be a text property.

  2. Place down a trigger that is triggered when receiving on channel “RequiredDirection”.

  3. Add a block to the trigger and place down these blocks:

So this looks like a lot, but it’s really just doing a few checks. For example,

If my x-coordinate is 304, but the dropped coordinate is 310, 304 < 310 meaning I have to go right.

UH OH, we hit the block limit! Well, that’s okay because we can just broadcast a message on a channel and continue our block code over there! Let’s place down another trigger, and make it trigger when receiving on “Left”.

  1. Place down these blocks in the next trigger:

  1. GO all the way back to the game overlay and add this to the blocks:

…And you’re done! This system has kind of a rough texture, which has not really what I was hoping for, but I guess I just suck at cooking.


Author’s Note

And there you have it! The first Cooking with Wired.

How should I say this? I am so incredibly sorry for how this turned out. By the end of the guide, finishing it was just… a chore. Not fun at all.

Hopefully in my future recipes I can uh… do better. But I first need feedback from you! Feel free to be as mean as possible as long as you provide constructive criticism. Just kidding. Kind of.

Oh yeah here’s it all:


Merry Christmas Eve y’all, and don’t stop cooking :D

Signing off now. Seeya next time!

25 Likes

OH YEAH addressing some stuff.

  1. How should I prevent players from spamming the button?

Make it so that there’s a global cooldown of 15 - 25 seconds and that each player has a maximum press of 2 - 3 times.

  1. How should I let two players do a location at the same time (for example, implementing this into a team battle royale)?

More properties. The system should be easier to expand.

  1. Is there an easier way to do the direction detection?

I don’t think so. I experimented a lot with like direction angles but all the inverse trig functions are -90 to 90 degrees so that kinda sucked.

  1. There’s way too much yapping in this guide and I know how to do most of it anyways. Can you cut some of it out?

I might make an abridged version with no pictures or explanations and post it/edit it in later.

  1. I can improve some of the stuff in this guide.

Please tell it to me.

  1. Does this work in both top-down and platforming?

It should.

11 Likes

this guide is awesome! 11/10 chefs kiss

2 Likes

Hey, no swearing. Even if you don’t say it, you’re saying a different version of it to bypass the word filter.


Nice guide! I think these waypoints are “cooked” :skull:

3 Likes

Cooking with wired is crazy.
Jokes aside, awesome guide!
Although wouldn’t this be a disadvantage for the player that presses the overlay?

1 Like

Dude, this is legendary. Making it like cook book themed is genius :cook: :cook: :cook: :cook: :cook:

Well if you think about is a button that reveals your name and exact location maybe

But if you’re stacked in the game or if the system is altered so that ur location is only broadcasted to like your team then it could be useful

1 Like

Delicious Guide 10/10 :cook: :star:

1 Like

BUMPITY BUMP BUMP BUMP GOES THE BUMPLE BEE great guide!

Impressive guide!
I love math

And COWS

5 Likes

This is very impressive. Good job!

ya don’t need to know


Yay! Whenever I lose my yummy tractors, I can find them using this Psuedo Waypoint. Ps, there is a pseudo tag, so I added it.

3 Likes

This is very helpful because the distance can actually be stored in a property.

1 Like

Bump

Bump

thought this was a cooking guide
:skull:

1 Like

Can a leader make this a wiki plz kthx

Done! I’ll remove the wiki when all the photo’s are added back.

Nice Guide Wired!

Something you might wanna add is a explanation on how it works

Hit 'em with dat reusable bump


Hey y’all Bird here but like, let’s have comments for any questions or necessary on topic replies, not just “ooh this is great” because while it really is an awesome guide, there’s a reason you can give likes. Use them and stop clutter and off-topic-ness.

Turtle here this time. This has been bumped like six times today. If those six bumps were seperate posts, they’d probably be taken down. Please don’t bump something incredibly frequently- let other topics make their way to the top.

o7 drawfine wired. You will be missed dearly.

o7 reusable bump
Closing wiki

22 Likes