Array problem
Posted: Sun Dec 30, 2018 9:46 pm
[youtube]https://www.youtube.com/watch?v=-RLx19QX2LI[/youtube]
Does anyone know how to fix this issue?
Does anyone know how to fix this issue?
Code: Select all
if Slider[3].stop ~= 1 then
for k,v in ipairs(Slider[3]) do
if v.y > -500 and v.y < 10 and spinTimer <= Slider[3].spinTime then
Slider[3].lastID = k
end
if Slider[3][Slider[3].lastID].y <= 300-GameSpeed then
v.y = v.y + GameSpeed
elseif spinTimer >= Slider[3].spinTime then
Slider[3].stop = 1
love.audio.stop(sounds[11])
love.audio.play(sounds[11])
if Slider[3].multiplaySymbol == 1 then
love.audio.stop(sounds[17])
love.audio.play(sounds[17])
end
end
if v.y > 638 then
v.y = v.y - GameSizeY*5
v.item = getRandom(3)
end
end