Ashley's Forum Posts

  • We now have the full sources to two plugins on the CVS, and we plan on adding more soon.

    3D Box is an interesting plugin because it demonstrates how to render 3D from a plugin. However, much of the code may be subject to change. The way it renders 3D is certainly sub-optimal; the engine may change in future to make 3D more efficient - so be aware of this if you plan your own 3D plugin. 3D Box's code is a little messy, but gets the job done and hopefully you can make sense of it (if you have any questions just ask). 3D Box was developed by David and I.

    XAudio2 is a non-layout object like Mouse & Keyboard, which doesn't do any drawing. It provides a complete game audio engine. I have tried to write the code to be as clean and well designed as possible. XAudio2 should be considered a model plugin for interested developers: it uses the SDK in a well structured and effective way. The ACE functions are thin wrappers to the underlying CXAudio2 class, errors are handled by exceptions and passed to the debugger, and serialization of setup parameters is handled by a class inheriting CXAudio2's setup parameters. When the documentation and examples are also finished and it is out of beta, these also are intended to be ideal examples for other developers (and hopefully where all official plugins will end up). Edit: documentation subsequently completed

    Hope the code helps potential developers, more on the way soon!

  • I'll email it to you. Send me a PM.

    Ideally it'll all the on the CVS soon, but it's a big job...

  • This should be fixed in the next build. In future, if you want to be 100% certain that your tiled backgrounds won't seam, use a power-of-two sized texture in the tiled background (eg. 32x32, 64x64...)

  • Hmm, this has been reported a lot lately, I'll definitely try and sort something out for the next build.

  • the only way i found to find the edge of the window was to use the window object, and i found that it included the border of the window.. which made things a tad more complicated. i wish it was easier to just find the edge of the gameplay area.

    You want the client X/Y, not the window X/Y.

  • PngCrush is a good tool too, you can brute force PNG files and make them the smallest they can possibly be, ever.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Looking for shapes in the cloud has gone hi-tech, eh?

  • Wow... with strafing and mouse aim... that's like a real FPS! Amazing stuff! Have... ten bonus points...

    You could keep the mouse inside the window by wrapping it when it gets to the edge of the window - not the edge of the screen.

  • I managed to get XAudio2 to play sounds OK on Vista - I had to install the latest DirectX runtime though. Can anyone who has had problems getting XAudio2 to play sound try installing that and see if it helps? Also, debugging the layout will report any XAudio2 errors, which would be useful as well.

  • Python is probably faster than events - but it probably won't make a difference to your game's overall performance anyway.

  • 2. Can there be an 'universal' variable that works globally but also privately? (i.e Gold for individual characters and globally working based on a same variable)

    Maybe you want a private variable on a global object? Under 'Common' properties, you can tick Global. The object won't be destroyed at the end of the layout, and will always be available in all event sheet editors.

  • If you've ever seen a mixing desk, the faders range from negative infinity up to zero near the top, then usually up to about +10 so a channel can be slightly boosted too. XAudio2 works similarly: a volume of -10 dB reduces the volume, like moving the fader on a desk down. Directsound actually worked like this, but adding 100 to everything (so 100 became unchanged level, 0 became -100 dB). So an XAudio2 volume of -100 does in fact correspond to Directsound volume 0 (but XAudio2 can go even lower and do boosts too). I think I need to add a 'Set muted' for channels though...

    Yeah, and be careful with really high boosts because it'll clip really badly and distort

    To play a different music, call the 'Play music from file' action again. It should replace the music.

  • Thanks, nice little example. You can simplify the events a bit, by the way - none of the 'for each' are necessary, and you can get rid of the subevent to the start of layout event (works the same with the actions just in the start of layout event).

  • I think people will continue to ask this from time to time, but I think that 3D is prohibitively more complex than 2D game development and therefore a WYSIWYG creation tool along the lines of a Construct 3D doesn't make any sense.

    Things like good 3D models and worlds are hard to come by unless you hire your own team or buy them off somewhere. The maths behind 3D games is much more complex as well - and it's hard enough in 2D. Finally, the industry is moving with such speed and momentum with teams of hundreds of developers and artists, it seems unlikely that anything us lot could come up with would ever be comparable to anything you buy off the shelf in a shop. Still, try out some of the links Davo posted - they seem to be doing alright!

  • Nice game, like the character animation