I have have same issue as chmava, this is the code im using
void DebugConsole::setup()
{
//Debug textr
dc_textID = agk::CreateText("Debug console");
agk::FixTextToScreen(dc_textID, 1);
agk::SetTextSize(dc_textID, 16);
//Creating an editbox
dc_editID = agk::CreateEditBox();
agk::FixEditBoxToScreen(dc_editID, 1);
agk::SetEditBoxPosition(dc_editID, 0, 250);
agk::SetEditBoxSize(dc_editID, agk::GetVirtualWidth(), 20.0f);
agk::SetEditBoxBorderColor(dc_editID, 150, 150, 150, 150);
agk::SetEditBoxBackgroundColor(dc_editID, 150, 150, 150, 150);
//Creating the background sprite
dc_bgSID = agk::CloneSprite(1);
agk::FixSpriteToScreen(dc_bgSID, 1);
agk::SetSpriteScale(dc_bgSID, agk::GetVirtualWidth(), 270.0f);
agk::SetSpriteColor(dc_bgSID, 150, 150, 150, 100);
agk::SetSpriteVisible(dc_bgSID, 0);
//Adding a message to the output
addToLog("Debug console");
setVisible(0);
}
Say ONE stupid thing and it ends up as a forum signature forever. - Neuro Fuzzy