The Level Is Bugged Out


#1

Well I had the code for completing the game, no err of codes and I run it, (dancing forest fires, i have it on the spanish version because is my native language) and then, the 1st fire ball, ok, 2nd, ok and the 3rd one, from left, right and middle like 10 at the same time.
please help me.<img <img


#2

Could you post your code?


#3

while true do
while true do
local evilstone = self:findNearestItem()
if evilstone then
local pos = evilstone.pos
if pos.x == 34 then
self:moveXY(45, 22)
end
while true do
local evilstone = self:findNearestItem()
if evilstone then
local pos = evilstone.pos
if pos.x == 46 then
self:moveXY(35, 22)
end
while true do
local evilstone = self:findNearestItem()
if not evilstone then
self:moveXY(39, 22)
end
end
end
end
end
end
end


#4

I can’t keep coding with this solved :frowning:


#5

Sorry, I didn’t get it. The problem is solved or is it here still?

Could you send me (with direct message) your email/username which you are using for CodeCombat? I’ll try to reproduce the bug.


#6

There is any other solution?
Because the basic rule of internet accounts it’s to not give any personal info of the account


#7

If you think your CodeCombat username is personal info…

Could you open dev tools in your browser and say me your sessionID for that level? I hope it’s not personal data?


#8

CodeCombat username is […], but i can’t givve you my email.
I don’t know how to open dev tools to send you my sessionID


#9

Don’t need to post it public, I asked to use direct messages. The username is enough.


#10

Ok. You are trying to stand between fireball and it switches on “automatic” fire mode. Try to move at marks:

self:moveXY(34, 22)
self:moveXY(46, 22)