DtrQ's Forum Posts

  • 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

  • As regards canvas, are you using 'grab layout' option?

  • FormatDecimal(number, N)

    Returns a string with number given to N decimal places, eg. FormatDecimal(5.7777, 2) gives 5.78

    -Construct wiki

    Dont' forget to convert string back to float!

  • What about just using zoom (without res\layout size changing), for both window and fullscreen?

    I've used this in my last game which was with lo-res graphics and didn't mentioned any issues

  • Well, save\load is realy buggy, but objects don't save their UID even if you're re-entering layout, so it's not save\load's fault this time, I think

  • (btw, something wrong with this topic: when I click on "new posts" it always open first page)

  • I'm tying to load objects and its values aka properties but I need help

    for group in mapfile.getElementsByTagName ('objectgroup'):
          for obj in group.getElementsByTagName('object'):
               objName=str(obj.attributes['name'].value)
               objX = int(obj.attributes['x'].value)
               objY = int(obj.attributes['y'].value)
               System.Create (objName, 'obj', objX, objY )
               newobj = eval('SOL.'+objName)
    
    #thats all works, problem is here:
    
               newobj.SetValue ('target', int(obj.properties.attributes['target'].value))
    

    ('target' is object's test var\property in Tiled)

    Actualy, this last line is random, I have no idea what to do

  • Personally, I always pronounce it as 'Sseerah', but here in Russia most people says (and writes in Russian transcription) as 'Skeerah' or even often 'Stseerah' (because of Latin 'C' usualy used as "?"-'Ts' in Russian )

  • <font size="3">SPOILER:</font>

    <font color=white>What, did they died in the end or something? I've noticed, soldier from rescue team is singing Wagner's The flight of Valkyries (if I'm correct), same as in opening scene, where they was attacked by monsters, so opening is what happened after the end . After re-watching this scene I'm sure I saw dead or injured Sam on the road...</font>

    /SPOILER