Apocalypse pls help (solved)

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)

1 Like

Only 9 lines shorter :slightly_smiling_face:

1 Like

btw pi is usually rounded to 3.1415 or simply 3.14

Wow, so long!! :scream_cat: :scream_cat: :scream_cat:
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

:slightly_smiling_face:

Come on guys, really, we are getting off-topic.
Actually there are 3 ways how to escape from missile:

  1. You escape differently every time, a combination of vectors (2 lines)
  2. You escape back from the targetPos (1 long line)
  3. 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 :sob: