Have you figured out how to calculate the time?
Not yet i cant figure out how fast the enemy player moves
You just need to use hero.opponent.speed. And they move at a rate of 5. I think.
Also, remember, (I spectated a loss to you), don’t try to hit the opponent where they are, fire it at where they are headed.
Ok!! so like if they are moving right aim ahead of them
That is why time and speed are crucial.
How can i calculate there movements if they move right then they turn down as soon as i throw you cant right
For instance, if the opponent is moving right, then this is how you find where they will be. All you need is a special loop for time.
TargetX = enemy.x + (enemy.speed*shockThrowtime)
TargetY = enemy.y
I haven’t figured that out yet. Unholy has. I would think that you would just keep the boundaries in mind.
do i move the if into a def?
def throwthings():
if ((shockThrowtime - dis/15)**2)**0.5 <= 0.5:
hero.ability("shockThrow", TargetX, TargetY)
but then it would just become another turtle that can place down solar panels. I have an idea that maybe crabs could collect batteries
Until it got hit or destroyed. It could be used as a crazy advantage.
Or it would have a x second duration, then it explodes
What he gave you is only part of it. In fact, this section is not particularly important. It is mainly about calculation. Moreover, this section is my and his special calculation method and is not suitable for your use.
I got a pretty good attack code but i rlly dont know how my movement can inprove
i wish the game prioritized on collecting the items.
I have a great way to collect them and do whatever else I need to.
I can’t decide if you are a fake rage quitting or not??
Do you go offensive or prioritize on making solar panels?