dop2000's Forum Posts

  • The Timer behavior just keeps track of time, it won't do anything else. If you need to stop the attack animation, or perform any other actions, you have to do this in "Enemy On Timer" event.

  • Don't use "Every X seconds" for this. It will affect all enemies at once, which will look weird. Also, if you return to this layout, "Every 15 seconds" may start earlier than you expect.

    You need Timer behavior here. Add Timer to Enemy sprite. In On Enemy created event (or on start of the layout) start a timer "attack" for 3 seconds. In On Timer "attack" event change animation and start another timer - "tired". In "tired" timer start "attack" timer again.

    You can randomize the time a little to add variety to your enemies. For example, start a timer for random(3,4) seconds.

  • Have you tried making apk directly from Construct 3? I mean it's right there:

  • You can simply copy/paste values from Excel into Construct array table.

    If you have data in JSON format incompatible with C3 array, you can still use it in Construct. But you'll have to parse it into JSON object first, and then copy values into an array.

  • By "field" do you mean the field of crops? The field can be an object in your game (for example, a TiledBackground, visible or invisible), or it can be a logical identifier, like an instance variable on crops sprites. Every game is different and it's up to you to decide how you make it.

    Functions, groups, families, hierarchies, containers are not mandatory for a game like this, but they will make the job much-much easier. I highly recommend you study how to use these features.

    For example, I would probably combine all crop sprites into a family. When planting crops, add them as children to the Field object. This way you will be able to easily pick crops growing on each field, and perform some generic actions (like watering) on the entire Crops family.

  • mutajon Array JSON should have a specific formatting in Construct. You can't load just any JSON string into an array. The easiest way to prepare array data in the correct format is to right-click Files folder and select New->Array

  • Many people prefer not to auto-update their apps and you can't force them to do it.

    You can implement a dialog in your game - if there is a new version available, ask the player to update.

  • Use "Player On collision with Block" event.

    How do you make the block fall depends on what behaviors are you using. It can be Bullet, Platform, Physics, MoveTo, Tween etc.

    For example, with MoveTo you can do this:

    Block Move to x=Self.x, y=(Self.y+1000)

  • they continue to play the old version

    Who are "they"?

    What platform is your game made for? Where did you publish it?

  • You can use "Keyboard On Key Enter pressed" event.

    Keyboard events will not work for pretty much any other keys while the text input is focused. But "On Enter pressed" should work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use your own character or a tag to mark a new line, and then replace it with newline before displaying on the screen. I often use ^ symbol.

    s="Hello there^general Kenobi!"
    SpriteFont set text to replace(s, "^", newline)
    
  • No, my example works with manually created trees too. You just need to do the initial sorting on start of the layout.

  • Just use a Sprite instead. You can have any image in the sprite.

    Use "Mouse on object clicked" or "Touch on object touched" event to make it work like a button.

  • Pretty much the only way is with AJAX. Use "AJAX Request" or "AJAX Post to URL" action, and receive the result in "AJAX On Completed" event.

  • Unless you are writing a lot of data (megabytes) to local storage, saving should take only a fraction of a second. So the chance that player will close the game at the exact same moment is very small.