R0J0hound's Recent Forum Activity

  • Yep, that utility only saves values as strings.

  • Try this:

    value=40
    name="N"+str(value)
    System.Create(name,1, 0, 0)
    newobj=eval('SOL.' + name)
    newobj.x=300[/code:1a1ac7tf]
    
    eval() evaluates any python string.  Now you will only have an error if there is no object named "N40".
  • Instead of using a global to keep track of what the current level, you could just use the system expression "LayoutNumber" to get the current level.

  • [quote:2ff65doh]How would I write this "RANDOM(1~1.125)" as? random(1+1.125)?

    It would be 1+random(0.125).

  • The condition returns that song is seekable, but setting position still doesn't work. Is this the limitation you're talking about or if it's seekable it should work.

    What is the file format you're using? I've only tested setting position with wav files. As I recall if the music has stopped playing and you use set position you need to play it again to get it going.

    Is there any difference between using the Music actions and Sound actions? Because sound actions are lacking the option to repeat sounds plus "Set volume" doesn't seem to work for sounds.

    Music streams a file and Sounds load entirely into memory first. Sounds also are played using a feature of the audiere library where the sound is loaded only once and every time you play it another instance of the sound is played. An unfortunate side effect is the set volume action will only affect the most recently created instance of the sound.

  • It's basically the same idea as posted in the other thread but uses the save/load actions of the array object. I made it so it saves the top 3 times but this can be adjusted.

    Here's the example to glean some ideas from.

    http://dl.dropbox.com/u/5426011/examples5/3%20best%20marios.zip made in cc1.2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You mean like this? http://dl.dropbox.com/u/5426011/examples5/hexgrid.cap made in cc1.2

  • The only reference is the source code. Visual studio makes it pretty easy to browse the code though. Right click on anything and click "go to definition". Then there is a button on the toolbar "navigate backwards" to get you back to where you were.

  • Fixed Load music from resource. Download version 1.3 in first post.

  • Fixed the set music repeat action. Download version 1.2 in first post.

  • I fixed the music stop action. download version 1.1 in the first post.

    The "set position" action only works for files that support seeking. You can use the "is seekable" condition to check. Unfortunately the Audiere library doesn't seem to support seeking for most of the file formats it supports. In other words it's a limitation of the Audiere library that I can't work around.

    [quote:86nw5jlc]In documentation for the plugin, there is midi support - I believe it's just not activated, would it be worth it to include it?

    It has no volume control for midi files, so I decided not to include the feature.

  • [quote:2dg9zwq5]So... is there anything I can do then? Couldn't find any answers in that thread other then it was a bug :/ Any possible way to fix it?

    Always set you image sizes to power of two. 128x128, 256x128, 512x32, 16x1024... etc. That should prevent the distortion.