dop2000's Forum Posts

  • Are we not allowed to have "Else" condition without another condition unless its a Boolean to the first condition then?

    On your screenshot the "Else" event was simply empty, it had no sub-events or actions, that's why it did nothing. The next condition after it was not a sub-event under Else, that's why a new item in a new slot was always created.

    .

    Else with boolean conditions works the same way as in many other languages.

    But when you use Else with events that pick instances, Else means "if previous event picked nothing". Actually, you don't need to pick all inside of Else block in this case.

  • You can try removing the condition with id=19 from the event sheet by manually editing the project file.

    Unzip the capx file into a folder. Search all xml files in the "Event sheets" folder for a string plugin="Appodeal" id="19" (or something similar). Remove the entire <condtition> block. After that try to open the project.

  • Containers only link objects logically, you will need to re-create offsets with code. An easy way to do this is with image points on the biggest "parent" sprite. For example, if you are making a human body, define image points for arms/legs/head.

  • Do you mean when controlling with the virtual joystick? Or with keyboard keys?

    When using virtual joystick, you should move the tank with 8-direction actions like "Simulate control" or "Set vector", not with "Move at angle" action.

    Also, your joystick doesn't work very well, you need at least put it on a layer without parallax. Please see a few better examples of the virtual joystick in this post:

    construct.net/en/forum/construct-3/general-discussion-7/collection-demo-projects-149701

  • Easy - use Timer behavior. When an enemy is created, start a timer with random time for it. On timer event, enable shooting for this enemy instance.

    Try not to use "Wait" action when programming enemy AI.

  • You can't write to JSON files in runtime, if this is what you are asking. You can only manually edit data in editor.

    7500 records should be fine, I remember Ashley mentioning that JSON parsing works really fast.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)"

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