DarkShroom's Forum Posts

  • Hi

    Please forgive my first post being a problem but honestly I'll really appreciate anyone who could help...

    The issue I have that is driving me mad is I can run my game fine from within construct.

    When I export my game however, it throws an error that it cannot find "random.py", if I find a random.py from somewhere off the internet, it trys the file and doesn't like it. I assume really it should be after random.pyc (the complied bytecode version I'm pretty sure it should be using) but it is not

    Here's some example code that should reproduce the issue:

    import random

    random.seed(1)

    y = random.randint(0,99)

    Text.SetText(y)

    Here's an example cap:

    dl.dropbox.com/u/3998493/BugTest.cap

    It's very fundamental to my game as I am deliberately using random seed to create predictable but "random" patterns.

    If anyone can help it'd be most appreciated, I am new to Python and so far it's very impressive but I am now worried all this work and I can't share my game <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads