R0J0hound's Forum Posts

  • 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

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

  • Try Construct 3

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

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

  • How big is your layout? If it's very large then the white box showing where your window is will be small.

  • This can be used instead of atan2:

    angle(0, 0, x, y)[/code:53evcedq]
  • First let me say that these examples are barely python, mostly winapi calls. They were mainly an exercise to see how it can be done.

    The first example is pretty much like the AVI object but without the controls. It's always drawn on top and it can be destroyed, but it has to be done manually.

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

    Made in 0.99.96

    Needs the ctypes python library.

    The second example is Media Player embedded in the window, so it supports any file format that Media Player can play.

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

    Made in 0.99.96

    Needs the ctypes and win32com python libraries.

    Python is cool, but I think a plug-in would be better.

    -cheers

    EDIT:

    Also if it's of any interest here's an example of embedding flash in your app:

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

    Made in 0.99.96

    Needs the ctypes and win32com python libraries.

  • Uncheck "Enable Scripting" in the application properties. If you have it enabled and you don't use any python scripts the game will crash after ~700 objects are created or destroyed. The crash won't occur when you have scripting enabled if some python scripts are run periodically.

  • You need to add an event to plot your objects on the minimap.

    Something like this should work:

    + System: Always (every tick)
    -> Minimap: Clear terrain
    -> Minimap: Draw terrain Sprite with scale 2
    [/code:3trlf03s]