jakobdam's Forum Posts

  • Tip for learning the basics of using webstorage:

    Just follow this video tutorial:

    https://www.scirra.com/tutorials/448/ar ... high-score

    It's very easy, and I replicated what he did, without watching the video with sound.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That is a little more complicated, but first thing, take a look at the webstorage object:

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

    1) Try to successfully save something (a number) with webstorage

    2) Try to fetch it (where your load function will be)

    3) Having succeeded with the above, now for the actual game save; save every coordinate for every sprite - and all other variables (number of lives, level etc.) in webstorage. Then fetch as you did in step 2; and then have an "if game loaded" event in your game event sheet, that spawns and places everything.

    At least, that's how I'd do it - but I'm unsure if this is the best way.

    Far more simple would be for the save feature to only be available between playing levels (if your game features several levels); then you only need to store a few things; number of lives, the current level and the current score.

  • Mmmm it's scrollable, so there's stuff that we can't see.

    But from I can see:

    • Your object count is fine; 129 sprites is nothing to worry about
    • You check for 233 collisions per tick - that's some, but I use more than 500 per tick in one of my projects, and performance is fine on the iPhone 5, even with slower iOS 7

    What hardware are you using? What generation iPad...?

    With you iPad, please try this link:

    http://www.jakobdam.dk/0-GAME-DEV/ChainPopper-v1r1/

    • it's a very early development version of a game I'm currently working on.

    Does everything happen smoothly - even when there's many balls popping - or is performance poor?

  • Run your game in Construct 2, in debug mode - then you can see whether your objects gets destroyed or not.

    The physics engine is changed at the same place where you write your project name; just click outside your scene at an empty place; then click "View" for project properties.

    I always use the Box2D physics engine, it works fine, even with many sprites (~500) that collides with eachother continously.

    Can you show us something of the game you're making, to help us help you...?

  • It's of course the benchmarks that are centered around browser tests, which are the most important and interesting to us; take a look at the iPhone 6 and 6 Plus scores:

    http://www.gsmarena.com/apple_iphone_6_ ... 1142p5.php

    The browser tests are the 2 tests at the bottom.

    What is missing is the iPhone 5 with iOS 8; the one in the link uses iOS 7 - but I tested my iPhone 5 with iOS 8.0.2, to 12424 in the Kraken 1.1 test (using Safari), which is a nice improvement over the 14.171 for iOS 7 on the same device (lower is better), but still very far from the stellar performance of the new iPhone 6 devices.

    So; I'm using my iPhone 5 as a test platform right now, as it marks the slowest performance people in general will encounter. Of course there are still a lot of 4s and 4 devices around, but as time goes by, they become more rare - and we can trust that an iPhone 5-ish performance, even for lowend smartphones, is indeed possible for us to aim for.

    * It's worth noting that running the Kraken 1.1 on the latest Chrome for iOS (8.0.2), resulted in a freeze. o_O

  • Nice! And it's cool to see how you improve in gameplay design and complexity

    Keep up the good work

  • I'm a musician (Cubase user)... among other things. ^_^

    It is correct that most sound cards doesn't handle several sources well; especially integrated solutions, but that shouldn't be an issue here, as the browser should be considered 1 source.

    What I don't get is; your game is hosted on a server, but I'd think the game is executed client-side, while the server just delivers the play-files? I mean - your sound card on the server (and the graphics card) should be under 0% load each, while your hard drive and probably also the CPU, will be utilized some, to keep everyone in sync etc...

    I don't know any game where the server plays the sound, then sends the wave audio to the player's PC... o_O

  • I think there is a plugin for C2, that makes sprite sheets (with uneven width/height) possible...? Can't remember where I saw it though, and I have no need for it as of yet...

    Sprite sheets are efficient in that they require far less file calls, than if they were loaded in separately.

    Imagine that you have 100 sprites, which is quite a small number anything but the simplest casual games; now imagine 100 file calls to either buffered RAM, or even worse; the hard drive. If these 100 sprites were consolidated into ONE file (the sprite sheet), you'd gain a lot in performance from lesser file calls in and on itself.

    But any file has a header; and that header takes up space. Imagine that the header for each file, is an average of 5 kilobytes. Now multiply it with 100, and that's the extra overhead you get from not using a sprite sheet.

    And it gets worse: If you're making an online game, then your server delivers the content; which means your server will have to fetch the 100 files. As most servers features traditional hard drives (magnetic), the search time is very high (compared to SSD's) and your 100 files will have a noticably increased load time, compared to if they were 1 sprite sheet.

    But here's the thing about Construct 2:

    All sprite animations are automatically consolidated into a sprite sheet - no matter if you pulled them into Construct 2 as separate files or as a sprite strip. Go take a look at the exported files; you'll see what I mean. And that's pretty clever.

    My first game in Construct 2, has 35 graphics files, but these contains several automated stripe sheets, and they actually consolidate a little more than 50 extra graphics files - so without this smart feature of C2, my game would have contained a little less than 100 sprites.

  • So, this is my first Construct 2 game - I actually made all the base mechanics in the framework "Phaser", but after switching to Construct 2, I decided to do a little more with both gameplay and graphics. It remains a very, very simple game though... ^_^

    [attachment=0:1fdkh2ar]flappyCow-promo.jpg[/attachment:1fdkh2ar]

    http://www.deepartmedia.com/index.php?p=20&c=flappycow

    Crits and comments are of course very welcome; I've drawn the graphics in Photoshop (using pen tool mostly), and the cow "walking cycle" is also just made in Photoshop.

    It's of course a free game.

  • Never say never

    We also used to say, that PS4 and x86-based developing was a no-go. Voilá - enter Playstation 4 and its x86-based hardware; much easier for programmers to deal with, than the predecessor's CELL-based architecture (that weird PowerPC incarnation).

    Before Kaz Hirai took the position as CEO, there was talk about porting the PS Vita OS to other devices, such as smartphones and tablets. As it is, these rumors have subsided, and personally I find it MUCH more likely, that Sony would make a next-generation hand-held console, based on Android than anything else.

    Many don't know it - but actually a lot of digital cameras and TVs, actually uses Android.

    And with Android will probably come HTML5 and WebGL and all our dreams will come ever so true

  • I usually do this in Notepad++

    1) Download and install Notepad++ (google for it)

    2) Open your text file

    3) Under "Encoding", choose "Convert to UTF-8 without BOM"*

    * Unless you need the BOM; in that case, just choose "Convert to UTF-8".

    Notepad++ can also be set to always convert any opened text file to UTF-8.

  • Hmmm ok another stab at it; try not to minify the script. Maybe that will change something? Alternatively, make a file where you scrap anything you don't want us to see / know about, and upload here - and we can see if we can figure out what's going on for you

  • Aaaah yes Valerien - Game Maker, the big competitor

    Nice to see some GM stuff in here too - and I know what you mean; I feel very strongly towards Construct 2 now, and it'll take one hell of a game making environment to make me switch away from it now. Something in between the lines of "read my mind and make the thing" ^_^

    If I may be so blunt as to ask; have you come up with the concept yourself...?

    I was thinking that it reminds me very much of a soccer game I once made, which was a remake/clone of a facebook game. It was back in my dark Adobe Flash (AS2) days... But you've introduced traps, and that gives the game a whole new dimension!

  • I've tried this, and my guess is it's something with your sound.

    Try to delete all sounds and sound references in a "save as" project, then export it to html5 and test on mobile again; does this make it work?

    If yes, then I think it may be the ogg vorbis creating the issue, but I may be wrong here; I haven't gotten around to testing myself, as I'm pretty new to Construct 2 also - and my main focus has been on the events/programming and making graphics... ^_^

  • It also means that the performance of Safari and other 3rd part web browsers (such as Chrome) are more on the same level (if the publisher updates the app to take advantage of all the new opportunities).

    I'm impressed how fast people have updated; and also somewhat impressed with how Apple managed to £$ up with the initial 8.0.1 update ^_^