dop2000's Forum Posts

  • Vector X can't be greater than platform maximum speed.

    Also, if you apply it only once, maybe the character decelerates immediately, that's why you don't see it moving.

    Try using "Is Key Down" event instead of "On Key pressed", press and hold the M key and see if your character moves.

  • Yeah, I don't use function maps for that reason. If I need to call a function by name I do it with scripting:

    runtime.callFunction(localVars.fName)

    Where fName is a local variable containing the function name.

  • Thank for your reply, but I've meant rgbEX not regex!

    Sorry, my bad :)

  • You can use native JavaScript methods to work with regular expressions:

    w3schools.com/js/js_regexp.asp

    Same probably goes for color conversion and other common C3 functions.

  • There is no such thing as tile origin point. And TileMovement behavior works with top-left point of the tile by default.

    So if you have origin image point in the center for sprites with TileMovement behavior, you need to set the correct X/Y offset in TileMovement settings.

    This is English forum, you need to post in English..

    In Russian:

    Это англоязычный форум, допускаются посты только на английском.

    По констракту есть несколько русскоязычных ресурсов, советую спрашивать там:

    prodevs.ru/forum

    vk.com/prodevs

    OR красного цвета чтобы было лучше видно :)

  • I think you can set the origin point in the center and simply configure Grid Offset X/Y settings in TileMovement behavior.

  • Use Platform Is Moving condition. There are many game templates in Construct, you can study them to see how animations are changed there. Click "Browse examples" button in the start screen.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Setting the origin image point correctly should definitely fix this.

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