dop2000's Forum Posts

  • You do not have permission to view this post

  • If you configure the right grid size for pathfinding and disable diagonals, it should work. Also you can use MoveTo behavior to move along the pathfinding path - it will move strictly from one point to another, not cutting corners.

  • Overlay mixes background with foreground, you can google about how it works. If you want to change the color, you might try a different effect - for example Tint, Set Color, Replace Color etc.

  • Oh, Construct is not supposed to run at fps <30. The game will slow down because the delta-time (dt) can't be greater than 0.0333

    Of course the best solution would be fixing whatever is causing bad performance. If this is not possible, then I guess you will have do sin calculations in events, without Sine behavior. And you'll have to use the device clock to get the actual delta-time value.

  • All behaviors are framerate-independent, Sine including. Unless fps drop below 30, it should produce consistent results.

    Can you post your project file, demonstrating the problem? Maybe the framerate is not the issue.

  • You can round to any number of decimals, for example:

    Set var to round(var*10)/10 will give you 12.4

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • No. That's why I don't like using boolean variables in Construct, you have to add unnecessary additional events just to compare or change them. Number variable type is more flexible, just set it to 0 for false and 1 for true.

  • You can right-click the family name, choose "Select all in project" and then change the sine settings. New settings will be applied to all family members in the project. Next time if you add a new sprite to this family, it should have correct default settings.

  • It's not a very good method. Pretty much any touch will be considered as swipe, even if you touch and hold, or move your finger slowly, or in a circle.

    I would suggest using Touch.SpeedAt(0) and Touch.AngleAt(0) experssions.

    In "On Touch End" check that Touch.SpeedAt(0) is above some value, then you can compare Touch.AngleAt(0) to get swipe direction. Use "System Is Between Angles" or "System Is Within Angles" for that.

    For example:

    Touch.AngleAt(0) is within 30 degrees of angle 270 - this means it's a swipe up.

  • You can use Drawing Canvas to create a shadow copy of the character (especially useful if the character is animated), or to create a mask object.

    Here are two examples, based on oosyrag's demo:

    dropbox.com/s/58u0evqtmwgzcvi/zShadowExample.c3p

    dropbox.com/s/g4tkuflt1h9p3fo/zOutlineExample.c3p

  • Check out this demo:

    howtoconstructdemos.com/z-sorting-in-an-isometric-view-game

    Edit: sorry, didn't realize you need to show the part which is hidden behind an object.

  • You can do something like this:

    Brick On Destroy 
     Wait 0
    	System Pick All Brick
    	System Pick Random Brick
    		Brick Set color.....
    

    "Wait 0" may not be needed, you can try without it.

  • It's not possible to access variables by names like that in events. Consider using a dictionary instead. With dictionary you can do Dictionary.Get(fruit&"GenNo")

    .

    You can access variables by name using scripting:

    runtime.globalVars[localVars.fruit+"GenNo"]

  • You can try to slightly push the player back when it collides or overlaps with the enemy. Use "Set vector X" action and apply vector in the opposite direction from the enemy.