I suggest you create two new commands:
draw.image(image, x, y, sizeX and sizeY)
draw.text($text, x, y)
or show me analogues of these commands




function onInit( objID )
   sky.lprint("LUA: UI Script: Initialized");
   ui.newLayer("ui")
   ui.setLayer("ui")
   ui.newText("myLable1",400,400);
   ui.setColor("myLable1",0,0.9,1)
   ui.text("myLable1","Score : 0")
end
function onStop()
   -- this is needed to remove the text when you go back to editor mode(pressing Stop)
   ui.deleteLayer("ui");
end






















Users browsing this forum: No registered users and 13 guests