dop2000's Forum Posts

  • You can't use Physics like that!

    It is not recommended to use any other behaviors with Physics, like Pin, Solid, Bullet, Anchor etc. And you should avoid changing position or angle of physics objects directly. Physics engine can keep up with this to some extend, but not when you move the object suddenly 200px up!

    You should only move Physics objects with Physics actions - apply force, apply impulse, set velocity etc..

    Check out this demo:

    howtoconstructdemos.com/physics-game-catch-apples-with-a-bucket-capx

  • Crash how? If the browser is still working, you can press F12 and check for error messages in the console log.

  • You need to send an email to Support:

    supportzqr@construct.net

  • Try changing Script Mode in project properties. Also, after trying to start preview, you can press F12 in the editor and see if there are any errors in the console log.

  • Sorry, I didn't realize the question was in C2 forum. I used this tutorial to set up Cordova CLI:

    construct.net/en/tutorials/from-cordova-export-to-signed-apk-with-cordova-cli-on-windows-10-1420

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

  • Try Construct 3

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

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