dop2000's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Do you mean color name like "blue" or "yellow"? There is no such expression. You will need to write a bunch of events, something like this:

    Compare variable R>200
    Compare variable G<50
    Compare variable B<50
    			 -> Set colorName="Red"
    
    else
    .....
    
  • Asmodean Oh, I actually haven't tested on 4.2, my phone has version 4.4.4

    Are you saying it won't work on 4.2?

    Do you know if I can build an app with crosswalk plugin? I can export my project from an older version of C2, but I'm getting this error when trying to build with Cordova:

    Phonegap build also fails with some similar error about plugins.

  • Yes, you can use 2D array. Set array width to the number of users, height to the number of values you need to store. Note that indices in arrays are 0-based. For example, if you need to set first user name to "John", do:

    Array Set at X=0, Y=0, Value="John"

    To set level 10 score for player number 5:

    Array Set at X=4, Y=10, Value=score

    etc.

    .

    You can save the entire array in Local Storage if needed using Array.AsJSON, and load it back using "Array set from JSON".

  • This is really odd. If this event works in one project, it should work in another. And event 23 definitely shouldn't trigger when right mouse button is pressed.

    Can you share your project? If you don't want to post it here, you can email it me: doperst2006 (at) gmail.com

  • The issue is related to wkwebview and the way it accesses app resources. I can play any sound from internal phone storage or sdcard, but not from the apk.

    I sort of found a solution, it's not great but it works - I can encode sounds in base64 strings and play them using Base64 Audio plugin. I'll have to remove music because the files will be huge, but at least I'll have short sounds in my game.

  • By standalone you mean Desktop build? You can still open Console - just run the preview, press F12 and select Console tab.

    • Post link icon

    As a rule of thumb, I steer clear of "Wait 0". Rarely do I really want to postpone actions back to the end of a tick.

    I use "Wait 0" all the time. Mostly after I create objects and need to change something about them (call a function that re-arranges them for example). It's also sometimes useful with mouse/touch events, drag&drop and other behaviors.

  • Add a debug output into event 23 - Browser log "Buttons NOT down, cloning object"

    Run the project, open console log, try dragging with right button+shift and check if that message appears in the log.

    If it doesn't, this means that you have some other event somewhere which clones the object.

  • Export to Cordova, then zip the exported files, then upload zip to Phonegap.