[SOLVED]Need Help on drop the flag

uhhhh i need help on drop the flag

have you attempted it yet?


well I am sorry but you have to try to do the level first
we cant just give out solutions…

1 Like


ill try

Like @Falcons118 said, attempt the level first. Even then if you cannot complete this level, we can help you if you post your code.

1 Like

we cant give solutions (especially if you havent attempted the level)
but we can help you

1 Like

ok i ran out of time

;~; :frowning: :frowning:

are you building fire-traps?

well im suppost to

you should do this

        hero.buildXY("fire-trap", flag.pos.x, flag.pos.y)
//and now pick up the flag
# Collect all the coins in each meadow.
# Use flags to move between meadows.
# Press Submit when you are ready to place flags.

while True:
    flag = hero.findNearestFlag
    if flag:
        # `pass` is a placeholder, it has no effect.
        # Pick up the flag.
        # Automatically move to the nearest item you see.
        item = hero.findNearestItem()
        if item:
            position = item.pos
            x = position.x
            y = position.y
            hero.moveXY(x, y)
    hero.buildXY("fire-trap", 30, 16)
    hero.buildXY("fire-trap", 30, 31)
    hero.buildXY("fire-trap", 30, 45)

you are not doing it right read what I posted up above

place the flags on one of the three X’s where the ogre is coming
you should build the fire-traps at the flags position and then pick up the flag
then go back to collecting coins

Underneath this line you should build a fire trap at flag.pos.x and flag.pos.y

didnt work

delete these…

1 Like

i did

do this now…