dop2000's Recent Forum Activity

  • Here is how I would do this:

    When you get JSON with search results from google, save it into text variable.

    Search it for "geometry" tag, this will break the text into blocks each containing one search result. You can use tokencount, tokenat (with "geometry" as delimiter).

    Or break into lines with tokencount/tokenat (newline as delimiter), and analyze each line using expressions trim, left, find.

    In each "geometry" block search for "lat:" tag (first occurrence only), the rest of the line will contain latitude, you just need to trim unnecessary characters. Do the same with "lng:" tag.

    Then search for "name:", this will give you the name of the place.

    You can retrieve other information (address, picture etc) the same way.

    When you finish with one "geometry" block, add a market with its coordinates on the map and proceed to the next block.

    There seems to be a few addons that can parse JSON, you can try them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is possible with tilemap, see this post, there are lots of useful info:

  • Does this happen in APK only or in preview as well?

    Please share your capx (preferably) or a screenshot of your event sheet.

  • Here are two ways to do this:

    To pick bottom box, replace order to "descending" in event1, or condition to ">=" in event 4.

    if all boxes are at the same X, you can use "Box pick nearest/furthest" event.

  • Try this:

  • You can put main sprite on layer with parallax like 5,5 and its shadow on another layer with parallax 10,10 and scroll to mouse position. (or opposite to mouse position)

    Unfortunately, you can't skew or add perspective to a sprite in C2 without some external addons.

    Here are a couple of links:

    how-do-i-skew-or-distort-a-sprite_t164666

    https://www.scirra.com/store/royalty-fr ... usion-1636

    effect-mode7_t77858

  • Like I mentioned in another post, on my laptop the flickering is very minor. I have Intel HD 620 GPU.

    I believe it's a hardware/driver issue..

    Have you tried playing with project parameters like Enable WebGL, Sampling, Downscaling etc?

    If I set "Fullscreen scaling=Low quality", then the tilemap flickering becomes much worse.

  • Cool examples as always, R0j0!

    I improved mine. It looks better and the flooding speed now depends on the area.

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

  • No, containers are not similar to families at all!

    You can combine different object into a container, for example sprite+text+particles.

    Container holds instances of these objects, only 1 instance of each object per container.

    For example, you can have your main Spaceship sprite, Thruster sprite, TrusterFlame particles, MainWeapon sprite, HealthBar 9patch. Add all these objects into one container.

    When you create a new Spaceship in runtime, all instances of other objects from the container (Thruster, MainWeapon etc.) will be created automatically. You will only need to position them properly and pin if needed.

    If you create 10 ships like that, you'll basically have 10 containers.

    (If you create Spaceships and all other sprites from the container manually in editor, you need to do be careful to add them in order. Otherwise you might end up with different objects attached to wrong spacehips.)

    When you destroy a Spaceship, all instances of other objects from the container will be destroyed automatically.

    If you pick one object instance in an event, you can reference all other objects in the same event. For example:

    Bullet On collision with SpaceShip

    -----------------> SpaceShip Subtract 1 from health

    -----------------> HealthBar set width to SpaceShip.health

    (notice you don't need to pick this spaceship's HealthBar , it's picked automatically)

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

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies