vagaev's Forum Posts

  • I think this is possible if you mess with physics behaviors. Basically you will need to divide the loop into 2 pieces that will have different proprieties but form one object

  • Does the player has scroll to or bound to layout behaviors?

    I don't really know why it is occurring.

    Try on start of layout->scroll to object; player.

    Ps: try to resize your FF window size. Just curious

  • dude you cannot posts url :p

    Drop me a mail at agaev.vladimir(at)gmail.com

  • Or you can use web storage local values

  • If you want to add ads to make money you will have to be premium with cocoonjs. Sign up with mopub and use admob via mopub. They will give you a unique code you will have to insert when you will upload your app to cocoonjs site for final compiling. But before this you will have to program the apparition of ads in your give through cocoonjs plugin.

    For a link to a website try iframe (in custom plugins forum section)

  • Can you link your capx ?

    did you put scroll to behavior and platform behavior on the player?

  • <div class="post-censorship-notice">vagaev can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?</div>

    vagaev can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?

    I have a good example ( i guess) on how to adapt your game to multiple ipad and iPhone resolutions.

    Here scirra.com/forum/viewtopic.php

  • Here are some ratio and resolutions comparisons

    http://en.wikipedia.org/wiki/Graphics_display_resolution

  • Here is an example that works on iphone5 and all ipads (haven't tested it on iphone 4 though, it has a 3:2 ratio)

    The WINDOW PROJECT is set to 1024, 768. It's a 4:3 ratio

    So it's designed for the smallest resolution.

    But the Layout size is designed for the bigger resolution. 768,1366 it's 16:9 ratio

    So when the window will zoom out to SCALE OUTER the 16:9 ratio we won't see the white lines because the layout will be big enough to cover it.

    However. If you don't use anchor behaviors on all your active and interactive game objects (don't use on moving objects though) all the positions will be changed because the screen windows is changing with the resolution (it's adapting from ipad to iphone5 screen). But if you put anchor behavior the relative position of all of your stuff would be conserved.

    Notice the Layout size: 768,1366 it's 16:9 ratio. that's because the layout must to be big enough to fit the iphone 5 resolution screen. Ipad resolutions are relatively smaller. For 768p the 4:3 ratio of the ipad has 1024 instead of 1366, about 100 pixel white stripe!!!. So if you design your game for ipad it will run perfectly on it but will have white stripes issues on larger resolutions such as ipod ones. So ALWAYS DESIGN YOUR WINDOW FOR SMALLER RATIO/RESOLUTION BUT YOUR LAYOUT SIZE FOR THE BIGGER RATIO/RESOLUTION.

    But if you look to the scroll to function you have (383, 683) -->actually it has to be 384, 683. Dunno why i wrote 383.

    We want to scroll to the center of the screen may it be a 4:3 or 16:9 ratio or even 3:2. It will be approximatively in the center of Layout

    To illustrate once more. I mentioned i haven't designed my game for iphone 4. (3:2 ratio)

    So how will i do it? Simple!

    I pick a window size compatible with 3:2 resolution (try to pick the nearest from 3:2, to 4:3 and 16:9 so distorsions will be minimal). Place your objects considering you have a 3:2 ratio game. Then anchor stuff. Make sure you layout is big enough to fit the bigger resolution and enjoy.

    You will have to check that your anchor behavior worked well though. Sometimes you have to mess with settings.

    Another alternative is pin to object. You create an invisible sprite with window's size and you pin stuff on it. But anchor is better.

  • You have to use aspect ratio instead of resolutions.

    I will illustrate with an example. Let's say you want your game to play on ipad and iphone 5.

    Well ipad is 4:3 ratio with 1024*768 for ipad 1 and 2 and higher for ipad 3 but we don't care. All we need is to pick a 4:3 compatible resolution.

    Iphone 5 is 16:9 ratio (you can pick any 16:9 resolution BUT bigger than the 4:3 one).

    Your goal will be to be sure that your layout is big enough to fit into 2 given resolution.

    You have to pick the smallest resolution. Basically the smallest resolution that fit 4:3 and 16:9 without being too small and design your game for it.

    When it's done you will make a condition every tick, scroll to (the center of the screen).

    You will have to put anchor behavior on all the objects and stuff in order to maintain their relative position to the window.

  • <div class="post-censorship-notice">vagaev can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?</div>

    vagaev can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?

    Don't really know but this might help youtu.be/ac8VDNN5x7c

  • Here is a working logic.

    Don't forget to set int or it won't show on mobiles.

  • I will use your topic to ask a question to austin .

    I've sent a mail about that but still haven't get a reply.

    What about the clay.io advertisement plugin. (scirra ads) It does not work in C2.

    I would really like to implement some adc in my html browser game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all

    How to get premium in cocoonjs? Is this the easiest way to get ads in your app?

    Yes it is.

    Curiously they made me premium in 1 day. Sometimes you have to wait 1 week.

    But i believe if you present your project very well it will be fixed very quickly

  • It's 260 *260 instead of 120*120.

    But it's my fault i made 4 bubbles in illustrator and decided to add a 5th a week ago.

    I will redo all he bubbles.

    Lol that's why game design before production is important