I'm using the quby language and I'm having trouble with the collison detection


#1

fill(:black)

a = 100
b = 100
c = 100
D = 100
x = 50
y = 50
oneachframe()do
fill(:black)

if getControls().IsKeydown( :W)

a= a-15

end
if getControls().Iskeydown( :D)
b = b + 15
end
if getControls().Iskeydown(:S)
c = c + 15
end
if getControls().IskeyDown(:A)
d = d - 15
end

Illumnati = new image('Illumanti.jpg')
Drawimage(Illumnati, b + d + 100, c + a + 75, 15)
if isRectoverlap(200,200,100,50, x, y, 43, 46, false)
if x + 41
right - 0
end
if x + 4 - 300
left - 0
end
if y + 42 - 200
down - 0
end
if y + 4 - 250
up - 0
end