dop2000's Recent Forum Activity

  • Not sure if this will be helpful, but this is how I added "cordova-plugin-facebook4" plugin to my app for game analytics:

    Add the following lines to config.xml
    
    <plugin name="cordova-plugin-facebook4" >
     <variable name="APP_ID" value="1234567890" />
     <variable name="APP_NAME" value="App name here" />
     <variable name="FACEBOOK_ANDROID_SDK_VERSION" value="4.40.0" />
    </plugin>
    
    
    Add to config.json in "plugins" section:
    
    {
    	"id": "cordova-plugin-facebook4",
    	"version": null,
    	"variables": [["APP_ID", "1234567890"], ["APP_NAME", "App name here"], ["FACEBOOK_ANDROID_SDK_VERSION", "4.40.0"]]
    },
    
    

    Add files to zip and build with C3. If all done correctly you should be able to call methods from this plugin from scripts or with Browser Execute Javascript action. In my case:

    "facebookConnectPlugin.logEvent('event_name');"

  • Must be something in your events, hard to tell without seeing them. I'm guessing you are setting animation on every tick. You need to do this only once in "On tap" or "On touch" event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure I fully understand your question.. You can add all arrays to a family, add an instance variable Type, set it for each array object. For example one array will have Type="buildings", another Type="resources" etc.

    And use it like this:

    Function ArraySetValue
    parameter t
    parameter i
    parameter v
    	ArraysFamily compare variable Type=t
    		ArraysFamily set at X=i, value=v
    
    
    // Usage: 
    	Call function ArraySetValue (t="buildings", i=23, v=2000)
    	Call function ArraySetValue (t="resources", i=0, v=1.5)
    
    
  • Like I said, if Canvas object doesn't detect the color correctly, it likely means that it's positioned wrong. Touch is obviously less accurate than mouse, so maybe you need to enlarge the image to make aiming easier.

    Also make the canvas object visible (larger in size and fill with color) to see where it has landed after the tap.

  • I need my game to work on Android 4.2, I had to build it with an older version of Construct 2, which uses Crosswalk plugin.

    If anyone has such phone/tablet, could you please test this apk and let me know if it works and if the sound is playing:

    dropbox.com/s/ovxjdgchisw613o/Audioeffectsdemo-armv7-debug.2105550.5.apk

    (it's an "Audio effects" template, not the real game)

  • Yeah, the app launches and then closes after a few seconds. I don't know if it's an emulator issue, the ARM emulator is terribly slow.

    x86 build works in x86 emulator, and ARM build works on my Android 4.4 phone, so I guess it's a good sign. I'll try to find someone with an Android 4.2 device to test.

  • It depends on how many colors you need to detect. If you only need to recognize a few basic colors, simple comparison (as in my previous comment) will do. If you need lots of colors, you can find color tables in google, here are a few examples:

    chir.ag/projects/name-that-color

    cloford.com/resources/colours/500col.htm

    Of course, you can't compare the rgb value directly, you need to find the nearest in the database.

    .

    Color detection should work the same way with mouse and touch. Maybe you are placing the Canvas object wrong on tap? Make it bigger than 1px and after reading r g b values fill the Canvas with some bright color, so that you'll see where it is.

  • Yeah, but each build is still ~28MB. The project size is only 800KB.

  • Asmodean Thanks for the info!

    I managed to build it with Phonegap, had to update targetSDKversion. The apk size is enormous! But I guess it's expected with crosswalk. Tested on x86 emulator with Android 4.2 and audio works, but it crashes on arm emulator...

  • Disable "Go to L_Workspace" action, run the project in debug mode and investigate what's going on in that black screen - layout name, is there any text in the text object, are the text and progress bar visible, their screen coordinates, layer visibility/opacity and so on.

    And of course (you probably know this) you need to preview/debug the project, not layout. Press Ctrl-F4, not Ctrl-F5

  • There is a sub-forum for job offers and team requests, you may find someone there:

    construct.net/en/forum/game-development/job-offers-and-team-requests-28

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 28 Feb, 2025

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