dop2000's Forum Posts

  • Also (you probably know this), you need to upload the game to Facebook to test. It will not work in Construct preview.

  • I really don't think Construct is the right tool for this job. You should google some other solution, maybe some script or software that can feed data into PDF forms.

    Something similar is discussed here:

    stackoverflow.com/questions/11701732/how-to-automate-pdf-form-filling-in-java

  • Sorry, I can't. I did that project for a client and I can't distribute it without permission.

  • Here is how I did it:

    As far as I remember, you need to configure your leaderboard as Contextual:No (in Facebook, not in Construct).

    Also, see this post, it has tons of useful information:

    construct.net/en/forum/construct-3/general-discussion-7/c3-instant-games-sdk-much-prof-132977

  • It may be this bug (ignore the "Android" part, I believe it happens on different devices):

    github.com/Scirra/Construct-3-bugs/issues/1639

    If your game heavily uses multiple touch, you need to add a code that will recognize "stuck" touches and ignore them.

  • I really doubt you can integrate docx into the game and then export it again in docx format. The easiest workaround I think would be redirecting users to Google Docs or Google Form link with your form. Or maybe you can open this link inside the game in an iframe.

    You can also manually replicate all fields of this form on the layout with text boxes, and after user has filled them, send this information somewhere. (to your server, some database etc.) Here is a tutorial I made for sending data to Google Spreadsheet:

    scirra.com/tutorials/9704/sending-data-from-construct-23-to-google-spreadsheet

  • sizcoz, if you need to move along the curved path, there is a great addon by Rexrainbow:

    construct.net/forum/extending-construct-2/work-in-progress-addons-30/behavior-rex-spline-114539

    Unfortunately, it doesn't have an option to instantly draw/visualise the path.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also, the invisibleSprite instance created in event 16 will not be available yet in event 15. You need to wait one tick for it to be added to layout (insert "wait 0" before changing bullet properties). Or explicitly pick the sprite instance by UID.

  • scirra.com/tutorials/all

    Search for "AI" or "patrol"

  • — Man, there are so many mistakes in your comment... :)

    as for (random(-10)+-10) the +- is a bit redundant u could've easy do (random(-10)+10) its the same thing as the +- negates itself and u remain with a 10 positive.

    +- doesn't negate itself, it's the same as subtraction. (n+-10)=(n-10)

    So (random(-10)+-10) will return values from -20 to -10.

    random(0) picks any number from -infinity to +infinity

    No, random(0) is always 0.

    random(-10) same thing but focuses on -infinity spectrum up to -10

    No, when there is only one parameter, random returns values from 0 to that parameter, but not including it.

    So random(-10) will return values from -9.999999999.... to 0

    random(1) same as above but towards +infinity from 1

    Again, this will return values from 0 to 0.9999999999...

    (in ur picture u have random(0)+0) that means 0+random(any number + or - value)

    (random(0)+0) is obviously just 0

  • If you want to save file with NWjs, better not use "Invoke download". Use NWjs-> Show Save dialog. On Save dialog OK -> NWjs Write File, put NWjs.ChosenPath in path field.

    To read a file: NWjs Show open dialog, On open dialog OK - AJAX request URL, put NWjs.ChosenPath in URL field.

  • random(0) is 0, so I'm guessing your event spawns 5 gems all in the same position.

  • See my edited comment above.

  • So the character moves correctly and mirrors, but animations are not playing? Could you re-upload the changed file? In the previous version it couldn't even move properly with the touchpad.

    EDIT: Actually, no need. The problem is that your two groups (Player Movement and TouchPad) are clashing. When no keys are pressed, your events 21-28 reset animation to "Idle" on every tick.

    Since you have more than one way to control the character, the best solution would be creating a separate group that will manage animations, not based on control method, but based on 8direction moving angle.

    Something like this:

  • Like this:

    Because angles in Construct can take negative and positive numbers, it's tricky to compare them. It's much easier to use specific conditions and expressions - "between angles" instead of "between values", "is clockwise from" instead of "is greater", anglelerp() instead of lerp() and so on.