Trials- Not sure how to move from Oasis to Oasis

Copied code below. Defeat the enemies and pick up mushrooms at first oasis easy enough but not sure how to get my character to progress to next couple of oasis’s. Any help is appreciated.

loop:

enemies = self.findEnemies()
enemy = self.findNearest(enemies)
if enemy:
    if self.isReady("bash"):
        self.bash(enemy)
        self.attack(enemy)
        self.attack(enemy)
        
    if self.isReady("power-up"):
        self.powerUp()
        self.attack(enemy)
        self.attack(enemy)
    else:
        self.attack(enemy)
        self.attack(enemy)
if not enemy:
    mushrooms = self.findItems()
    mushroom = self.findNearest(mushrooms)
    if mushroom:
        mx = mushroom.pos.x 
        my = mushroom.pos.y 
        self.moveXY(mx, my)

You have to tell your hero where to go (coords to walk to) either by means of coding or <shudder>flags</shudder>. (For this level flags may be the best way but you never heard me say that.) :blush:

Flags are the easiest way to control where your character moves in larger levels. It’s less elegant and you have to control manually though.
For me, that level in particular required the heaviest use of flags out of all the levels.