DtrQ's Recent Forum Activity

  • As I remember, 1 px per second equal to 100*timedelta, so 10 px should be 1000*timedelta

  • And using Python scripts makes it easer too (If you know Python)

  • Oh, fantastic! I knew there's must be something like that, but it is not documented.

    I'm curious, how many hidden features still exists in Construct

  • Not realy. Only way I found is add Text object, set Text.text to {array} (simple str() and applying Global Var to convrt array to string doesn't work) and use 'get token count' on it. Don't know why it works only with text object.

    Maybe someone knows better solution

  • {<array>}@<index> 

    return element #<index>, i.e., in your case

    {"directory1","directory2","directory3"}@2

    will give you string "directory2"

  • There's a lack of detailed information on their site. What's its features?

  • Is it safe to use it for pixelscalling? Is there any chances that it will work incorrect on some PCs, showing blank\black or distorted screen?

    It's looks like it's best method for pixel art games, since it does: 1) snapping sprites position to actual pixels (no floating positions), 2) distorting sprite's edges when rotating, 3) no pain with fullscreen

    Btw, is there any way to use similar technique with Python (DirectPython or something else)

  • First, you need Python 2.6, not 3.2; second, if you don't want use any external modules you don't need to install Python at all since Construct has basic Python libraries and Python itself out-of-box

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh thanks, it works now!

    You are Construct\Python guru, I had no chances to solve this on my own

  • OK, I just found how to deal with Timer ()

    from threading import Timer
    
    def run (input, delay):
        for i, ch in enumerate(input):
            t = Timer(delay*i, prnt, (ch))
            t.start ()
    
    def prnt (txt):
        print txt
    
    a = "abcdefg"
    run(a, 0.2)
    
    

    <typing letters with delay of 0.2>

    But, again, it works only in Python BUT doesn't work in Construct!

    In Construct (with "Text.text+= txt" instead of "print txt") it adds only first char of string.

    So, Construct doesn't support threading module? If so, how can I implement timer with Python?

  • I tried threading.Timer, but I can't figure out how to make it work inside of a loop and with function's args

    sleep() freezes only thread, this is why I'm trying to use it in separate threads, and as I said, it works in IDE and promt, but doesn't in Construct

  • Does Construct Classic supports python threading module?

    I need it to use 'time.sleep()' without freezing of application and it works great in my python IDE, but doesn't work in Construct =

    http://dl.dropbox.com/u/24325446/pyThreading.cap

DtrQ's avatar

DtrQ

Member since 1 Aug, 2010

None one is following DtrQ yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies