R0J0hound's Recent Forum Activity

  • No python install is necessary. No crash will occur if you use some python at least at the start of the layout to initialize python. If python isn't initialized the app will crash if ~ 700 objects are created (it's a bug). This bug shouldn't be a problem as long as some python scripts are used when scripting is enabled.

  • [quote:l5bph80r]Any idea how to get it in the actual game?

    It's incomplete. While you can design the menus, you can't display them. Also the system menu conditions are not implemented in the runtime.

    You can make your own menus with events or if you know how to with the Windows api in C you could make a plugin.

    There are are a few examples of event made context menus here: http://www.scirra.com/forum/viewtopic.php?f=3&t=6688&hilit=context+menu.

  • 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]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound