dop2000's Recent Forum Activity

  • Why do you set array size to (0,0,0) on start of the layout? Of course it gets reset!

    Why do you execute "If array is empty, AJAX request.." on every tick? This should be done once on start of the layout.

    Change your code to this:

  • We need to track custom events in our mobile game - send them to Facebook Analytics.

    Looks like C3 Instant Games plugin allows this, however, the official manual says that the game should be exported for web and hosted on Facebook platform.

    Is there any way to make this plugin work with mobile build, specifically IOS?

    Or is there any other solution for tracking FB custom events in mobile app, maybe a third-party? (I know about the Enchance, but it doesn't support FB analytics on IOS yet)

  • See my previous comment. You need to modify the event that loads data from AJAX, to only do this if the array is empty.

    You can upload your project to any file sharing service like Dropbox and post the link here.

  • It would be much easier to help you if you post screenshots of your code.

  • You can put an invisible sprite at the points where you want to spawn your monsters. Then select a random instance of this sprite and spawn.

    I made a demo some time ago with different spawning methods:

    dropbox.com/s/0jptlam49u7ugse/spawningDemo.capx

  • Yes, you can do something like this:

    Set variable badWordFound to 0
    Array For each element X
     Find(Textbox.text, Array.CurValue)>=0 Set badWordFound to 1
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, find() returns the position of substring if found, or -1 (minus 1) if not found. That's why you check if it's equal or greater than 0.

    find("abcdef", "abc") will return 0

    find("abcdef", "cd") will return 2

    find("abcdef", "xyz") will return -1

  • In this case you need to use find() expression, see my previous comment.

  • You can set your array width to 0 in array properties and do this:

    On start of layout
     Array is empty -> Ajax request file ....
    
    AJAX on completed -> Array load from AJAX.LastData
    

    This way the data will only be loaded once. Also, make sure that your Array object is set as Global.

  • What do you mean by "highlight"?

    If you want to test if a string contains substring 'or', you need to use find() expression:

    System Compare two values -> find(textinput1.text, "or") greater or equal 0 : perform action

  • This can be a wrong version of the plugin, or you might have installed it incorrectly. I found the only working link for this plugin here:

    construct.net/forum/construct-2/general-discussion-17/request-sine-action-reset-58064/page-2

    Make sure to extract the files to this directory:

    \Construct2\exporters\html5\behaviors\sinx

    If it doesn't help, you can try manually removing all mentions of this plugin from your project files.

  • Do this:

    .

    I meant you selected "Runtime: Construct 3" in project properties. This is a new experimental runtime engine, and it's still in development. Many things still not working in it, including the debug mode.

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