Ashley's Recent Forum Activity

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

  • Try Construct 3

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

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

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 10 Feb, 2025

Twitter
Ashley has 1,429,343 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x108
    Coach One of your tutorials has over 1,000 readers
  • x62
    Educator One of your tutorials has over 10,000 readers
  • x3
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x36
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs