genbatzu's Forum Posts

  • I've no idea how I should test this, and the 4 step how-to on the download page doesn't help me either ._.

    is there a beginner friendly way to test this?

    Currently I'm exporting with CocoonJS and have the problem of long loading times and lags. (as discussed here)

  • thanks Vuuv, then I'll stick with CocoonJS for now and have to figure out how to minimize it further. It's kind of crazy what ideas one can have when needed ^^

    cut my tiled background into 3 parts, removed 2nd part and replaced it with background color, no visual difference but saved memory, reducing the animations also helped and is not really noticable

  • thanks for the infos Ashley!

    I got the Approx. Download down from 3.3MB to 1.3MB thanks to changing it to png8 and jpg. However, as you said, it had no impact on the memory usage.

    I had a (very) quick look at Crosswalk and it seems to only supports Android?

    Ejecta looks really interesting, do you have an estimate, when "soon" is for this exporter? =)

    How is PhoneGap? In one of your tutorials you said that Games can be very slow with it

  • thanks vtrix, but the game should work completely offline <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    back to the PNG32/8 issue.

    All(!) of the images are in PNG-24, which is at least for 80% of them not needed, since they look the same in PNG-8, we tried it yesterday and are going to convert every image from 24 to 8 now, on an original image (still with 7016x4961px) the size was reduced from 2.2MB to 900KB.

    I'll post here the final result after all image reductions are in place

    /edit: ok, looks like construct 2 saves all images always in png-32, but has an option to change that at export

    for all who might stumble upon something similar:

    (https://www.scirra.com/manual/129/image-format)

    (https://www.scirra.com/manual/48/image- ... ons-editor)

    (https://www.scirra.com/blog/66/image-co ... onstruct-2)

  • What I've heard about some weakness about CocoonJS is that CocoonJS has been designed to load all the files when application starting. So I think there's nothing you can do unless Ludei updates their system.

    However, you can try resizing your images to be smaller, dropping the quality of them(like converting PNG-32 to PNG-8), or optimizing your game in other ways(Event optimizing, grouping, etc)

    thanks for the answer.

    I allready resized the images, since my first version was really unoptimized, with an approx. download of ~25mb and memory usage of ~280mb (according to construct 2) Now I'm down at 3.1MB download and 46.1mb memory usage. I don't think I can minimize the images any further, otherwise they would have a very bad quality on iPhone and iPad.

    I'll look into the conversion from PNG-32 to PNG-8, although I've currently no idea what "PNG-Version" my images have.

    When I thought about minimizing images I always gone straight for the resolution/pixels

  • Hi there!

    I have 20 images in my game which are used in a gallery and on the score screen. They are quite memory consuming on my iPhone 4 (via CocoonJS Launcher App, using Canvas 2D/WEBGL).

    my layout buildup is like this:

    title screen -> game screen -> score screen -> game screen or title screen

    gallery screen (via menu button on title screen)

    option screen (via menu button on title screen)

    hidden layout to initial spawn all highscore screens, otherwise I cant let them spawn in my gallery

    currently the game loads every single file (*.png) on start of the game, even if the highscore images arent used in the first 2 layouts (title screen -> game).

    This makes the game extremely laggy. If I remove all highscore images from the game it runs smoothly, so the problem is definitely with the images. strangely enough the gallery navigates without lag.

    Is there an option, that the game only loads the images when it is supposed to do it? ( gallery and score screens, NOT the beginning of the game)

    I also placed a "On Start of Layout => HighscoreParent -> Destroy" to every layout, but nothing changed (as expected)

    gallery image usage:

    score screen image usage

    thanks in advance for help! (=

  • Feel better?

    yes! thank you for the explanation

  • Hi there!

    I know a better place might be to ask Ludei directly, but it's always good to have a 3rd party opinion.

    I just read the Terms of Use for CocoonJS and stumbled upon these section:

    [quote:a0tijwfr]License Grant. By uploading User Content via the Services, you expressly grant, and you represent and warrant that you have a right to grant, and do so grant, to Ludei, a royalty-free, non-exclusive, worldwide license to use, reproduce, modify, publish, list information regarding, edit, translate, and make derivative works of all such User Content and your name, voice, and/or likeness as contained in your User Content, if applicable, in whole or in part, and in any form, media or technology, whether now known or hereafter developed, solely for use in connection with the Services. The foregoing provision does not apply to any User Content you upload, or any part thereof, that constitutes Ludei Marketing Materials as defined below. Ludei owns and reserves all right, title, and interest in Ludei Marketing Materials.

    By posting User Content to the Website, you expressly grant, and you represent and warrant that you have a right to grant, and do so grant, to Ludei a royalty-free, sublicensable, transferable, perpetual (for the duration of the applicable right), non-exclusive, worldwide license to use, reproduce, modify, publish, list information regarding, edit, translate, distribute, publicly perform, publicly display, and make derivative works of all such User Content and your name, voice, and/or likeness as contained in your User Content, if applicable, in whole or in part, and in any form, media or technology, whether now known or hereafter developed, solely for use in connection with the Services. The foregoing provision does not apply to any User Content you post, or any part thereof, that constitutes Ludei Marketing Materials as defined below. Ludei owns and reserves all right, title, and interest in Ludei Marketing Materials. If you delete User Content from the Website, we will use reasonable efforts to remove it from the Website, but you acknowledge that due to caching or references to the User Content, the User Content may remain available.

    my scenario will be something like this:

    • creating HTML5 game with Construct 2
    • optimize for iOS
    • upload to CocoonJS
    • upload to AppStore

    Since I'm not an english native speaker and kind of a beginner in terms of law and stuff I would like to ask this community here if I have to worry about my games if I upload them to CocoonJS, that they might just steal them and totally get away with it, because of these TOUs?

    If I'm totally wrong, can someone please explain this part of the TOUs to me? =)

    help would be much appreciated!

    greetings

    genbatzu

  • on your layout set unbounded scrolling to yes.

    and this might help also:

    BR

    perfect, thanks a lot! =)

    I was totally focussed on the main project settings and haven't thought about looking into each layout >.<

    also thanks for the link, will go through it when I've time, the pictures with the resolution helps a lot!

  • Hi there!

    I'm currently working on a small game for iOS Devices and to get all ratios in place is a real pain :/

    As far as I've tried, the best is to take 4:3 (all iPads) as standard ratio and expand to 3:2 (iPhone <4s) and 71:40 (iPhone >5).

    And it'll look like this if scaled:

    But actually it would be much better if it scales like this:

    is there a possibility to adjust this?

  • This Information with collision polygon is a very useful piece of information! thanks for that.

    I'll try it out (soon). I'm pretty sure it's helpful on a later project =)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your help Guizmus!

    My character is supposed to walk on the blocks, so I can't change the floor collision box. But I use the same Enemy (Sprite) for all Enemies.

    When you say "change collision box", how do I implement this exactly?

    What I can think of right now is an invisible box with the platform behaviour where I put the actual Enemy Graphic and use an "On Every Tick" Command to place the Enemy Graphic on top of the Enemy Box?

    But I just saw that I don't need the Platform Behaviour on the Enemies, since they don't move... My bad, It's a remnant from first design

    So I can easily change the behaviour of the Enemies. only Condition they have to have is : On Collision with Player -> Destroy Player. But I don't think it needs a behaviour for this.

    //edit: still not working with no behaviours (except Flash). So I think I've to go with the collision box change. Any further details on this would be very helpful

    //edit2: ok, strange it's working now with

    LayoutHeight - Block.Height - BlockHeightRandom + 40[/code:2u5xitoh], I tried with +20 and it didn't changed anything, so I reset to "+0" and all Enemies were floating over the blocks and +20 was the normal "on top of the blocks height" now, which makes +40 half the block size now.
  • Hi there!

    I'm currently building a "simple" Infinity Runner Level and just began to add Assets and Animation.

    I also spawn Enemies on the generated Platforms, which works fine. The only Problem I'm facing right now is, that the Enemies (Platform Behaviour) always spawns on top of the Platform (Solid)

    I am positioning the Enemy with this line of code on top of the block:

    LayoutHeight - Block.Height - BlockHeightRandom[/code:17q8gqvb]
    My understanding was, that I need to half the Block.Height, to get it of half the Block height, so I tried this:  [code:17q8gqvb]LayoutHeight - Block.Height /2 - BlockHeightRandom[/code:17q8gqvb] but nothing changed on the positioning of the enemy.
    
    I also tried [code:17q8gqvb]LayoutHeight - Block.Height - BlockHeightRandom -200 [/code:17q8gqvb] to see if it changes anything, but it doesn't.
    
    Last thing I tried was to set the origin of the Enemie higher and not bottom left. but that doesn't worked either.
    
    this screenshot shows the desired behaviour
    [img="http://abload.de/img/solid_platformw1xab.jpg"]
    
    [img="http://abload.de/img/blockcodeg1ymq.jpg"]
    
    Help would be much appreciated!
  • hi everyone! :D