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
There are a lot of devices popping up…
hmmmmmmmmmmm…
What is the math? I can’t read it lol
Block code makes it more expensive than a regular zone -_-
But that gives me an idea.
No, that makes a diamond. You need powers of two if you want a circle.
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.
Should we add Research to this?
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.
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.
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.
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.
Bump!
I’m stuck. I have no idea how to stop the notifications from spawning after one goes, then when you leave, you reset.
No Siri, my question is not answered.
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 THX!
-@G-Code549 .
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
I back!
and
did this work it should
okay well no It can’t but if we can store the x and y pos number value then maybe