dop2000's Forum Posts

  • Run this script on start of the game/layout:

    // disable default Tab and Enter key behavior
    window.addEventListener('keydown', ev => {
     if (ev.keyCode===9 | ev.keyCode===13) {
     ev.preventDefault();
     }
    });
    
  • You need to remove 8direction and Solid behaviors from Player sprite. Only one sprite (PlayerBox) should be controlled with 8behavior.

  • What about Asian languages like Korean or Japanese, how does one even approach that since left-to-right is also an issue?

    I've implemented Korean and Japanese in one of my games, didn't have any problems.

    Or did you mean "right-to-left"? I never tried languages that use right-to-left script.

  • It's a custom ease (see Eases folder), you need to copy it to your project.

  • Just create/spawn a sprite with Bullet behavior and it will automatically fly at its current angle. It's a very basic behavior and very commonly used. Definitely doesn't require a turret.

    You can make the bullet chase enemies by setting its angle towards the target on every tick.

    You can use MoveTo behavior too for guided bullets, but you'll also have to move to enemy position on every tick.

  • As I know Bullet behavior doesn't work without turret?

    Of course it works by itself.

    The difference between Bullet and MoveTo is that Moveto will stop at enemy position, but Bullet will continue flying.

    .

    Turret can shoot at multiple enemies, but it needs time to turn to each of them.

  • I don't know what all these errors mean. Are you running the project in preview mode, or is it exported? I would try a different browser.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A big update - 9 new examples on HowToConstructDemos.com !

    LINK Auto-fill Collision Map for top down games

    LINK Bend a sprite using three control points. (Credit: R0J0hound)

    LINK A simple puzzle template where your goal is to move all blocks into green slots.

    LINK A circular progress bar made with mesh distortion

    LINK Cut an image into irregualr shaped pieces

    LINK Push multiple boxes in a top-down view game

    LINK Filter typed characters in a TextInput box

    LINK Prevent multiple enemies from overlapping when they are chasing the player

    LINK Asteroid Belt made with Orbit behavior

    I also released a new paid template - Multi Language Support for C3 Games,

    where I compiled all the different mechanics I use for localization of large Construct 3 projects.

    Try this demo in the Arcade to see it in action.

  • You still have mistakes in your screenshot - the second action should be "Set Y" and there is still wrong layer name in it.

  • You made a mistake in layer name - it's "Layer 0", not "layer0"

    Also make sure that ScrollTo behavior is added only to the camera sprite.

  • Try changing your code like this:

    Every 0.5s
    System For Each spr_R
    spr_R is overlapping Enemy
    
    ... spr_R pick parent spr_tower
    ... For Each Enemy
    
    ...............
    

    Also you should probably use Bullet behavior for bullets, unless you want them to work like guided missiles.

  • It may be browser limitation. Try playing the audio in "Touch on Tap" event instead of "On start of layout".

    Also press F12 in preview and check if there are any error messages in the browser console.

  • When dealing with strings in expressions, you need to wrap them in quotation marks - viewportwidth("sfondo2")