Ashley's Recent Forum Activity

  • Before you start making a game this big I'd definitely recommend waiting for the staged level loader which is on the todo list (no ETA). It'll load layout by layout so it could probably get going after ~10mb of the download, while still downloading the other 90mb in the background. As it is, any user on a slow connection will probably not even bother clicking a game so big. The offline cache helps since it only needs to download once ever, but that's still a big download for anyone out of range of broadband, which is still a lot of people.

  • You do not have permission to view this post

  • No worries :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll see if I can get mouse wheel events in the next build.

  • The resolution does not depend on the physical size. In fact, you should not use a specific resolution at all. Just set 'Fullscreen in browser' to 'On (scale mode)' in project properties, and the canvas will scale up to fit whatever size it is.

  • Hi all,

    Graphics card drivers are a bit of a problem both for Construct 2 and HTML5 in general. In Construct 2 old drivers can cause crashes and glitches. For HTML5 in general, many ordinary users have out of date drivers, and this causes their browser to revert to software rendering making the game run slowly for them. If they updated their driver the browser might enable hardware acceleration then the game would run super fast... but most people probably have no idea how to do that. I reckon this is the #1 problem with HTML5 performance on desktop.

    So I've done a little side-project to create a tool called the Graphics Driver Updater. This is a really simple program that tells you what your graphics card is, how old the driver is, and gives you a relevant link to go update it. It's designed for non-technical general users so it has a little bit of explanation and is meant to be as straightforward as possible.

    Here it is:

    <font size="5">Download the Graphics Driver Updater (beta 2)</font>

    (last update: 25th February 2012)

    Could you all give it a spin and let me know how it works for you? I'd love to get feedback on if you think it's clear, simple and straightforward. It should also accurately detect your graphics card and the driver date, but let me know if anything seems amiss. Also if detection fails you'll see a "Sorry!" message - would be interesting to know what your setup is in that case.

    Also I haven't tested on XP so would be reassuring if someone on XP could give me the thumbs up it works.

    If it all goes smoothly, I'd like to release this as an open-source general purpose tool. Any games or apps that need up to date graphics card drivers could use it. Also, if people complain to you about your HTML5 games being slow, you can send them to this tool so they can easily update their drivers, which is the most likely thing to make HTML5 games go faster. It's probably much better than trying to get an ordinary user to figure out what their graphics card is.

    The situation with graphics card drivers is total shambles. Many are poorly engineered or simply broken and many manufacturers do nothing to help people update them. It's been a huge pain in the ass while developing Construct 2 and will surely cause more problems in future for other people, especially in HTML5 performance, so I hope this tool can help make life easier for some others out there, because the people responsible for graphics drivers are not doing great IMO.

  • Does it work if you disable minification? If it does, usually it means a third party plugin is broken and does not work with the minifier. If you can reproduce this with no third party plugins, that proves it's a Construct 2 bug, otherwise I must assume it's a broken third-party plugin.

  • This is a bug in the function object. The way triggers work is triggering "On function" with fn_name = F1 triggers both "On function F1" and "On function F2", with the intent that only "On function F1" returns true. In "On function F1", which is first in the event sheet, "Call F2" sets fn_name = F2 and again Construct 2 triggers both "On function F1" and "On function F2", and this time only "On function F2" returns true. However the value of fn_name has been overwritten, and now execution returns up the stack and Construct 2 is still triggering all "On function" events for the original "Call F1" action. Since fn_name was overwritten to F2 in the nested function call, it should trigger "On function F2" with fn_name = F1, but it's now F2 which returns true and incorrectly runs the event.

    Relevant part of the plugin:

         FunctionKlassProto["_CallC2Event"] = function(name)
         {
            this["fn_name"] = name; // *** overwrites a single value
             this["plugin"].runtime.trigger(cr.plugins_.Rex_Function.prototype.cnds.OnFunctionCalled, this["plugin"]);
         }; 

    Instead you need a stack of state like the event system uses: you need to push the function name to a stack, trigger, then pop the function name from the stack. In 'OnFunctionCalled', only compare to the name at the top of the stack.

  • Can you reproduce this in a new project?

  • Please see how to report bugs. We really need a repro .capx made from scratch for issues like this. Otherwise it could just be an issue in your events.

  • The preview and export should look the same, yeah, but it's probably the fact non-fullscreen preview mode centers the canvas in the (non-scrollable) window for more convenient testing, and this is ideal for games and no game would ever have a non-fullscreen canvas bigger than the window. Can't you work around it by using a temporary smaller canvas during testing?

  • I'm not sure this is a situation we can support - the canvas is not designed to be bigger than the window, and if you use a fullscreen-in-browser setting there's no good way to integrate with the browser scrollbar. To be honest Construct 2 is designed as a game creator and not a website creator, so I don't want to get involved in adding features to design websites. You should be aware of severe shortcomings from designing websites like this: it's often inaccessible, will not be viewable on old browsers, it's unsearchable, untranslatable, does not integrate with browser forward/back, has no URLs to specific pages, cannot copy/paste text out the page, Google cannot index it so you'll get a rock bottom pagerank, etc. etc. Many of these issues cannot be fixed at all. Because of this I don't recommend making websites in Construct 2 and we probably won't fix any issues that crop up in trying to make websites. I highly recommend going back to HTML!

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,773,491 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
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    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
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs