RafaelMatos's Recent Forum Activity

  • Anonnymitet

    Thanks man. It worked. I've extended both sides to cover everything. The important is that now it's in the middle of the screen on my Pc and Android.

    jeffige

    Thanks for the reply man. I'll look at it too.

  • It's my starting screen

    I'm using everythick > set position to windowsWidth/2 but its not in the middle of the screen.

  • When the message show up > Set the time scale to 0 (in the system events)

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • 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.

RafaelMatos's avatar

RafaelMatos

Member since 8 Mar, 2014

Twitter
RafaelMatos has 1 followers

Connect with RafaelMatos

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies