R0J0hound's Forum Posts

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

  • Try Construct 3

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

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

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

  • Here is a alternative to XAudio2 for having sound in your game. It uses the Audiere sound library as a base and it can play Ogg Vorbis, MP3, FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files.

    It behaves much like XAudio2 but instead of channels you access loaded sounds and musics by alias' (or names).

    Audiere Sound Plugin 1.4 Download

    https://www.dropbox.com/s/be34er7r0uf95 ... 4.zip?dl=1

    To install copy the plugins folder to your construct directory.

    To get started use the "Load Music form file" action.

    version 1.1:

    [fix] Music stop was not working correctly.

    version 1.2

    [fix] Music set repeat was not working.

    Edit:

    version 1.3

    [fix] Load music from resource was messed up.

    version 1.4

    [fix] There were rounding errors with volume. Higher precision is now used.R0J0hound2011-12-24 00:05:07

  • Move "SoundOff: send to front" from event 14 to the end of event 13.

  • I didn't open your file since it's a exe, but it sounds like an issue that occurs with GTX graphics cards and loading non power of two sized png images.

    See this topic:

  • Opps, I was misreading 0/2 as 1/2. At any rate it is a bug, and will be fixed next version.

    If you can find any other expression related issue I can try to fix those too while I'm in there.