dop2000's Forum Posts

  • What exactly doesn't work?

    Check out the JSON template, it shows how to parse a similar data.

  • There is a lot of content, many character animations, a lot of logic to program. So while it's possible, this will not be an easy or fast job.

    In Russian:

    C3 подходит для этой игры, сделать ее однозначно можно. Но объем работы может быть большой - много анимаций, графики, много программирования.

  • The Object TextBox does not exist anymore in Construct 3.

    Do you need Text object or Text Input object? Both exist in C3.

    For Text you can set object width and wrapping in properties, and the text will automatically wrap to a new line.

    If you need to adjust the size of the green sprite to the text size, see this demo:

    dropbox.com/s/f789oo50lr7bvy7/SpeechBubble.capx

  • When you are picking by UIDs in sub-events, you need to add "For each Buildings" loop to the parent "is overlapping" event. Otherwise your code will only work for the first building/player instance.

    I have two very simple demos for z-sorting, check them out:

    dropbox.com/s/lbewjvv6rekd2na/IsometricForest.capx

    dropbox.com/s/6num28c6nf9qhfb/ZOrderBuilding.capx

  • Your Else condition is hanging, it does nothing. Try changing it like this:

    ...
    Else
     System pick All invItems
     invItems compare animation frame=0
     invItems pick with lowest slot
    	.........
    
  • I have no idea what this has to do with AJAX, but you can add a variable ShootingAllowed and do something like this:

    AJAX Request ...
    Set ShootingAllowed to 0
    Wait for previous action to complete
    Set ShootingAllowed to 1
    

    And add "ShootingAllowed=1" condition to the event where player is shooting.

    Also, to avoid negative values in health variable, instead of "Subtract damage from health" action, use "Set health to max(0, health-damage)"

  • Assuming your TiledBackground object height is 800px - try changing the second action to "TiledBackground Set Y to (Self.Y-800)"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • JuanDaniel_123 On the screenshot in my previous comment "200" is the force of the knockback. You can change it to any value you want. You can also add a variable WeaponKnockback and use it instead of the fixed number.

  • .c3p files are actually zip archives. Rename it to zip, extract to a folder, open yourproject.c3proj file in Notepad. You will see the version it was saved with, for example:

    "savedWithRelease": 18204

  • How big is your game? (in megabytes)

    Try disabling/removing things, until you find which one of them is causing the delay. For example - remove GooglePlay plugin, test.

  • I don't fully understand the issue, but I think you need to use Line of Sight behavior with ray casting, instead of the obj_PlayerDestinyFinder object. Cast a ray, use Player.LineOfSight.ReflectionAngle expression, maybe that will be what you are looking for.

    See these two templates:

    https://editor.construct.net/#open=instant-hit-laser

    https://editor.construct.net/#open=raycast-reflections

  • You need to have at least one copy (instance) of the object on any layout. Create a blank layout, name it "Storage" or something similar, put your Particles object there and configure all its properties. After that you will be able to spawn it.

  • Use Touch instead of the Mouse. You will still be able to control it with the mouse, but Touch plugin also has SpeedAt() and AngleAt() expressions.

    You can use them to apply an impulse at angle, for example:

    On Touch End -> Sprite apply impulse min(100, Touch.SpeedAt(0)) at angle Touch.AngleAt(0)

    But of course you will need to experiment with values.

    Instead of physics you can use Bullet or some other behavior.