Ashley's Forum Posts

  • I thought it was at least stable but there might be problems with certain plugins. Can you reproduce any of these save/load problems in a fresh .cap file and post them to the tracker?

  • AppPath returns a backslash at the end. And you should use backslashes (\) not forward slashes (/) for local files. So the correct formatting for a subfolder would be:

    AppPath + "Music\File.mp3"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • includes seem to produce anomalies as per the example I sent you before, Ashley.

    Could you make a .cap that demonstrates events working differently in an include?

    [quote:1eptmrpr]Secondly I'd ike to request a "Local Sheet" feature. so that each background has one dedicated sheet that doesn't muck up the sheet list.

    Each background? Huh? Don't you mean each layout? But each layout already has its own event sheet...

    [quote:1eptmrpr]also while I'm at it, getRefreshRate and GetFPS plzkthx -- and if you're really nice, set override to make things easier

    Meh, okay, I'll try and get them in a build... but I'm not absolutely convinced they're necessary. You can measure the FPS with events by the way, look up Ticks on the wiki.

  • Expressions don't work in the property grid. If you want the text to show the timer, you need to do it in the event sheet editor, ie.

    + Always

    -> Text: set text to timer

  • Quick example showing how you can achieve non-linear movement which is constant at any framerate.

    The sprite chases the mouse cursor by closing in a certain percentage of the distance remaining every tick. Since it uses TimeDelta, it works the same rate at all framerates. Try it - fixed 10fps or unlimited, even with a hundreds of times higher framerate it still goes at the same rate.

    Just thought I'd share it, because the formula is a bit tricky to work out otherwise Also a good example of interesting places to use lerp().

  • Yeah, computers can't calculate math exactly precisely, because they only used a fixed number of digits. For example, if you do one-third times three using only 6 digits of precision, you get:

    0.333333 * 3 = 0.999999

    which clearly isn't 1 - which you'd expect to get from multiplying a third by three. The same thing is happening, but in binary.

  • It's based on David's logo - he'd have to say!

  • 1) How can I display variables in a text object? Everything I try just displays the variable name.

    I bet you're trying stuff like:

    "timer"

    Stuff between quotes is constant text. Don't use quotes for variables:

    timer

  • Here's a screenshot of an animated shader effect I was playing with. Maybe it fits the bill?

    <img src="http://www.scirra.com/images/scirraswirl.png">

  • Sorry, it's not yet implemented... on the todo list!

  • Try (MouseX - ScrollXLeft) * 0.00155 and (MouseY - ScrollYTop) * 0.002.

  • Yeah, it shouldn't work like this. Submit it as a bug to the tracker.

  • Hmm, maybe this is a Vista bug. If you change the order of the layouts and it starts on the wrong layout, does it still do it when you save and reload the .cap? If so, can you send me one of these .caps that runs layouts in a different order to the way the project bar shows them?

  • The expression timer returns the time in milliseconds since the start of the layout. So timer / 10 will give you a value that increments 1 every 10 milliseconds. If you don't want all the decimal points, try int(timer / 10).

  • if i drag a different layout above the engine layout in the project menu on the right... it doesn't change which layout loads first (this was the first thing i tried).

    It does, I just tried it - a horizontal line appears where the layout can be dropped. All you need is a blank layout as the first layout which jumps to the layout you want.