WackyToaster's Recent Forum Activity

  • The simple solution for this is exactly what you described. Create a Sprite that contains all the individual broken-off parts you want. Then whenever a ship is destroyed you'd do something like this

    Make sure animation speed is set to 0 for the pieces. I also used a variable on the ships family since some ships might break into more or less parts.

  • I've only experienced this with image points. I'd do an apply to all frames which works, but when I switch between the animation frames, it suddenly reverts. It doesn't happen too frequently though, just every once in a while.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I tried but it cannot be blocked. Unless there's some trick to it... You probably have to change the button.

  • I tend to lock my buttons via a timer or tweens usually. On press start a timer/tween and then in the conditions check "is NOT timer/tween playing"

  • Bugs should be reported to the issue tracker

    github.com/Scirra/Construct-bugs/issues

  • There's actually a specific action for this which is recommended to be used. From the manual:

    Sort Z order

    Sort the Z order of instances of a given object according to an instance variable. This effectively removes all instances from their Z order, sorts them, then inserts the sorted sequence back in to the holes left behind. This means if the instances are spread across a range of layers, they will be sorted in the same Z order locations, maintaining the same order relative to other instances on those layers. Note this action is much faster than using an ordered For each with an action like Send to front/back, so this action should be the preferred way to sort the Z order of large numbers of instances.

    So it should look like this

    Keep in mind that in your case, you most likely want to sort depending on where the objects feet are (the bottom of the sprite) and not the sprites Y position (which could be in the middle of the sprite) So you can set the variable to self.bboxbottom instead.

  • As the tutorial mentions you can try and use the spreadsheet API

    developers.google.com/sheets/api/quickstart/js

    It doesn't seem terribly complicated, that is if you know some javascript...

  • You kind of can.

    construct.net/en/make-games/manuals/construct-3/system-reference/system-actions

    Although I'm not sure how well it works. Loading a new layout is generally near instant. I'd argue if you absolutely need an instant change, then maybe splitting it up into two layouts is not the right approach. Maybe have two layers instead that you set visible/invisible instead.

  • In this case you don't need an else. If you click the button the first time, the condition (left side) will be true, so the actions (right side) will be executed. The second time you click the button, the conditions will be false, so the actions will not be executed.

    A different story would be for example if you want to play a sound that is either "success" or "error". In that case you want a specific set of actions to play depending on the conditions. So you'd do

    if not cow in array -> add cow to array, play success sound

    else -> play error sound

  • Yeah that pretty much is correct. When the value is not in the array, IndexOf(value) will return -1

  • It sounds like it was never meant to allow for multiple flowchart controllers in the first place. Could be an oversight, or it's just a bug. Since the big flowchart thread is unstickied at this point I'd just post a bug report and see what happens. Ideally I'd prefer that it's possible to have multiple flowchart controllers.

  • There's also the specific "contains value" condition

    Contains value

    earches the entire array to check if any of the elements contains the given value. For example, you can use this to test if the string "sword" is stored anywhere in the array.

WackyToaster's avatar

WackyToaster

Online Now

Member since 18 Feb, 2014
Last online 23 Dec, 2024

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs