CodeCombat Blog http://sett.com/codecombat multiplayer programming en-us Sun, 19 Jan 2020 02:11:35 +0000 http://sett.com Sett RSS Generator drop the flag http://sett.com/codecombat/community/1154635 Hey guys,

I have a problem with this level.

My code is:

# Put flags where you want to build traps.

# When you're not building traps, pick up coins!

loop:

flag = self.findFlag()

if flag:

# How do we get fx and fy from the flag's pos?

# (Look below at how to get x and y from items.)

fPos = flag.pos

fx = fPos.x

fy = fPos.y

self.buildXY("fire-trap", fx, fy)

self.pickUpFlag(flag)

else:

item = self.findNearestItem()

if item:

itemPos = item.pos

itemX = itemPos.x

itemY = itemPos.y

self.moveXY(itemX, itemY)

When i put a flag my hero stays in one place and doesn't move. see below

what is wrong with this code? i can't figure it out.

10x

>> Comment on this Post · Like this Post

]]>
Thu, 12 Mar 2015 12:09:16 +0000 http://sett.com/codecombat/community/1154635
Absolutely love it! http://sett.com/codecombat/community/105566 Hey Guys and Girls! You've created an awesome and innovative Game! Finished the first part and will play every freakin part that will come next! It's just way too fun! :) Keep up the good work and keep them Ogres coming, I've got plenty of Spells left over for them :P Greetings from Germany!

>> Comment on this Post · Like this Post

]]>
Mon, 20 Jan 2014 01:00:15 +0000 http://sett.com/codecombat/community/105566
i just started playing and it's alot of fun http://sett.com/codecombat/community/1056839 Start writing your reply here...

>> Comment on this Post · Like this Post

]]>
Wed, 10 Dec 2014 03:39:35 +0000 http://sett.com/codecombat/community/1056839
Help! http://sett.com/codecombat/community/89773 It just says..building world... and nothing happens, am i missing something?

>> Comment on this Post · Like this Post

]]>
Thu, 19 Dec 2013 21:54:54 +0000 http://sett.com/codecombat/community/89773
Need help trying to complete the level Munchkin-Swarm http://sett.com/codecombat/community/1100455 As the title states, Munchkin swarm is killing me, can anyone help?

I am happy to post my solution to show you what's going on.

enemy = self.findNearestEnemy()

loop:

if self.distanceTo(enemy) < 10 and self.isReady("cleave"):

self.cleave(enemy)

else:

self.attack("Chest")

>> Comment on this Post · Like this Post

]]>
Sat, 03 Jan 2015 06:44:48 +0000 http://sett.com/codecombat/community/1100455
How do you get past level one, I am finding it difficult after all of my fingers got chopped off by my Teacher http://sett.com/codecombat/community/1175373 Start writing your reply here...

>> Comment on this Post · Like this Post

]]>
Wed, 22 Apr 2015 11:52:54 +0000 http://sett.com/codecombat/community/1175373
It doesn't work O.O http://sett.com/codecombat/community/89188 I can't seem to load codecombat.com o.O Every time i try too go to that link, it just displays this weird grey screen (of death) and nothing really happens.

>> Comment on this Post · Like this Post

]]>
Tue, 17 Dec 2013 04:49:51 +0000 http://sett.com/codecombat/community/89188
HALP!: The Argrippa Defense! http://sett.com/codecombat/community/1189589 SO My Code is this

loop:

enemy = self.findNearestEnemy()

if enemy:

pass # Replace this with your own code.

enemy = self.findNearestEnemy()

distance = self.distanceTo(enemy)

if distance < 5:

self.attack(enemy)

if self.isReady("cleave"):

self.shield(self.cleave(enemy))

and it takes care of the first two waves but then no matter what I try I always get killed by the 3rd wave. can anyone point me in the right direction with this particular problem?

>> Comment on this Post · Like this Post

]]>
Tue, 12 May 2015 15:06:54 +0000 http://sett.com/codecombat/community/1189589