dop2000's Forum Posts

  • Try "Tween one property" action.

    For example: Property=Y, end value=(Self.y+20), time=1, easing function=OutBounce.

    You can check how different easing functions work here:

    easings.net/en

  • Add this script to your first layout:

    window.addEventListener('keydown', ev => {
     if (['ArrowDown', 'ArrowUp', ' '].includes(ev.key)) {
     ev.preventDefault();
     }
    });
    window.addEventListener('wheel', ev => ev.preventDefault(), { passive: false });
    
    
  • The code on your screenshot looks correct - is should pick one bullet instance with disabled=false.

    The problem must be in some other event. Or maybe there are no disabled instanced. Try running the project in Debug Mode and check.

  • Create a rectangular Band sprite with origin image point set on the left (at x=0).

    On every tick set Band width to distance(self.x, self.y, mouse.x, mouse.y)

    and set angle towards (mouse.x, mouse.y)

    You can also decrease band height as it "stretches", for example:

    Band set height to lerp(20, 10, self.width/500)

  • Is this a top-down game? Why do you need Physics there? You can set physics gravity to 0, if you don't want objects to fall down.

    But if you just want an effect of the object falling down a few pixels and bouncing, it's much better to do this with Tween behavior.

  • You need to load this data into JSON object first, then parse, then copy to array. See the official JSON template:

    https://editor.construct.net/#open=json

    After parsing you can do:

    JSON For each entry in "response.urlLIST"

    and insert JSON.CurrentValue into array.

  • You need to report these things to bug tracker. Looks like someone already did:

    github.com/Scirra/Construct-3-bugs/issues/5159

    Beta versions often have issues, that's why I always use stable version.

  • If you only need to store 0 and 1, you can use setbit/getbit expressions. There was a post about them just today:

    construct.net/en/forum/construct-3/how-do-i-8/someone-explain-setbit-164563

  • It's not clear - what do you store in this array?

    Do you have just one instance of "coins" sprite on the layout? You are checking 40 rows in the array and possibly changing coins animation frame 40 times, so only the last time will count.

    If you have 40 instances of coins sprite, then you need to pick the right instance inside the loop.

  • Instead of "trigger once" try "Tween is NOT running" condition.

  • If you are not familiar with the binary system, look it up in google, there are tons of tutorials and videos.

    Any number is made of bits. For example, number 14 is 00001110 in binary. Setbit and Getbit allow to access individual bits in a number. Basically, this allows to use a single numerical variable as a small array of bits.

    For example, you might have 10 treasure chests in your game and you want to keep track of which chest is closed and which one is open. The usual way to do this is with an array. But you can also use a single global variable ChestsStatus to store this information for all 10 chests.

    When a chest becomes open, Set ChestsStatus to setbit(ChestsStatus, chestNumber, 1)

    This will set the bit for this chest to 1, which will indicate that this chest is open. Then you can save ChestsStatus variable to local storage, and later retrieve the information about open chests using getbit() expression.

  • You can't load this data directly into an array. Arrays in Construct require a specific JSON format.

    So you will need to extract high scores from the LeaderboardJSON object. There is a template in C3 demonstrating how to work with JSON object, check it out.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Definitely need them back soon. I'm missing many replies in topics which i used to follow.