dop2000's Forum Posts

  • Did you set both parallax values to 0%?

    There are plenty of examples in C3, you can open them to see how UI is made. Use "Browse examples" button on the start page.

  • Put the healthbar on a separate layer. Set parallax 0% for that layer.

  • You can use CSV file format - export the table from Excel or Google Sheets to a CSV file, add this file to the project. Use CSV2Array addon to load it into an array at runtime.

    But personally I think using the array editor in C3 and simply copying/pasting text between it and Excel is a much easier option. I do this all the time.

  • Add a new condition or press "C" to add condition to an existing event. Select "System" object, find "Compare two values" condition in the list.

    In the first field put Bullet.count, in the second field choose =Equal to and in the third field put 0.

  • 1. You can add another condition to the event where you spawn a bullet:

    System Compare Two Values Bullet.count=0

    2. You can try something simple like this:

    Turret set animation frame 1
    Wait 0.1s
    Turret set animation frame 0
    

    Make sure to set the default animation speed to 0 in the sprite editor.

  • Setting the origin image point correctly should definitely fix this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you need to generate a random integer number within a range, you can use random() expression, for example:

    Set r to int(random(10, 15))

    This will produce one of these numbers - 10, 11, 12, 13, 14. Note, that it doesn't include 15.

    EDIT: If you need to place something within 10px of Platform.x, you can use random(Platform.x-10, Platform.x+10)

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