Got a question >>>> How do you get 3 champions in one lane?
xy coordinates, then normal attack enemy code
Yes, just remember that when you are coding you are always on the left side, but when the code is actually fighting you can be on either side.
I mean, would it be Ok go give an example of the code for this?
oh shoot I totally messed my code up by not thinking about that.arggg.
@thebagel at this moment in time I do not have reliable code to show you.
K, it’s fine. Thanks for trying tho
My code is a bit more complex, but one easy way could be to put something like this in your champions’ function before the while loop (this is in Python):
# Move to centre lane from other lanes.
if lane!=1:
# Red starts from the left. Blue from the right.
if hero.color=="red":
champion.moveXY(12, 40)
else:
champion.moveXY(88, 40)
I haven’t tried this exact code, but I had something similar previously.
I tried to play on my phone, but its so hard
How do you summon champions?
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
You just set the champion type
Oh sorry I meant how to make the champion attack the enemy
Oh. I’m not really sure, sorry. You might wanna ask @Deadpool198
i dont know how to start the infinite inferno
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
You can use this link:
Hello I am back. I am going back into coding.
Velcome back, @milton.jinich!
Yay! Are you back for real?
hope so.
I will try to get on here as much as I can.