dop2000's Forum Posts

  • relixes c3p is actually a zip file. You can rename it to zip, unpack into an empty folder and search for the plugin name in project files. For example, if you search for "MoveTo", and it's found in Character.json and Enemy.json, you will know which two objects are using this behavior.

    It's the same in C2, only easier, because all objects are listed in one .caproj file.

  • is it possible to have multiple return values, also to name those as well?

    mOOnpunk Say, you have a function that returns player health, player speed and player name. So how are you supposed to call this function in an expression?

    If you need a function to "return" multiple values, you can do this by writing them to global variables, or to an array/dictionary, or put all values into a single string (comma-separated for example).

  • You can add all objects to a family and use Family.ObjectTypeName expression.

    There is also "System Pick last created" event which may be handy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great feature, can't wait to use it!

    Ashley, could you make it so that function parameters are displayed with their default values? For example, display "number playerScore=0", instead of just "number playerScore".

    Also, do I understand correctly that the default value for each parameter will be automatically suggested when you are adding an action or expression to call this function?

    Will it be possible to omit parameters when calling a function, if you want to use their default values? Or maybe hide parameters with default values on the event sheet. This will make function calls shorter and easier to read.

  • dhoeke No, it's a valid usage scenario. He's trying to make a destructible terrain, see this post:

    construct.net/en/forum/construct-2/how-do-i-18/simple-scorched-earth-worms-ga-129595

  • It's a name of the loop index variable. In case you have multiple nested loops you can access each loopindex using loopindex("name"). For example:

    For "a" from 1 to 5
    ..For "b" from 1 to 10
    ....Create object at x=(loopindex("b")*60), y=(loopindex("a")*40)
    
  • You can do this in a loop, for example to set layers from 5 to 10 invisible:

    For "n" from 5 to 10 : Set layer looopindex invisible

  • Did you see my example? There are only a few events and you can probably modify it to your needs.

  • When you change Bullet speed to 0, bullet angle of motion is also reset to 0. So when you you set speed back to 500, the sprite moves at angle 0, which is to the right.

    You need to set angle of motion to 90 degrees in event 2.

  • After you open ZOrder bar, click anywhere at the empty space on the layout.

  • I don't really understand your code. I'm guessing the text instance is not getting destroyed or something like that.

    See this demo, is this what you are trying to do?

    dropbox.com/s/9w7iz1x58rp7e9f/WordsDragNDrop.capx

  • If you want to move an invisible sprite, then you don't really need MoveTo. You can simply change player position after a delay. Say, wait or start a timer for distance(player.x, player.y, destinationX, destinationY)/100, and then set position to destinationX, destinationY. This will be the same as moving an invisible player at speed 100px per second.

    But I agree that MoveTo plugin should be included in C3 by default. There are so many situations where it's needed and it's not always possible to replace it with Tween/Bullet/Pathfinding or some other behavior.

  • Your Disparo sprite is destroyed by Fade behavior before On timer event is triggered.

    You can easily resolve issues like this yourself if you run the project in Debug Mode!

  • You can try contacting the author:

    readymag.com/valerypopoff/portfolio