jimand's Forum Posts

  • With Webstorage, you save key / value pairs. The values can be numbers or text.

    In my example the local storage key was "StoredScore" and the value was a number. You can do the same thing with text. You could have a key "Item" and a value of "lamp" or "table" or whatever.

    http://www.scirra.com/manual/120/webstorage

  • Here is a capx. You click the button to rack up a score and store it. Click it a few times, close the program, then reopen it and the score should take up where you left off before. This should work even in the C2 preview. Read the manual for more.

    http://dl.dropbox.com/u/6109058/webstorage_test.capx

  • I made a small game with C2 that has 22 physics objects on the screen at once. It runs great in any browser on any computer I've tried. But then I tried it in my iPod Touch, which is a couple years old, and while it ran, it ran too slow to be playable. So I'm thinking in that case it is not the number of objects so much as the use of physics?

  • I was trying to figure this out, too, and created a small test capx to put the value of a local variable in a group into a global variable, which can then be used anywhere in the events. Here is the capx as an example.

    http://dl.dropbox.com/u/6109058/localvsglobal.capx

  • It sounds like the message that begins "Assertion failure. No default instance when creating object." There is a lengthy stack trace. But the basic message also says, "This will be fixed in a future build." So I figured it is on the to-do list. Not hard to work around.

  • Kyatric -- Ah, OK. Thanks. I hadn't used buttons for a while until today. I knew that they had worked for me in the past but weren't working now. It drove me crazy looking for some other mistake in the events setup I was creating.

  • In r88, I can't get a button to trigger an action when it is clicked on. Other objects, such as texts or sprites, work fine, but not buttons. I've tried in the latest versions of Chrome and FireFox. Here is a demo capx.

    dl.dropbox.com/u/6109058/testButtons.capx

    Jim

  • I teach business communications, first-year writing and other courses at a public university in the United States, and have written computer programs as a hobby since the mid-1980s. Many years ago, I even earned a little money writing specialized business software. I've programmed in a variety of languages, including many dialects of Basic; Pascal (starting with Turbo Pascal and moving onto Delphi); Python; Javascript and PHP. I bought a standard license for Construct2 because I like the software and the company and wanted to show support -- and because it's a great way to make games for the web. And the fact is, I just like to tinker and learn new things!

  • Ashley --

    I was working at the time on a laptop with a fully updated Windows 7, and around 200 GB of free hard-drive space. I was saving to my Dropbox folder. I had saved several times there without any problem. Then after the problem, I went to my desktop computer, unplugged it from the Internet before booting it up, and then retrieved the old project file (from the previous day) that was in the Dropbox folder on that machine. In fact, there were two files -- the original and one backup. But after copying those elsewhere, I plugged in the Internet, and when Dropbox synced up, the files both disappeared (as of course I knew they would). And yes -- I have since set up the automatic backup to an alternate location, which is a very good feature to use, I now realize!

    It could be, as JohnnySix suggests, that some other program in the background interfered with the save process, although I haven't experienced this with any other save process on that machine.

    Anyway, I still love Construct 2!

    UPDATE 3-26-12:

    I got to thinking maybe frequent saving to the Dropbox folder was the problem. Not exactly sure how Dropbox does its thing, but I know it has to update the web copy after changes are made in the folder on the local drive. What if it happened to be doing that when another C2 save was attempted? Maybe that's not it, but the fact is, I was saving to the Dropbox folder when the problem occurred. Just to be safe, I decided not to do "working saves" to the Dropbox folder, but just to save there once at the end of a session. I used C2 (r83) a couple more hours yesterday, saving numerous times, and the problem in this report never repeated. I'm also doing auto-saves every 30 minutes to a different location than the project folder. Then the "end of session/ off-site" save to Dropbox.

  • I didn't have anything else running that I know of, other than the web browser. I do have CCleaner on that machine. But I double-checked the settings on that. It is not supposed to load on start up, and I haven't run it manually in weeks. It's possible some other program started up in the background, but I don't know what it would be.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I opened a project this morning in the r83 beta that I had created with the previous release (r82), made various changes and additions over the course of about an hour, testing and saving several times. Then, trying one more change and save, I got this message: "Failed to move uistate.xml.tmp to uistate.xml!"

    Repeated attempts to save or save-as just prompted the same message to appear, and no save was ever completed. I finally closed Construct 2.

    Even worse, not only was no save ever completed, but the file I had opened to start with had also disappeared! In other words, even the most recent successful save was gone. (It was the single-file type of project.) Luckily, I had a backup stored elsewhere (although that file does not reflect the state the project was in at the time this error happened, so I see no reason to attach it).

    I understand r83 is a beta release and was just playing around with it. But I'm going to download and use the last stable version.