Toby R's Forum Posts

  • Every item in the store has the license tab where you can read the details, like here

  • Alright no problem. Thank you

    Maybe you can help me with that

    I am trying to stop the music when the reward video is showing.

    So on reward video shown and sub-invent if global variable music was already on, stop all music that has tag "music". And restart when user close the video

    Is that make sense?

    I tried that but can get it. the music continue same time with the video content.

    Thank you

    Regards

    Hmm sounds ok to me. Maybe instead of stopping on "On rewarded video shown", try to stop the audio just before calling "Show rewarded video", so that would be under "On Tap object" I believe. Also try with "Audio Set Silence" instead of stopping the audio.

    It's hard to guess so you need to try several approaches.

  • Updated to version 1.2, added "ToString" expression.

    TR_ClockParser.ToSeconds(timeString) - Converts the specified clock string to seconds.

    Examples:

    TR_ClockParser.ToSeconds("01:03:30" ) -> 3810

    TR_ClockParser.ToSeconds("15:30") -> 930

    TR_ClockParser.ToSeconds("30") -> 30

  • Hello

    Thank you very much for your reply.

    Can't we use this section to do something to cancel the reward if the user end the video before the end?

    "This condition is triggered after the video ad is stopped by the user. "

    Regards

    Unfortunately for iOS this condition just does not trigger because of the invalid response from Ludei's library. I hope it will be fixed soon.

  • Hi marc254,

    How to use this section

    "This condition is triggered after the interstitial (the one that pops up after the video is completed) is clicked"

    Do I have some events to add there?

    This is the place which triggers once the user saw the entire video AND he clicked the AD. So if you want to reward him extra for clicking the ad, then this is the place. Please note that AFAIK encouraging users to click the AD is not allowed by Google policy. Still such condition is available, you can for instance show a "thank you" message here or whatever suits your app needs.

    Secondly, can you guide me how to avoid giving reward if the user close the video before the end?

    This is an issue of Ludei's AD library and occurs only on iOS. It's already reported to Ludei (Cocoon) and we're waiting for the fix. I'm sorry about that but I can't do much myself as the issue is not in my code.

    Please note that this shouldn't be a crucial issue as the nature of rewarded video is that the user decided himself that he will watch the entire AD because he wants to be rewarded. So I'm pretty sure that cancelling a video happens in less than 1% of cases.

    But yes this is a technical issue which has been reported to me already. I have reported it to Cocoon team. Now all we can do is wait. Hopefully they'll fix it soon.

  • Local Notifications — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2-plugins/local-notifications-3884

    <h3>What you buy here?</h3><div class="deshr"></div>

    • TR_LocalNotification plugin for C2
    • Capx with implementation example
    • setup.txt file with setup steps for Cocoon and Phonegap (it's automated with Phonegap)

    <h3>Compatibility</h3><div class="deshr"></div><p>Please note that this plugin was tested and works flawlessly with Phonegap (webview and Crosswalk) and with Cocoon.io Webview. </p><p>=!!!= It DOES NOT work with Canvas+ =!!!=</p><h3>What are local notifications?</h3><div class="deshr"></div><p>"The essential purpose of local notifications is to enable an application to inform its users that it has something for them ? for example, a message or an upcoming appointment ? when the application isn?t running in the foreground.</p><p>They are scheduled by an application and delivered on the same device."</p><p>For example you can notify user that the building is completed or a bonus is ready to be claimed.</p><h3>Features</h3><div class="deshr"></div>

    • Schedule single and regular notifications,
    • React on incomming (even though the app was closed),
    • Ability to customize an icon for each notification,
    • Ability to customize device LED color (note that not every smartphone is compatible with LED color customization),
    • Update/cancel notifications,

    <p> </p><h3>Installation</h3><div class="deshr"></div><p>If you build with Cocoon then you need to add cordova plugin in the Cocoon panel. In the zip you buy here you will find the setup.txt file with explanations of how to do it. I also included screen (last screen shot) here which explain the process.</p><p>No extra actions needed if you use Phonegap, just add and use the plugin in C2.</p><h3>Warranty</h3><div class="deshr"></div><p>I'm a full time programmer, in case of encountering any issues, please send me an email, I'll fix it ASAP.</p><h3>Want to be notified about updates?</h3><div class="deshr"></div><p>Join my Discord server: discord.gg/cjEg45m%3C/p%3E

    Use this topic to leave comments, ask questions and talk about Local Notifications

  • do you think you can add a function allowing to change the horizontal / vertical alignment and the hotspot at runtime?

    At the moment those actions do not exist.

    Thank you!

    Regards

    Andy

    Hey AndreasR,

    I could do it, but there's no need because I know skymen is already working on such plugin. He already made the Text Alignment and will release the SpriteFont type one soon as well.

  • Third-party cordova plugins can be supported in the build service, but we maintain a whitelist of allowed plugins for security reasons. If you want a third-party cordova plugin to be considered for whitelisting, please file an issue.

    I'm interested about that as well so few questions.

    Is there a list of currently allowed plugins/whitelist avalable somewhere?

    Do we have to provide the NPM name or is it possible with Github URL?

    Can we code Github library dependency in the C3 plugin directly?

  • Scale (Sprite object extension) — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2-behaviours/scale-sprite-object-extension-3878

    <h3>What you buy here?</h3><div class="deshr"></div>

    • Scale behavior for C2 and C3
    • Capx example

    <h3>What is Scale behavior?</h3><div class="deshr"></div><p>It's a behavior dedicated for Sprite objects which lets you set, get and compare current Sprite's scale.</p><h3>How is it different than using the normal scale?</h3><div class="deshr"></div><p>The difference is that Sprite object does not have the Scale expression at all so you can't read the current scale. </p><p>With this behavior you can set/get/compare 6 type of scales:</p><p>* General scale (by self)</p><p>* Width scale (by self)</p><p>* Height scale (by self)</p><p>* General scale (by image)</p><p>* Width scale (by image)</p><p>* Height scale (by image)</p><p>By self - means that it's a scale based on the initial Sprite size (the dimensions of the instance at it's creation are considered as scale = 1).</p><p>By image - means that it's a scale by the Sprite's image/texture size (the image dimensions are considered as scale = 1.</p><h3>Features</h3><div class="deshr"></div>

    • 6 types of scales to cover any project needs,
    • Extension to the most commonly used object type - Sprite,
    • Built-in Actions, Conditions & Expressions for all 6 scales manipulation,
    • Super light-weight (nothing is calculated per tick, calculations only on demand)

    <h3>Warranty</h3><div class="deshr"></div><p>This plugin does not rely on any third party libraries so it will never get outdated or broken. </p><p>Note that all of my plugins work with all platforms (including Cocoon Canvas+) unless described otherwise in the description.</p><p>I'm a full time programmer, in case of encountering any issues, please send me an email, I'll fix it ASAP!</p><h3>Want to be notified about updates?</h3><div class="deshr"></div><p>Join my Discord server: discord.gg/cjEg45m%3C/p%3E

    Use this topic to leave comments, ask questions and talk about Scale (Sprite object extension)

  • Made several plugins recently including "Unload from memory" type plugin and so updated portfolio here.

  • Variables (any kind) are one of the most basic elements in any programming language. Normally varaibles are actually just pointers (a kind of arrow that points the RAM area of where the data is stored), in Construct they're a bit more complex as they go via event sheets but still variables are the lightest elements I can think of. So no matter if it's a global or local or instance variable, they do not affect the CPU, no worries about that.

  • Hi! Please correct me if I am mistaken.

    The system global variable is checked on all events of a events sheet.

    Instans variable is checked by a call in an event.

    I so understand, Global is checked as instans?

    Something like invisible instans on a global layer?

    Hi repkino,

    I don't know what you mean by "is checked on all events of a events sheet". Neither the native global variables nor instance variables are checked by the engine unless you code the check as a condition or expression.

    Instance variables of Globals plugin are exactly the same instance variabless as you use in any other plugin.

    Both native global variables and instance variables are accessible globally. If you want to read more about the differences, you can read the article which I also linked in the very first post here: http://tobyr.wtfgamesgroup.com/c2-plugi ... variables/

  • [quote:snd6asri]

    Hope that clears things out. If you have any further questions jus let me know.

    Yes I did all that steps and video has showed from my AdMob account. Thanks much

    Glad it works, good luck with your app!

  • Hey I bought.

    1. I'm testing Your scriot via mobile by wi-fi on my IP and got error. Please check.

    2. Where should I add adMobcode?

    Hi there,

    The error pops up because you try to run the ads functions before wrapping the project with Cocoon and so the Cocoon library is missing at this point.

    All ads, IAPs, notification, etc. plugins requires a library which is being added to the project during wrapping. I mentioned that in the F.A.Q. on store page as well.

    Once you install the AdMob plugin in the Cocoon panel and export the project with Cocoon the error will dissapear as the library will be added at that point.

    Hope that clears things out. If you have any further questions jus let me know.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Glad it works and thanks for the purchase