R0J0hound's Forum Posts

  • Luomu, that will work no problem. Also you can eliminate the "objref" variable and do it directly:

    System.Create('Sprite', 1, 0, 0)
    SOL.Sprite.x =300[/code:32mlmfm3]
  • After all the Sprite objects are destroyed python will give an error because there is no object to access.

    Change the code to check if there are objects to access:

    if len(Sprite) > 0:
       if Sprite.Value('av')<= 995:
          Sprite.SetValue('av',Sprite.Value('av')+5)[/code:pgglqjf1]
  • With the the latest version of Construct(0.99.93) you can reference a newly created object in python like so:

    System.Create('Sprite',1,0,0)
    objRef=SOL.Sprite  #this gets the reference of the new Sprite. 
    
    objRef.x=400
    objRef.y=300
    objRef.angle=30
    objRef.skewy=20[/code:27wv8267]
  • For the cursor moving to the front of the number it can be corrected with this sequence of actions:

    -> EditBox: Focus on

    -> EditBox: Select all

    -> EditBox: Cut

    -> EditBox: Paste

    It will put the cursor at the end, kind of hacky but it works.

  • [quote:2d70v5k4]The ability for people to be able to use VS Express with it.

    You can currently use VS Express and build all the plugins and the runtime with some minimal tweaks.

  • It should work, what are the bugs?

  • When you export to a exe all the files in the "files" folder are embedded into the exe. The files are then accessible from the play from resource actions of xaudio2 or by using the resource plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's because of how python reads strings. The character combinations "\t" and "\a" are converted to some special character. This paths are messed up because of this when those combinations are in the path.

    So instead of this correct path:

    C:\Documents and Settings\alee\Local Settings\Temp\capA4.tmp\PythonLibs.zip

    python reads it as this incorrect path (the "\a" is replaced by a non visible character):

    C:\Documents and Settingslee\Local Settings\Temp\capA4.tmp\PythonLibs.zip

  • Yea it should be in the next release.

  • It's a Construct issue. That would explain why it's not working for alee either since "\a" is also translated into a single character. I found the problem and the fix in "Runtime\system.cpp" line 5040, the line was commented out.

  • Construct's Programs are not written in a programming language. Currently you'd have to manually rewrite your program in C++ or some other language to be able to make it into a mobile phone app.

  • Does this file exist?: "C:\Program Files\Scirra\Construct\Data\Python\StringIO.pyc"

    If it doesn't, your exported exe will complain about no StringIO.pyc.

    The python module search paths are in the list "sys.path".

    I added an editbox and ran this script at the start of the layout:

    for x in sys.path:
    	EditBox.AppendText(x + '\n')[/code:2yv3ty5w]
    
    I ran that on one of my computers without python installed and a standard install of construct 0.99.92.
    
    When I previewed the module search paths were:
    [code:2yv3ty5w]C:\Documents and Settings\User\Application Data\Scirra\python26.zip
    .\DLLs
    .\lib
    .\lib\plat-win
    .\lib\lib-tk
    C:\Documents and Settings\User\Application Data\Scirra
    C:\Program Files\Scirra\Construct\Data\PythonC:\Program Files\Scirra\Construct\Data\Python.zip[/code:2yv3ty5w]
    
    and when I exported to the "C:\tmp" directory these were the module search paths:
    [code:2yv3ty5w]C:\tmp\python26.zip
    .\DLLs
    .\lib
    .\lib\plat-win
    .\lib\lib-tk
    C:\tmp
    C:\Documents and Settings\User\Local Settings\Temp\capA4.tmp\PythonC:\Documents and Settings\User\Local Settings\Temp\capA4.tmp\PythonLibs.zip
    [/code:2yv3ty5w]
    
    that PythonLibs.zip contains all the exported pyc files.
  • While you can add Attributes at runtime, removing them does not work. If you are using Platform movement setting to the collision mask to none would be the only option. Unless you maually make a platform movement with custom movement, then you'd have more control over collisions.

  • The file opens for me. This looks pretty cool, will try it later.

  • Hi velosotiago, welcome to the forums. First off this doesn't belong in "Your Creations", you usually will get a faster response if you post questions like this in "Help and Support". Secondly what you described is easily done.

    Here's an example made in 0.99.91:

    http://dl.dropbox.com/u/5426011/examples/iniview.cap