Nevermind, but thanks for the reply. It was the fault of the open source radeon driver. Now it work well!
On Apr 16, 5:37 am, claudio canepa <[email protected]> wrote: > On Fri, Apr 15, 2011 at 10:40 PM, Enerccio <[email protected]> wrote: > > Hello. > > I have trouble with cocos. > > I am unable to get the sprite to show on the screen at all. > > The director will run, it will show empty screen, then even transition > > seems to be working (I get the pause for the duration), yet the screen > > is black (with only FPS updating). > > > Here is my code, did I miss anything with the layer?? > > >http://paste.pound-python.org/show/5272/ > > Is hard to tell without a runable sample, I dont see how you are > initializing the cocos director, or launching the first scene, or how you > instantiate your custom scene. If you can provide a runnable sample it would > help heaps to diagnose. > > Also, how you launched your app ? from an operating system console, typing > something like > $python script_name.py > ? > > Any traceback message in the console ? > > Seems that the flow will go to the line > raw_input() > > that is for console input, which generally dont mix well with windowed > aplications. > What happens if you remove that ? > > Also I noticed you dont specify z when adding the background and the sprite > to the scene. What if you specify z=0 for background and z=1 for sprite ? > > > I also tried just this in the python idle: > >http://paste.pound-python.org/show/5273/ > > > Which didnt work too. > > Interactive interpreters are tricky to interact with other windowed > applications, generally a fight between the repective events loop breaks > all. > > If you want some interactive exploration for cocos, you can try the built in > InterpreterLayer: > start a script, give ctrl+i , this brings up a translucid layer with a > working interpreter. > you could explore: > > >>>director > > < cocos.director.Director object at ....> #this is the current director > instance > > so>>>director.scene > > will bring the current scene, from there you can explore at will > > -- > claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
