dop2000's Forum Posts

  • It's not possible.

    You can use a dictionary instead and access dictionary keys like this - Dictionary.Get("key" & loopindex)

    If you add the dictionary to the same container with the sprite, each sprite will have its own copy of the dictionary.

  • The first thing that comes to mind - don't search for the whole 6 letter permutation.

    Say, your letters are D F G A U N.

    Select the first letter - D.

    Select the second letter - F

    Check if array contains any words starting with "DF". There are no such words, so don't process this combination further, stop the loop for "F" and go to next letter "G".

    Check if array contains any words starting with "DG".

    and so on...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is my attempt:

    https://www.dropbox.com/s/dsojflzj4u5gg ... .capx?dl=0

    It's far from perfect, of course. It might be better to fill tiles with water in circular pattern (not from top-left as I did). Also, limit the amount of water or speed at which big areas of ground are flooded.

  • ronm

    Can you add all these images to your project as files? You'll then be able to use "Load image from URL" action

  • You can add an instance variable "sequence" to your squares, and when they are flashing, set sequence to 1, 2, 3.. etc.

    When user clicks the squares, make a variable clickCounter, increase it with every click on the squares. Compare clickCounter with square.sequence and if they don't match, it means that the user made a mistake.

    Or you can do this with two string variables.

    When squares flashing, set string1 to (string1 & square.UID & ",")

    When player clicking the squares, set string2 to (string2 & square.UID & ",")

    Then compare if left(string1, len(string2))=string2

    if not, user has made a mistake.

  • I think you can only use Touch plugin. Touch events work with mouse too.

  • Wai

    Have you tried building the apk using other services, like cocoon.io, phonegap?

    If jerking/flickering occurs only with C3 build, you should log this as a bug.

  • I tried on Xiaomi Redmi 4, with Android 6.0.1

    Tested the apk again - first few seconds some jerking, then smooth movement.

    Sometimes (maybe once in 10-20 seconds) the sprite jumps forward or back a couple of pixels, but it's hardly noticeable. I would suggest this is due to some background processes running on the phone.

  • Have you tried different phones?

    I tested your app on my phone and it runs fine, no flickering. There are a few very small hiccups during the first few seconds, but after that it runs smooth.

  • What do you mean by "spawn an object from this"? From what, from the array?

    Also, you are adding each value into the array twice - one at the start of the array and one at the end.

    Run your game in Debug Mode, select your array and you'll see.

  • See the link I posted earlier, it has correct formulas for setting volume from the slidebar, and slidebar position from volume.

    Unfortunately, for me there is no improvement after installing r251.

    I experienced the biggest lags in the Sprite Editor (see this video). Nothing has changed with the update. It still takes about 4-6 seconds from the moment I double-click the sprite till the moment that little window with Image Points opens.

    Toolbars are updating slowly. If there are many animations in the sprite, clicking between them is painfully slow....

    Startup time ~30 seconds before and after the update.

    The lag when opening events dialogs:

    small projects: no lag

    big project (1500 events, 15Mb size): 1-2 seconds lag

    System: Windows 10, Version 10.0.16299 Build 16299

    i5-7200U CPU 2.50GHz, 8Gb RAM, SSD

    I did a clean install of r251, but I didn't restart Windows. Usually after the restart C2 works really well for a couple of days, and then things start slowing down..

  • In the Title layout:

    On Start of layout

    ...Audio Tag "music" is NOT playing -> Audio play "MyMusic.mp3" with tag "music"

    In Settings layout:

    On slidebar change -> Audio set "music" volume to slidebar.value

  • Here is an example of shuffling and dealing a deck of cards I did for another post (without the arrays!)

    https://www.dropbox.com/s/b7qmdni2wn9ze ... .capx?dl=0

    You'll need Rex's addon MoveTo to open it.