dop2000's Forum Posts

  • Many old behaviors and plugins remained mostly unchanged since Construct 2. You can install C2 and find their source code in \Exporters\html5 folder.

  • I have seen this with some addons. Press F12 and check error messages in the console log.

  • So, if I understand correctly, you want to resize the viewport to show as much of the tilemap as possible, but without cropping the tiles at the edges?

    I think you can use System action "Set canvas size" to resize the viewport. To calculate its size add PlatformInfo object to the project, it has WindowInnerWidth and WindowInnerHeight expressions.

    Another option is to use Scale Inner or Scale Outer mode and let Construct to resize the viewport automatically. You can use a couple of black sprites to cover partial tiles at the edges if you wish.

  • There is an addon for pathfinding on a tilemap called EasyStarJS. Not only it's much faster, it has tons of features and allows to mark specific tiles as obstacles, change their cost etc.

  • There is a Cordova plugin which allows to send SMS:

    github.com/cordova-sms/cordova-sms-plugin

    You have two options:

    1. Export your game as Cordova project, manually add plugin to the config files. Also add JavaScript method calls like sms.send(...) to your events. You will have to build the Android app using Android Studio or Cordova CLI.

    2. Find someone who could convert this Cordova plugin to C3 addon.

  • Have you tried pressing F12? Look for error messages there in the console tab.

  • patolinopateta If you need all 300 sprites in the same layout, then it doesn't matter if they are separate sprites or a single sprite - you can combine them into one object for convenience. But if you don't need them all in one layout, then it's better to have separate sprites to save memory. Add all sprites to a family to optimize your code.

    Also, please don't hijack others' topics.

  • No, that's not possible. The only way to refer to a specific instance inside an expression is by IID. For example, Sprite2(9).x where 9 is the instance IID.

    You can also make a function which will pick Sprite2 instance and return its x or y. In this case the expressions may look like this:

    Sprite1 set position to X=Functions.getSprite2X("right"), Y=Functions.getSprite2Y("right")

    .

    Instead of System Pick condition you can use Sprite Compare Variable condition - it works the same way, but will look better in the event sheet.

  • The easiest option is to manually stretch the tilemap in layout editor and fill it with tiles. Tilemap uses very little resources, so you can make it really big if you want.

    In most cases in C3 you don't need to know window size or handle Browser.OnResized if you use the right scaling mode. Check out this tutorial:

    construct.net/en/tutorials/supporting-multiple-screen-17

  • This will be very difficult to do with Text object, because fonts are rendered differently on each device. The easiest solution is to put each line of text into a separate text instance.

  • It's a known issue.. I have to manually move all texts up in the project when I export for iOS.

    github.com/Scirra/Construct-3-bugs/issues/4711

    github.com/Scirra/Construct-3-bugs/issues/4984

    github.com/Scirra/Construct-3-bugs/issues/5486

  • Lucas Jogos My reply was for evaristo24. If you have a question about blogger.com API, you should probably create your own thread.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • evaristo24 I don't know if you can use google drive for this task. The file should be available for unregistered users and in clear text format, google drive doesn't support this.

    Try searching for some other service which allows to share plain text, here is an example with pastebin:

    https://pastebin.com/raw/s0KccyVC

    If you create an account at PasteBin, you will be able to edit your pastes (which you will need to do when you release a new version).

  • + System: On start of layout
    -> AJAX: Request "https://mywebsite.com/app_version.txt" (tag "ver")
    
    + AJAX: On "ver" completed
    ----+ System: ProjectVersion < AJAX.LastData
    -----> Browser: Go to "https://play.google.com" (target self)