# \[SOLVED\] Help with lvl "slalom" in cloudrip

**URL:** <https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671>\
**Category:** Level Help\
**Created:** [August 27, 2020, 5:07am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671 "2020-08-27T05:07:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:07am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/1 "2020-08-27T05:07:00Z")

</div>

Help! i am stuck  
I really need help

---

<div class="post-metadata">

**Author:** ![weary](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/weary/32/15122_2.png) [@weary](https://discourse.codecombat.com/u/weary)\
**Post date:** [August 27, 2020, 5:08am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/2 "2020-08-27T05:08:42Z")

</div>

Can you pls post the code here in correct format.

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:09am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/3 "2020-08-27T05:09:43Z")

</div>

oh i just reloaded it like 10 seconds ago

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:11am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/4 "2020-08-27T05:11:08Z")

</div>

but that doesn’t matter 'cause i did basically nothing i don’t understand how to use boots of leaping

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:11am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/5 "2020-08-27T05:11:27Z")

</div>

or how all this works in this lvl

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:15am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/6 "2020-08-27T05:15:09Z")

</div>

I tried continueing the code but i move 2 the 1st gem and then stop here is my code

```python
gems = hero.findItems()

while hero.pos.x < 20:
	# move() takes objects with x and y properties, not just numbers.
	hero.move({'x': 20, 'y': 35})
    
while hero.pos.x < 25:
    # A gem's position is an object with x and y properties.
    gem0 = gems[0]
    hero.move(gem0.pos)

# While your x is less than 30,
# Use an object to move to 30, 35.
while hero.posx < 30:
    hero.move({'x': 30, 'y': 35})
    # While your x is less than 35,
    # Move to the position of gems[1].
    gem1 = gems[1]
    hero.move(gem1.pos)
# Get to the last couple of gems yourself!

```

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:18am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/7 "2020-08-27T05:18:22Z")

</div>

well i kind of fixed it but the problem is i move into another trap here is my code  
You might not see the difference but there is one, an extra line, empty but “vital”

```python
# Use object literals to walk the safe path and collect the gems.
# You cannot use moveXY() on this level! Use move() to get around.
gems = hero.findItems()

while hero.pos.x < 20:
	# move() takes objects with x and y properties, not just numbers.
	hero.move({'x': 20, 'y': 35})
    
while hero.pos.x < 25:
    # A gem's position is an object with x and y properties.
    gem0 = gems[0]
    hero.move(gem0.pos)

# While your x is less than 30,
# Use an object to move to 30, 35.
while hero.posx < 30:
    hero.move({'x': 30, 'y': 35})
    
while hero.pos.x < 35:
    # While your x is less than 35,
    # Move to the position of gems[1].
    gem1 = gems[1]
    hero.move(gem1.pos)
# Get to the last couple of gems yourself!

```

---

<div class="post-metadata">

**Author:** ![TEO](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/teo/32/23025_2.png) [@TEO](https://discourse.codecombat.com/u/TEO)\
**Post date:** [August 27, 2020, 5:20am UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/8 "2020-08-27T05:20:08Z")

</div>

ah i solved it i think i was missing the “.” in “.pos.x”

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [August 27, 2020, 5:20pm UTC](https://discourse.codecombat.com/t/solved-help-with-lvl-slalom-in-cloudrip/23671/16 "2020-08-27T17:20:12Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
