dop2000's Forum Posts

  • You do not have permission to view this post

  • You can't do it. You need to insert this variable into the text with events.

    I usually do this with replace() expression. For example, in the array file I have this text:

    Gold: %coins%
    

    Then I replace %coins% tag with the actual number of coins:

    CoinsText Set Text to Array.At(....)
    CoinsText Set Text to replace(Self.Text, "%coins%", CoinsVariable)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use AdvancedRandom permutation tables when you need a sequence of non-repeating numbers.

  • You can make the main object with Orbit behavior invisible and allow it to go through the ground. Add another (visible) sprite and set its position on every tick to: X=Main.X, Y=min(Main.Y, Ground.bBoxTop)

  • The first one is correct. However, if you have multiple instances of Text3 object, it may not work as you expect.

  • Direction box also should not be solid. Only obstacles need to be solid.

  • Have you tested if this delay actually happens in NWJS export? Maybe it's just the browser thing.

  • I don't know why, but for me Chrome always autoplays music straight away - I can launch chrome, load C3, open a project with music, press F4 to preview and the music will play without any interaction from me.

  • CowboyToadTeam claims that audio doesn't work in preview. Browser autoplay restriction should not affect the preview. Also, if this was related to autoplay restriction, playing audio in "On Tap" event should have fixed the issue, but it didn't.

    CowboyToadTeam Have you tried other audio files? Maybe there is a problem with this particular track. Try converting it to other formats, like mp3 or wav. Also, try running the project in Debug mode and check if Audio object is playing this track or not.

  • I'm not sure about SQLite, but there are a few tutorials about using Construct with PHP+MySQL:

    construct.net/en/tutorials/search

  • 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.