Zero Sum collect coins

i wonder how turnaround summon griffins and palas so fast, i dont understand, he just go like (7, 10) or smth very far, pls help me, i wanna collect gold fast too

3 Likes

He’s using special function for best coins and best movement and direction. (not just best item)

2 Likes

Do you know how it works?

2 Likes

Or can you help me?
:cry:

2 Likes

I do know but now I’m busy to explain it (school), it takes a lot of time.

2 Likes

Thank you very much, take you time, its ok for me, but just wanna know

3 Likes

try the function from the diamond dozen level

1 Like

this?

def findOptimalCoin(coins):
    optimal = -1000
    thione = None
    for coin in coins:
        if coin.value / hero.distanceTo(coin) > optimal:
            optimal = coin.value / hero.distanceTo(coin)
            thione = coin
    return thione
2 Likes

How do you command your griffins stay behind you?

2 Likes

You command them defend your position.

1 Like

No, behind me, not defend me

2 Likes

You can command them to move to a special vector.

1 Like

how???
Tell me pls

2 Likes

It should be something like the paladin in front of you in Harrowland, but behind you.

1 Like

Well, i tried, but it didnt work do i need to send it to you?

2 Likes
toward = Vector.add(person.pos, Vector.limit(Vector.subtract(hero.pos, person.pos), 4.5))

person = griffin

2 Likes

Pls help me, it just defend me, not moving or defending behind me

2 Likes

Why do you need it to move behind you though? Defending is much more effective.

1 Like

Well, because i dont want them to die, and i have more health

2 Likes

Can you help me tho?

2 Likes