GeometriX's Forum Posts

  • WebStorage converts everything you put into it to a string, so to put stored values back into a numerical variable, you have to use the following format:

    int(WebStorage.LocalValue(LayoutName))
  • I think it's brilliant that Scirra is working on user interface improvements, and I would love to see a feature that would allow me to store and edit particle effect properties, which could then quickly be applied to new particle systems that I create. These presets could even include sprite PNGs.

    This would make it incredibly easy to reuse particle systems across projects and clone particle systems that have different sprites. Currently, the entire set of properties has to be reconfigured if I want two particle systems with the same behaviour but different sprites - e.g.: fire with smoke.

    If these presets are stored as simple XML files in a particular folder, they could even be shared with other C2 users.

    Additionally, support for child presets could allow for quick and easy management of particle effect variations, and having the ability to change presets at runtime would be invaluable for developers working on both desktop and mobile versions of their games; the Rate property (or whatever else is required) could simply be adjusted in a child preset and used for mobile.

    Also, while I'm at it, I think a live preview of particle effects would be fantastic.

    Keep up the good work, guys!

  • Been having the same issue a lot here too; is it maybe just caused by the cookie timeout being too short?

  • I'd suggest you create an event that tests len(text.Text), if it's over 10,then do the same action as the backspace key event.

  • You can set up positional audio properties in the Audio object itself, then just assign a listener object in the event sheet. Here's a demo; drag-and-drop the green sprite.

  • Louisjoe, are you attempting to run the file that you downloaded from the Ludei online cloud compiling service directly in the CocoonJS launcher? That launcher is just for testing ZIP files exported by Construct.

    If you've already compiled the project online and got an API file, that is what is submitted to Apple for the App Store.

    If you're exporting from Construct, before you ever touch the Ludei cloud compiler, you will get a ZIP file that is loaded up in the CJS launcher.

    Or, an easier way to tell what's going on: what files are inside your ZIP file?

  • Ah, Tokinsom, you're spot-on. I always forget about overlapping at offset. Thanks for that.

    Redcapgame, I've updated my example based on Tokinsom's suggestion.

  • immigrantsheep, I'd guess your video card drivers or Chrome version need to be updated. I tested in Chrome and it works fine on my side.

    My pleasure; enjoy.

  • If you do need to make your own keyboard, here is an example I made for someone else recently that you're welcome to use.

    You could quite easily resize it and store it in a hidden layer and bring it up whenever necessary. Just make sure you add a condition in the On touched events that check if the layer is visible or not.

  • That's kind of a tricky one. You could easily find the floor object that's nearest to the player, and get its angle that way, but that works with the floor object's origin which might not always actually be nearest to the player (there could be another floor object's origin that's closer).

    A way around this would be to keep your objects relatively small, which you can see in this example based on the platformer template.

    Although that's not the most elegant or efficient solution, it might work for you depending on your design approach. I'd welcome any other ideas on the topic as it's something I might find myself facing one day.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On a possibly related note, I've noticed some pretty wonky physics behaviour with my project in CocoonJS. In r132 my game freezes then crashes a few seconds later when I start it, and will only run when I uncheck minify script - which I thought was restabalised in r132.

    Similarly, disable collisions seem to still be inactive, even in r132, when running in CJS.

  • Seek and ye shall find... an answer.

  • It doesn't matter if you're on mobile or desktop, the save process is the same. Either use WebStorage to store your variables, or the save feature to store your entire game state.

    scirra.com/tutorials/526/how-to-make-savegames

  • KaMiZoTo, awesome, thanks for that. I consider it to be more of a workaround than a solution, since you'll have to manually go in an change it for each project, but it'll definitely work for now!

  • I'd also be interested to know how to do this.

    What we really need is a simple function built in to Construct that lets us define our own icon. I mean, it's cool to support C2 and everything, but when we're ultimately deploying our own products, I'd like to take full ownership of them.