Yes, sorry, was just trying to discover new strategies in Apocalypse.
You can use Vectors away from missiles
a strat is to use the new wristwatch’s abbility, timewarp or whatever idk havnt gotten on cc in like 1 year
Well , I don’t know how to do it @PeterPalov, and @riticmaster908 I don’t know if that works , becuase the artilleries attack the red-marks
I don’t have enough gems to buy it.
It’s also a combination of Vectors, or you can use math (play with your x and y)
Um…
well, you know, that every time you submit it would change the red-mark, it is random
Yes, so use vectors from missile.targetPos
smthn like this ig
cannonBall=hero.findNearest(hero.findByType(#whatever the cannon ball's type is))
#missile dodge code here
I realy don’t wher is that @PeterPalov
What is the cannon ball’s type ?
So, here is the missile type:
missiles = hero.findEnemyMissiles()
for missile in missiles:
if missile.type == "shell" and hero.distanceTo(missile.targetPos) <=15:
#ESCAPE
what peter is saying is to use a
Math. function
such as Math.PI=3.1415926535 8979323846
(sorry, that was spam)
Only 9 lines shorter
btw pi is usually rounded to 3.1415 or simply 3.14
Wow, so long!!
I’ve learned before
Math nerd moment: Pi is used to find the area and circumference of a circle
missiles = hero.findEnemyMissiles()
for missile in missiles:
if missile.type == "shell" and hero.distanceTo(missile.targetPos) <=15:
#hero.moveXY(?,?) or what
Come on guys, really, we are getting off-topic.
Actually there are 3 ways how to escape from missile:
- You escape differently every time, a combination of vectors (2 lines)
- You escape back from the targetPos (1 long line)
- It escapes perpendicular the targetPos (24 lines)
No, moveXY is a direct move. You don’t do anything while moving there. In advanced levels, forget about it.
Use move
well, I’m just a forth grade student, these things are to hard to me