The coordinate device- a replacement for the zone?

Exactly. As you can see in the video, I had trouble getting “less than” and “greater then” in the right spots lol.

The circular zone could potentially be made with block code:
if (|x{player}-x{zone}|+|y{player}-y{zone}| < zoneRadius)
| playerInZone = true

2 Likes

There are a lot of devices popping up…

hmmmmmmmmmmm…
:face_with_monocle:

What is the math? I can’t read it lol

1 Like

Block code makes it more expensive than a regular zone -_-

But that gives me an idea.

2 Likes

No, that makes a diamond. You need powers of two if you want a circle.

5 Likes

It’s adding the absolute values of the differences between the player’s coordinates and the zone’s center and seeing if it’s less than the zone’s radius.
Edit: @Gimkitsuggestor Done.

3 Likes

Should we add Research to this?

1 Like

So the problem that I have is I need to use a counter for true/false. I can only set one cap to it, so it goes +1 or -1 every time you move, with no limit.

I can’t do true/false without block code.

1 Like

If you want to detect when the player first enters the zone, you need to have two properties: one for if the player is currently in the zone, and one for if the player was in the zone a certain time ago. If the properties both aren’t true/false, the player is likely entering/exiting the zone depending on which property is true.

2 Likes

This is technically more memory efficient, but only if you have a lot of zones you need to define in your map. The not so efficient part is having to put 3,520 memory before hand to define the coordinate system. It saves 265 memory per zone, so therefore we can determine that if you have more than 13 zones in your map, this could save memory. Other than that however, this is really not viable for memory. I enjoy this concept however, and would like to see more. Some disadvantages include not being able to do all of the functions, including not being able to change if items are allowed to be dropped, nor is it able to change if the in game w3apons are allowed to be shot.

1 Like

It’s just for detecting if you’re in a zone. I know I can’t replace all the zone settings.

Also I already mentioned this. It would only work if you’re already using it for something else.

2 Likes

Bump!

I’m stuck. I have no idea how to stop the notifications from spawning after one goes, then when you leave, you reset.

image
No Siri, my question is not answered.

5 Likes

i think if you mark down the cords of the place you want for a zone on block code if players y and x positions equal the same as where you would place the zone then activate what you want or the if then block:

IF playes y and x pos = (485,375)/whatever your zone was gonna be placed) then activate that…the topic is cordinate device or whateve please :slightly_smiling_face: THX!

-@G-Code549 .

2 Likes

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.

well, i made a device on the same thing. but i did not realise the slim already made one.

great job slim!
great minds think alike

2 Likes

I back!
and

did this work it should

4 Likes

okay well no It can’t but if we can store the x and y pos number value then maybe

2 Likes


cause i’m bored bump and dose this help @Slim ? (sorry for the ping)hey I see you come on reply

3 Likes