How to detect the lowest number?

Why does the enemy need the globals of the other enemies??

Heres the link btw: Flowlab Game Creator - Dead Cells remake

No those globals are the players

Why are they called Enemy X???

The reason why they are called Enemy X is because they are FOR the enemy

That is terrible naming, just name it Player 1 X, Player 2 X, etc.

The globals aren’t needed. You want to face the closest player via X, and the Proximity is giving you that

Sorry I didn’t think of that plus Player X was already taken from the camera

OOOOOOHHHH now I get it

1 Like

Thanks so much!!!

1 Like

Actually, you’re moving towards the closest player, but want to stop when in the proximity of the player so proximity doesn’t work for the filiter

What?

Well I mean it works, but it’s not as effective because you still have to use other proximities

I see nothing wrong

I’ll send over a screenshot in a second

Flowlab Game Creator - Dead Cells remake Heres the link btw


(Note says “Player X, Y”, but it’s just the X)

Can you copy what you typed in the expression and paste it here

Also why can’t I just use the way you gave me before

@CodeAlpaca?

Sorry, had to go do something for a while. You can use it the original way, this is just more effective.
Inside the expression is “Math.Floor(A, B, C)”