Ashley's Forum Posts

  • That's the date for the final formal specification, which is a document. HTML5 has always been developed in tandem with browser makers who add features as they go. With IE9, all major browsers will have canvas support regardless of the formal specification status. So the web can be using it all through that time.

    It's possible the HTML5 spec will change before then, but it's unlikely to be a serious "breaking change" - and even if it is, we only need to tweak our javascript runtime to fix it. It's nothing for end-users to worry about, I don't think.

  • Hmm... I hope our logo doesn't convey "common sprocket fracture"

  • Most search engines are pretty smart about this type of thing. Construct2 and Construct 2 would probably turn up equivalent results, once there's more substantial content out there about Construct 2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am finding making plugins annoying because when i make a quick example to preview it doesn't update saved changes to my code.

    To speed up previews (slow previews was a problem in 0.x), the javascript files are cached each time a project is opened. You don't need to re-make your project from scratch - just close and reopen the project, and the cache will be cleared. Just to clarify, it's not the browser caching javascripts - it's Construct 2 itself.

    Even closing and reopening the project was a bit annoying when doing my own development, so I switched off caching for myself in debug builds. However, you're right that would be useful for other plugin devs, so I'll add a 'developer mode' switch somewhere which will switch off caching, then the scripts are re-loaded every time you preview.

    [quote:267p3901]If you go to add a object like text and then go to the event list it adds it but without it showing.

    I don't understand - "it adds it but without it showing"? Does it add it or not? Where are you looking? Also, Arima is right - reports should go on the tracker - thanks.

  • It should support TrueType fonts - under the hood it uses FreeType, which supports a lot of formats, just not *all* of the ones in Windows. It is by no means limited only to Arial.

    However, you also need to be sure that the browser has the font, which means you should probably stick to the standard web development fonts like Arial, Helvetica and so on. HTML5 also has downloadable fonts support but that's not something on the immediate agenda to implement.

    The plugin system allows anyone to make any kind of plugin. Even if the Text object only ever used fillText, someone can make a plugin that uses bitmap fonts. There's no reason to be limited by official plugins.

  • Here's a hotfix till then: paste this runtime.js file to <install path>\exporters\html5\plugins\sprite\runtime.js - it's got fixed collisions.

  • Oh, poop. I'll have that fixed and get a 28.2 out soon.

  • This is a cool little example based on a bug report someone submitted (sorry, forgotten who ) that demonstrates instance indexing in r28.

    Using instance indexing, it's really easy to get the previous-instance-in-chain's X and Y co-ordinates and make this effect. In 0.x, this would have been incredibly hard to do!

  • Download Construct 2 public preview 28

    Link to release 27

    Lots of additions, changes and fixes. Hopefully this corrects all the teething issues that have come up since the public preview.

    I can't reproduce the crash-on-close bug, but I made a change that might fix it - let me know if it still crashes on close.

    Changelog

    • [ADD] System expression: newline
    • [ADD] Common object expression: count
    • [ADD] System expression 'loopindex' can now take a parameter of the name of the loop index to get
    • [ADD] Text: 'Append text' action
    • [ADD] Instance variables dialog: can drag and drop variables to reorder, rename via label edits and F2, and move up and down from the toolbar.
    • [ADD] Sprite and Text: Is Visible, Set Visible
    • [CHANGE] Boolean instance variables: now use a true/false combo in properties, and have their own conditions and actions: 'Is boolean instance variable set', 'Set boolean' and 'Toggle boolean'. Boolean variables don't appear in the other instance variable actions/conditions and vice versa. Booleans should be fully functional now. They provide a nicer way of using on/off flags, such as 'Player: Is Alive' as opposed to 'Player: Alive = 1'.
    • [CHANGE] By default the canvas doesn't bring up a context menu when you right click it. (Thanks Gullanian)
    • [CHANGE] Instance indexing (e.g. Sprite(n).X) previously worked indexing in to the SOL (the currently picked objects) - this seems inconvenient in practice, so now it indexes for all objects, regardless of which are picked. This means Sprite(0).X is always the first instance's X co-ordinate, whereas before Sprite(0).X was identical to Sprite.X (which is the first currently picked instance's X co-ordinate).
    • [CHANGE] Text: now accepts numbers passed to 'Set Text'
    • [FIX] System 'For' condition was not inclusive to the end value
    • [FIX] Text object did not wrap newlines in text properly
    • [FIX] Recursive loops (loops-in-loops) work now
    • [FIX] Subevents to loops sometimes ran even when they were false
    • [FIX] IDE crash clicking back in parameters dialog with an invalid expression
    • [FIX] Runtime: instance variables are set to a correct initial value when a new object is created (previously it accidentally gained the last instance's current variables)
    • [FIX] System 'Create object' did not pick the created instance
    • [FIX] max and min system expressions would not accept instance variable parameters
    • [FIX] Error cloning an object type with instance variables
  • See the the FAQ! That really IS a frequently asked question, it's been asked a million times already!

  • Yes.

  • Oh, didn't realise it was on Vista too. According to the report it only happens after all your work is saved, so it's just an annoyance, but I'll try to get it fixed.

  • There's a bug on the tracker which describes this - I can't reproduce it on my XP VM though, so I'm not sure what the problem is... I've made a change which might fix it for the next build, but it's a bit of a shotgun fix given I can't get it reproducing my end. Are you using XP service pack 3?

  • I think Firefox 3.x has a good javascript engine - it's just not hardware accelerating the canvas, so all the textures and alpha blending are done in software.

  • Might there be a way to do both? It seems it would be helpful to have it reference only the currently picked objects with a 'sprite collides with sprite' event.

    You don't need expression indexing for the sprite collides with sprite events - just the 'pick nth instance' conditions.

    I'm finding a problem with useing loops with subevents

    I think I see the problem in the runtime, should have it fixed next build.

    There's a thing I've been wondering about. Is there a specific reason to why the keyboard and mouse objects aren't automatically added to a project?

    It's the principle of don't-pay-for-what-you-don't use: if you're not using mouse input (as someone says, like on a banner advert) then you shouldn't pay for the extra weight of carrying all the mouse javascript around, or having it take up space in the event wizard when it's not used, and so on. It's only a couple of clicks to drop in when you are using it so I don't think it's a big deal - if we get round to adding templates, that would effectively solve it too.