R0J0hound's Recent Forum Activity

  • I haven't really used XAudio2 yet but this is what I found.

    After I added a ogg file to the files directory i was able to get it to play doing this:

    + Button: On Button clicked
    -> XAudio2: Play music "bgm012.ogg"[/code:iknmdomk]
    But not this:
    [code:iknmdomk]+ Button: On Button clicked
    -> XAudio2: Autoplay resource "bgm012.ogg" (No loop)[/code:iknmdomk]
    
    Does that help?
  • It's really quite easy. Just put any objects that you want to be dynamically loaded into vram onto another layout and make the objects global.

    Run the "Layout 1" layout and watch the vram usage.

    keys:

    1,q to create and destroy the oval bg.

    2,w to create and destroy the rectangle bg.

    In contrast run the "Textures" layout and see how even though both bgs are destroyed the vram usage remains 4 MB.

    cap req. 0.99.84

  • I updated the wiki with some more info and links about python.

    To learn the python language itself, here are two great tutorials:

    http://www.tutorialspoint.com/python/index.htm

    http://docs.python.org/tutorial/

    And for a quick look on using python in construct check this out:

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

  • Please add "rojohound", I'd like to see what I can do with this.

  • It appears that 'CopyToSprite' actually copies from the sprite. What's probably happening is the two functions 'CopyToSprite' and 'CopyFromSprite' both have the name 'CopyToSprite' in python. So the last one defined is the only one accessible. Easily fixable if the source were available.

    Edit:

    Also ImageManipulator.CopyToSprite(spritename) is incorrect.

    With functions (or methods) in construct, only two types work in python: numbers or strings. So the correct way would be: ImageManipulator.CopyToSprite('spritename'). If you use a number instead of a string, the objecttype with an OID (object id) equal to that number would be referenced. If the referenced objecttype has no image data it will cause a crash.

  • Can't you just drag the condition to be a subevent?

    <img src="http://img96.imageshack.us/img96/3114/draging.gif">

  • MouseKeyboard.AbsMouseX-Window.X will give you the X position of the mouse relative to the window.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 4ror

    Here is an example of a way to do mirroring:

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

    vbmdsm

    This will make a path relative to the player:

    http://dl.dropbox.com/u/5426011/examples/pathrelative.cap/url]

    In doing that example I found a bug with the plugin: if the path starts off screen the object will not be drawn.

    Arima

    I plan on fixing some issues with the curved interpolation (which uses catmull-rom), And while i'm at it i'll see if I can get bezeir curves to work. I was using bezeir to begin with but was having an issue with the speed on the path not staying constant.

  • To avoid the sprite being tilted in between the animation angles. Change the Sprite's property "Rotation" from "Normal" to "N angles", and be sure the property "Rotations Count" is 8.

  • 1146Ullman

    That is a known problem. The solution is not to use the binary object when using python. It's no loss because python can do everything the binary object can do and more.

  • Do you have an object named "360"? If so you need to rename it so it doesn't start with a digit and it should work. Construct generates it's own python script on startup that builds an interface for each object, thus the 1027 lines.

  • [quote:2pn9fm58]+ System: "Solid" at (Sprite[RTS].DestX, Sprite[RTS].DestY)

    It's the System condition 'Object overlaps point'. And yes it works with an attribute instead of an object.