dop2000's Forum Posts

  • It's easy to do with Bullet behavior. Give it gravity and set "Bounce off solids=on".

  • What is "side scroller" behavior? I've never heard of it.

    Check that you are spawning projectiles on the correct layer with 100% parallax

  • With so many different conditions it's tricky to make such code work corectly. Also, OR-blocks in Construct are difficult to work with. I would suggest changing the entire thing like this:

    On every tick
    For Each Button 
    
    .. Local variable activate=0
    
    .. Player overlapping button
    .. OR Boulder overlapping button : Set activate to 1
    
    .. Enemies animation "IceGiant" NOT playing
    .. Enemies overlapping button : Set activate to 1
    
    
    .. Enemies animation "IceGiant" IS playing
    .. Button has LOS to Enemies : Set activate to 1
    
    
    // And now you check if the button should change its state
    .. Button is activated
    .. activate=0 : Button set activated to false, play sound
    
    .. Button is NOT activated
    .. activate=1 : Button set activated to true, play sound
    
    
  • That's because you are using the "Wait" action wrong and picking the same one instance! See my screenshot.

  • If you want to delete 5 sprites in the order from nearest to furthest with a small delay between them, try changing the code like this:

  • Is this loop nested under some parent event? You need to explain the task.

    The code you posted will destroy only one SpritesA instance at a time. Even if there are 100 sprite instances on the layout, the loop will repeat 101 times, but every time it will be picking the same single instance - closest to (0,0).

    Then after 0.07s delay it will destroy this one instance 101 times :)

  • Loading remotely is easier for for future edits because base game remains the same however if for web including the file in the project makes it harder to see then the effort would be worth it.

    If it's a web game and you have access to the server where it's hosted, you can simply update the json file, without re-uploading the entire game.

    Loading json from the same server should be more secure.

  • Press F12 in preview and check for error messages in Console tab.

  • No need to use an addon, there is now an official Cryptography plugin in C3.

    But 100% protection is still not possible, this will only make the job a bit more difficult for hackers.

  • In a web game I would say it doesn't matter.

    In a desktop export it will be much easier to access this file when it's included in the project. But even if you download it in runtime, it will still be possible for people to intercept it.

  • You can implement some encryption or hashing:

    howtoconstructdemos.com/protect-sensitive-data-in-your-game-from-cheaters-and-hackers

    It will still be possible to hack your game, but this will take considerably more effort.

  • The on timer trigger doesn’t seem to trigger for each instance individually. Instead all the instances that finished their timer in the last tick are picked in the trigger.

    Yeah, I always wondered if this is intentional or a bug. Most (if not all) of other triggered events in Construct trigger for each instance.

  • You should never use "trigger once" with objects that have multiple instances. I bet that's what causing the issue. "Trigger once" doesn't work per instance. Once the condition is true (and stays true) for one instance, it will never trigger again for other instances.

  • What exactly isn't working? Do you see the text changing?

    You should avoid pinning/unpinning on every tick, it's better to move those two events inside the "On E pressed" trigger.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should use "set angle of motion" action. Or change the "set angle" checkbox in Bullet properties.