R0J0hound's Forum Posts

  • Private variables in python are accessed much like with events.

    # This gets the value
    Sprite.Value('HP')
    # This sets the value to 22
    Sprite.SetValue('HP', 22)
    #This subtracts 1 from the value
    Sprite.SubValue('HP', 1)[/code:3nd2pf6i]
    
    Same deal with creating objects:
    [code:3nd2pf6i]# This creates a Sprite on layer 1 at 200,300
    System.Create('Sprite', 1, 200,300)[/code:3nd2pf6i]
  • Do you have Flash installed for Internet Explorer? The error you're getting means that it can't find Flash installed.

    Here's the link from the Adobe site to install Flash for Internet Explorer:

    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe

  • 1.

    List Boxes aren't drawn in DirextX, they are windows controls and are always drawn on top. I haven't used fraps so I can't help you there.

    2.

    This discussion describes how to make the window round in python with winapi calls:

    http://www.scirra.com/forum/viewtopic.php?f=3&t=7515&p=58466

    Making an arbitrary shaped window is possible but becomes more complicated and less readable.

    3.

    This is probably the best example for learning how to use the bone behavior:

    http://www.scirra.com/forum/viewtopic.php?f=8&t=2210

  • Welcome,

    Actions can be added after the event is created by left clicking + New Action at the right of the event.

  • The preview and exported project will think the DirectX update is installed if they can find D3DX9_39.DLL in the system path or the same directory as their EXE. The preview EXE is in a hidden temp directory "C:\Documents and Settings\UserName\Application Data\Scirra". Copy that dll to that directory and it should work.

  • The reason the the sound isn't playing is there is no XAudio2 instance on "Layout 3", even though the XAudio2 object is on "Layout 1" and has global enabled. Global doesn't mean it will exist on all layouts, it means that after an instance is created it will still exist when layouts are changed at runtime.

    A simple fix would be to create an XAudio2 object at the start of "Layout 3". It is also a good idea to check if there are any XAudio2 instances before you create another to prevent distortion caused by multiple instances.

    + System: Start of layout
    + System: CountMatching("XAudio2") Equal to 0
    -> System: Create object XAudio2 on layer 1 at (0, 0)
    [/code:3ldjpl9m]
  • [quote:3eklu7rs]Could this be a way to get around the whole needing to install direct x problem with exported games as well, or does the direct x TOS not allow it?

    I think DirectX's TOS does not allow it.

    [quote:3eklu7rs]I forgot to mention I'm able to run construct since I got the .dll files it asked me to get, but I'm still not able to run games from it. That may have to do with the registry though.

    If you got Construct to run by including the dll files disregard the stuff about the registry it isn't needed.

    What happens when you try to run the cap? Also, can you export a project to exe?

  • The way I would do it is find what DLLs Construct needs with a program like Dependency Walker and include them in the same directory as Construct. In reality only a few of the listed DLLs need to be included as most of them come with a windows installation.

    I'm also pretty sure that including the DLL files is not enough to run Construct. You may also need to add some registry keys so Construct thinks it's installed. You can get the necessary keys from a computer that you already installed Construct on by exporting the registry directory "HKEY_CURRENT_USER\Software\Construct" to a .reg file and running the file before you run Construct.

    I haven't tried this myself because all my computers already have construct installed.

  • You can put the plasma on an unscaled layer and cover it with another object to hide it. Then paste it onto a canvas every frame.

    http://dl.dropbox.com/u/5426011/fixed/ScaledPlasma.cap

    made in 0.99.96

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Edit the "Set relative displacement at" action and change the opacity from 1 to 100, then change the rightmost numbers in "displace x" and "displace y" from 0.05 to 5.

  • It's pretty simple to read text without python. Each line separates rows and each space separates columns so each number can be any number of digits.

    http://dl.dropbox.com/u/5426011/examples3/textdata.cap

  • Hmm... so it doesn't...

    If you use the resource plugin to extract the ogg files. Then play extracted file with "autoplay file", then it works.

  • I think the previewing sound files from the project bar doesn't work with ogg files. The file should be able to play just fine in your game. To play ogg files use "Play music from resource".

  • % does not give you percent, it gives you the remainder after division.

    http://sourceforge.net/apps/mediawiki/construct/index.php?title=Expressions

    To get 50% of a value just multiply by 0.5.

  • The Input system plugin allows you to do that:

    http://www.scirra.com/forum/viewtopic.php?f=33&t=7511