Code:
function placeThing()
_, but, x, y = os.pullEvent("mouse_click") ;
paintutils.drawPixel( x, y, colornum)
end
print("levelname(type open to open 1 nvm)") ;
levelname = read()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
function choices()
term.clear()
term.setCursorPos(1,17)
print("--------------------------------------------------") ;
print("list: 1colorChange, 2place, 3makeNonSolid, 4exit")
print("5makeMonster, 6doWhenPosRight, 7PosRightButten")
choice = read()
if choice == "1" then
term.setCursorPos(1,17)
term.write("colornum: ") ;
colornum = read()
colornum = tonumber(colornum)
term.clear()
term.setCursorPos(1,17)
choices()
elseif choice == "2" then
placeThing()
choices()
end
end
choices()
Inputs:first: 1(top of prog)
second: 1(in the choices() function)
Third: 7(The result of putting 1 in the choices function, also in the function)
Forth: 2(Choices again)
5th: Clicked somehere on the screen(first function in the code)
RESULT ScreenShoot(I'm using CCemu)
(I termitated the app after I got it, but the part cuttoff was blue and the black spot was too.)