Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nbermudez

Pages: [1]
1
Python / Command Prompt raises when I run my game
« on: January 30, 2013, 01:38:21 am »
Greetings!
I've been creating a game using python 2.7 + PySFML 1.6 for my first time.
I don't know if I'm doing something wrong but when I run my main script the game renderWindow raises as spected but so does it a command prompt (readonly).
At some point I want to distribute this little game and I don't want that prompt to pop up! Any way to do that?

I use IDLE for Windows to write my python code.

Thanks in advance for your help!

2
Python / LoadFromFile crashes without error.
« on: January 28, 2013, 10:28:29 pm »
Greetings!

I'm working on a game using PySFML, I'm trying to change the font of a sf.String variable but python.exe stops working without an error message.
Here is what I've written:

font = sf.Font()
font.LoadFromFile('my_downloaded_font.ttf', 50)
self.welcomemsg = sf.String("Welcome, "+self.lastplayer, font)

Thanks for any help.

UPDATE: I almost forget it, I'm using IDLE (python 2.7), Windows 7 and PySFML 1.6

UPDATE: Everything's OK when I do this:

 
font = sf.Font()
font = sf.Font.GetDefaultFont()
#font.LoadFromFile('my_downloaded_font.ttf', 50)
self.welcomemsg = sf.String("Welcome, "+self.lastplayer, font)

Pages: [1]
anything