Detecting player direction

so this is really simple 4 direction detection but if you want the angle the player is heading in too then that’ll be a different story i’ll include later

moving on

guide

first step place down a player coordinates device
and 4 player scoped number properties (configure to your needs if needed)


and set the coordinate device to update the normal ones (the “d” means they’re delayed) and broadcast on “delayed coordinates” leading us to a 0.25 delay trigger that trigger on that channel (configure to no collision/not visible as needed) with a block setting the delayed props to the current props

then place a text game overlay (playerscope if needed) with this block
triggering on “delayed coordinates”
but do not get confused as this gameoverlay will update normally everytime the players’ coordinates change

full system should look like this so don’t go accidentally building a whole ah castle thinking you missed a piece :p

and before you ask “what is the use of this guide?”
it is mainly for pseudo items with collision or atleast a piece of what’s needed to be able to make the physics of it (so it can tell which direction to go in once the player tries to push it or something) as for the angles for more accurate collision i’ll figure it out later as mentioned (if I get angles figured out pseudo gadgets might be possible with a bit of keybinding and distance formula’s for the hitbox)

16 Likes

i’d say this is a good guide!

4 Likes

With this we could make psuedo hitboxes but if you think about it, we could make custom keybinds. Imagine moving up but you go left, or moving left but you move down or something

2 Likes

bump!

2 Likes

Bump!

1 Like

Bump the bump.

reusable bump
please wait at least 2 days before checking the box

3 Likes

What does bump mean?

bumping is when you say something on a post to bring relevance back to it
like if nobodies seeing a cool guide then you can put a comment saying bump on it so its back in topics in ‘latest’

bump

2 Likes

Bump Bump Bump Bump Bump
Come on.

This system detects the direction the player is going, not the direction Thier gim is facing right?

:neutral_face:
they are the same thing.
not spam.

Well, not necessarily because if there’s knockback, the player could be moved in One Direction while pressing the keys to be facing in the opposite direction. Ohh wait. You’re right through the same thing. where you want to move doesn’t change the direction of the gim :frowning:

he gets it lmao
see my point?

How exactly does the gim face upwards or downwards? It detects the direction they are going, not what way the gim is facing.

you didn’t wait long enough to bump

it’s typically 7 days

Knockback isnt taken into account with this guide (so not entirely sure what’ll happen then cuz i barely remember how i made this but more how it works math wise) also it defaults to the last (4 cardinal) direction the player was heading in when standing still but if i remember this guide is a tad bit buggy and didnt fit well with most of my pseudo stuff my more updated and advanced stuff (still bugged with hit scope detection btw) is the stuff with the desmos links in em either way glad my old guide helps lemme know if any elaboration is needed for the rather new peeps :P