dop2000's Recent Forum Activity

  • It depends - where do you have these 100 images? are they all in one sprite (as frames/animations), or multiple sprites, or do you load them from web in runtime?

    If you have one sprite with 100 frames, there is nothing you can do, the whole sprite will be loaded on layout start. If you have 100 separate sprites, you can create them as user scrolls down.

  • You do not have permission to view this post

  • If you need to save it as a file, use "Browser invoke download", but it may open "Save as" dialog. Or you can save it silently to disk with NWJS plugin.

    Saving to local storage is also possible, but of course this will be hidden from the user.

  • I'm pretty sure "Wait for signal" works the same way. It will not pause loop execution, the loop will still be completed immediately in one tick. But all actions inside the loop which are below "wait" action will be delayed and executed later when they receive the signal.

    Basically, if in other languages you have this code:

    For i=0 to 4 {
    	Create object
    	Delay 2 seconds
    }
    Display message "5 objects have been created!"
    

    In Construct you need to do this:

    Repeat 5 times
    	Wait 2*loopindex
    	Create object
    
    Wait 10 seconds
    Display message "5 objects have been created!"
    
  • That's because everything above the "Wait" action in the loop is actually executed in one tick. So first ShellX and ShellY are changed 3 times, and this happens immediately. After about 0.5 seconds your explosions are created and they use the same last values of ShellX and ShellY.

    There are several ways to fix this. I would probably do this:

    Add shadow and explosion to the same container. Set explosion sprite invisible by default. Spawn shadows (explosions will be created automatically). After a wait set explosion visible - it will appear at the same position as its shadow.

  • OhhBaby , Thanks, I'll try, but as I understand, this will only log standard events, I also need custom events...

    EDIT: managed to send custom events using Browser Exec Javascript "facebookConnectPlugin.logEvent('event_name');"

    Thank you for this tip!

  • I tried all latest versions. 1.41 and 1.42 show black screen and 5.0.X versions just crash..

    Thank you for explaining the issue, let's hope you find a solution one day.

    By the way, I think it's possible to use C3 build service. You need to export to Cordova, then edit config.json like this:

    "plugins": [
    {
    	"id": "cordova-plugin-facebook4",
    	"version": null,
    	"variables": [["APP_ID", "1231232132"], ["APP_NAME", "My App"], ["FACEBOOK_ANDROID_SDK_VERSION", "4.40.0"]]
    },
    
    

    Then use C3 Export Manager to build an apk. The result is pretty much identical to what you get with Cordova CLI.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, I've seen your bug report yesterday. Are you saying that SDK version 4.40.4 should still work? The problem is that I can't build with this particular version. I tried many others though - 4.35.0, 4.36.0, 4.38.0, 4.40.0, 4.41.0

  • Thanks,

    I was really hoping there was a solution.. Do you know if there is any other way to implement FB analytics in runtime3 game for Android?

    Enhance doesn't support runtime3 and I couldn't find any other addons. It's a shame really, most mobile publishers require analytics, Scirra should really address this issue asap!

  • OhhBaby I tried many different versions from 4.26.0 to 4.40.0, all resulting in black screen. Tested version 4.41.0 just now - same problem.

  • Hi , Could you help me please, I'm having an issue with your Mobile Facebook plugin. I tried building apk many times with different settings and every time I run it on my phones it shows a black screen...

    The project is in runtime3 and has just one action "Mobile Facebook Log Event".

    I export the project to Cordova from C3. Then add 3 lines to config.xml:

    <plugin name="cordova-plugin-facebook4" >
    	<variable name="APP_ID" value="123456789" />
    	<variable name="APP_NAME" value="MyApp" />
    	<variable name="FACEBOOK_ANDROID_SDK_VERSION" value="4.40.4" />
    </plugin>
    

    Note - your manual says "param name", but "param" is not recognized by cordova, so I changed to variable. Also, I tried many different SDK versions.

    Then execute:

    cordova prepare
    cordova requirements
    cordova build android
    

    Install the debug apk on my phone and get black screen... If I build the app without Mobile Facebook plugin, it works.

    I tried every solution from from stackoverflow and google - nothing helps.

    Here is my project file, and exported file for cordova

    .

    EDIT: Digging deeper, I found your bug report on github, seems like you got it working with version 4.40.4, but for me cordova build fails with this version:

    Could you tell me how I can fix it?

  • Try this:

    Note, that saving to local storage should be outside the loop!

dop2000's avatar

dop2000

Member since 26 May, 2016

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