RafaelMatos's Forum Posts

  • I tried in many ways, by creating an object with scroll to behavior and every tick following the touch X and Y, by using scroll to of the system.... Nothing works. Any idea?

    Thanks.

  • For it to work as an app on android you need to compile it into an apk file and sign it. I'm not familiar with the newer methods of doing this with C2, last time I did it CocoonJS (Which now appears to be completely removed ) was the preferred option. The new C2 exporter for Android is crosswalk, so I would assume that tutorial is up to date.

    NB: Crosswalk works for Android ICS(4.x.x) and upwards, you may still need to use phonegap to export to lower versions if needed.

    I'll look at it later. Actually, in the Android options, you don't have any other choice to export.

    Well, I hope all the tutorials about it is up-to-date. Thx.

  • kossglobal,

    maybe I am misunderstanding you but generally speaking, I think you should not go there.

    How ever, if you must, then look at your index.html file and find this line:

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />

    Have fun,

    V

    Thanks man. I think I'll do an auto zoom according to the object's position. Better this way I guess

  • That kind of zoom that player drag with two fingers in opositive directions. Any idea?

  • You can either export it using whatever the current android exporter is (still cocoonjs?) or you can preview it on your phone using your phone's browser.

    The latter can be done by, within construct, clicking file -> preferences -> preview; then, on the 'Preview on LAN address:' click the [...] button. A new window should appear, select your local network address and so long as the phone you want to test is on the same network as your pc, you can go to the browser on your phone and connect to the IPv4 address of the computer you're previewing it on with the set port (default 50000) and then you can test!

    NB: This requires administrative permissions on the computer you're testing from.

    That's what I got by exporting to Android.

    Edit: is it still up-to-date?

    https://www.scirra.com/tutorials/809/ho ... -crosswalk

    Edit2: I'm testing it right now and it's pretty cool! =P...I didn't try to export though. I think I'll learn about it later.

  • I've made the basic mechanics and tested it in my browser Chrome, but now I need to export it and play in my android in order to test the game. How do I do that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want to increase performance I guess creating all your events in groups could help a lot, so any specific action will be read only when necessary

  • Ive never used zoom before but I think you can do it by adding +1 or -1 every tick while zoom is less than 100%

  • > On mouse click c2 detect the object that is on top in the Z order. So if its not working, try to send it to the top of all objects that u have on that location.

    >

    > Example:

    >

    > Layer 1

    > Obj1

    > Obj2

    >

    > Layer 2

    > Obj3

    > Obj4

    >

    > Layer 3 (Background)

    > Obj5

    > Obj6

    >

    > If the object 1 and 3 is on top of each other, your click will get the object 1. If they are not, obviously you will be able to click on both.

    >

    Not true kossglobal.

    See the example file above, it tells me that the z order is not important and a single left click is firering through all sprites below the mouse cursor.

    Sorry, you are right. Well, I think you can get the UID of all objects that you got on that click and filter which one is to do the action you desire.

  • I've already made it, but thank you for your help.

    I did this

    If ShotStrength <= 7000

    ShotPowerBar.MAXWidth*ShotStrength/ShotStrengthMAX

    This way I always find the % of my max power and then I multiply it to the max of my width bar

  • On mouse click c2 detect the object that is on top in the Z order. So if its not working, try to send it to the top of all objects that u have on that location.

    Example:

    Layer 1

    Obj1

    Obj2

    Layer 2

    Obj3

    Obj4

    Layer 3 (Background)

    Obj5

    Obj6

    If the object 1 and 3 is on top of each other, your click will get the object 1. If they are not, obviously you will be able to click on both.

  • While I'm pressing a button it keeps adding 15 every 0,0001 seconds to a variable XYZ. I want to match StrengthBar's Width to this value, but I need to do it in % since the Strength will have higher values almost all the time and this bar can't grow inifinitly.

    To sum up, I need to take the strength value (variable) and make the StrengthBar grow without exceeding the value 209.821.

    Could some help me please?

  • Do it and you will realize

    It changes speed's object instance only

  • Try to randomize the speed right before spawning the bullet...I think once created u can't change the speed I guess

    it's like

    1º bullet - set XX speed > Spawn bullet

    2 ºBullet - set YY speed > Spawn bullet

    the random expression is "random(x,y)". X and Y are the range of numbers that u randomly get