Ashley's Recent Forum Activity

  • Wise words, ssbfalcon. And yeah, it'd be nice to do something for the 1.0 release. Tis hard to come up with a prize though, I guess we could frontpage a game <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

  • [quote:2yi4f932]but when you sort y (to put it in numerical order) it affects x too

    This is pretty much how C++ works, by default it uses reference semantics on arrays. I guess Python's x[:] is a way of explicitly calling the copy constructor (if Python calls it that), which is probably a good idea, so you don't accidentally end up copying around large arrays unnecessarily. In real world apps, the majority of the time arrays will be passed around by reference semantics.

    As for mixing strings and ints, it's generally a grey area anyway. It works pretty similarly to Construct (you can't add or perform operations on mixed types usually, except for special operators like string concatenation &). Operations like "50" + 1 are intrinsically ambigious, do you want to get 51 or 501? Rather than allow something that may be unexpected, the general solution is to disallow it - this is not any particular language's fault. You should use explicit string or integer conversion functions to make it work how you want.

  • I really don't want to be Mr. Thread Locker - I haven't locked or deleted any threads yet - so let's all just get along <img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" />

  • OK, but you can always use set angle to:

    angle(.X, .Y, OtherObject.X, OtherObject.Y)

  • Because the layout editor is rendered with DirectX, and the app runtime isn't (just plain old Windows). For some reason DirectX uses pixel heights for fonts instead of Windows' point size. As soon as I figure out how to tell what point size a pixel height is, I can fix it...

  • That's not quick to do... I think it serves its purpose OK at the moment. You could try the RTF object?

  • This is an idea for the very long term (ie years, unless we acquire a boatload of code contributors) but there are too many design and implementation issues for it to be practical now - not only is the 2D side not finished, but there are problems like 3D collisions which the engine simply has no way to support at the moment.

    So yeah, we'll finish Construct first before anything like that. The 3D box object does, however, prove the concept that it can be done.

  • Hmm, the layout editor and application runtime render strings using completely different engines. I haven't worked out how to make them use the same units of size... you'll have to go by trial and error for now, sorry!

  • It's not meant to display complete HTML files (Web Browser was meant to, but doesn't work atm). It's like a text object, which can bold, italic various parts of the string, useful for formatted strings basically.

  • Objects use floating point values for their coordinates in Construct. Due to how floating point values work on processors the objects may appear to be at the same place, but their X and Y coordinates will differ ever so slightly. You would probably want to round the coordinates and just test to the nearest pixel. You would do it like this, using compare values:

    round(Sprite.X) equal to round(Sprite2.X)

    round(Sprite.Y) equal to round(Sprite2.Y)

    If you want to test multiple 'Sprite's with this method, put a 'For each Sprite' condition at the top.

  • Yeah, you can just use an expression to do a proportional zoom. For example, always set the width and height to:

    Sprite.OriginalWidth * factor

    Sprite.OriginalHeight * factor

    If you use 0.5 (which is the same as 50%) for factor, it's scaled to half size. 2 represents 200% and double size, etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont think anything can right now... you might be able to load it in to a Sprite though (load animation frame from file).

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,399,234 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
  • x107
    Coach One of your tutorials has over 1,000 readers
  • x61
    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
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs