dop2000's Recent Forum Activity

  • I also have a problem with the Invite feature.

    For some reason it opens a simple "post photo" dialog, there is no text, no link to the game, nothing but the picture:

    I tried "Share", "Challenge" and "Request" intents instead of "Invite", and there is no difference, they all show the same dialog.

    Here is my event:

    .

    What I need is this dialog, is it possible to get it? (it's a screenshot from another game)

  • You can't use standard "Array load from JSON" action here, because arrays and dictionaries in Construct require custom JSON format (header).

    That "JSON" object with a yellow icon on your screenshot - is it rex_hash object? In this case I believe you need to remove "Array load from JSON", and instead add a sub-event like this:

    JSON for each key -> Array push JSON.CurValue(JSON.CurKey)

    I never used this plugin, so I may be wrong.

    There is a sample capx on the plugin page, have you tried it?

    rexrainbow.github.io/C2RexDoc/plugins.md/rex_hash.html

  • You never mentioned touch, or slide, or player speed. Are we supposed to read your mind? :)

    Use "Is in touch" event and Touch.SpeedAt(0), Touch.AngleAt(0) expressions to get touch direction and speed of swipe gesture. Based on these values you can decide how to move the character.

    For more accurate swipe gesture recognition you can save initial coordinates in "On touch start" event, and then check how far the finger moved, using distance() expression.

  • Here is the expression for the angle/direction of momentum:

    angle(0, 0, Sprite.Physics.VelocityX, Sprite.Physics.VelocityY)

    So you can simply make particles with a narrow spray cone, and set the angle of particles object to that expression.

  • How big is the text file? I'm guessing hundreds of megabytes?

    You can try splitting it into many smaller parts. And maybe create one or several index files. So, for example, when you need data for the word "cap", you check the index file, it tells you which file contains all the details for this word (say, db0123.txt). Then you request db0123.txt with AJAX and load it into CSV.

    It may be slow, but hopefully will work.

    .

    Another (better) solution would be moving the whole thing into a MySQL database and communicating with it via PHP or JS.

    .

    By the way, you should probably compress some data in the file, storing each letter of the word in a separate column is not very efficient.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Note that in my capx the origin image point of the trees and player sprites is at the bottom. Also, it doesn't look like you separated trunks from the leaves, like I suggested in my previous comment.

    "Wait 0" is needed, because we have to wait 1 tick for the trees to be created, before sorting them.

    "For each ordered" because we need to cycle through all trees sorted from top to bottom.

    If all this doesn't help, please share your capx file.

  • If there are only two weapon slots, then it's even easier, you don't need the array.

    dropbox.com/s/ho7081r4jzgcuoe/WeaponChange2.capx

  • I don't think you can do this in one "Pick by evaluate" event..

    Here is my version, may not be the most efficient, but it works:

  • I think you should use EasyStar to find path on a grid, and then some other behavior (for example MoveTo) to move from one node of the path to another.

  • You don't need events 4 and 5, as events 6 & 7 do the same and they will be executed immediately.

    Also, you don't need "For each" in event #3.

  • Simply set Sine=inactive manually for all sprites on the layout.

    Or do "On start of the layout : SteamCreator set Sine disabled"

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 258 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