problems
Monkey Forums/Monkey Beginners/problems
| ||
| Hi There if i make a basic print "hello world", it only gets shown halfway down the page 2. This doesnt show anything! : Import mojo Class Mygame Extends App Method OnRender() SetColor 111,1,44 DrawCircle 1,1,55 End End Function Main() New Mygame() End |
| ||
| I'm on smartphone but I'm sure you missed to setup onCreate method. Check the examples to see how a program is structured. |
| ||
| Works fine here on HTML5... what version of MonkeyX are you using? |
| ||
On older Monkey X versions, you need to set the update rate on OnCreate.Import mojo
Class Mygame Extends App
Method OnCreate()
SetUpdateRate(60);
End
Method OnRender()
SetColor 111,1,44
DrawCircle 1,1,55
End
End
Function Main()
New Mygame()
End |
| ||
| the 2nd example displays when i switch context back to MonkeyX IDE |
| ||
| thanks ziggy, it works! BUT i downloaded latest version M-X today? |
| ||
| Where from? Was it the free version? The free version is always a bit older than the commercial one. |
| ||
| Free version.. |