Toby R's Forum Posts

  • Sprite.Width / Sprite.ImageWidth = Width Scale

    Sprite.Height / Sprite.ImageHeight = Height Scale

    ((Sprite.Width / Sprite.ImageWidth)+(Sprite.Height / Sprite.ImageHeight)) / 2 = average scale.

    People really need a custom plugin/behaviour for such a basic math logic...?

    Not hating on your plugin of course, so don't be offended.

    Hi Niespor,

    Your math skills are really impressive, but I encourage you to take a closer look at the ACEs of the behavior as it covers much more than what you tried to calculate above.

    Your example shows how to calculate the current scale by its image. Which is also covered in the behavior but it's not very useful in the majority of projects.

    What's useful is the scale by the initial size of the sprite (not image), which is not covered in C2.

    Let's say you want to enlarge the sprite by 10% when you click on it and then revert it back to original size when you release the button. With C2 you'd have to save the original width and height of the sprite to some variables. Then calculate 110% for height and width and then use saved data to revert the size to original... which is quite a lot of work as for such a simple thing.

    With Scale behavior you just use one action and set scaleBySelf to 1.1 and then to 1.

    There are obviously many more use cases than that.

    Thank you for your interest in Scale behavior!

  • Amazing Plugin! So simple to implement!

    There is an issue however with Chinese and other languages with strange characters using json. Is there any way to get these implemented in the same way?

    Thank you. What's the issue exactly?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How to make apk with inside construct 3 with android Cordova export not to export it but make it fully inside construct 3

    If you want to build an APK entirely inside C3, then I'm afraid that Scirra allows that only with their built-in native plugins. To use Ultimate Ads you must follow the tutorials available in this thread and on Store page.

    Thanks

  • When the video is loaded, the "Play-button" is visible so that's how I know when a video has loaded. It works sometimes, but more often than not it doesn't work.

    Thank you for explanations. Unfortunately, I can't help until I know it's a plugin's issue. Can you confirm you have the same problem while using the example capx project?

    Out of the ~150 people using this plugin, no one ever reported this issue, that's why I believe the issue is rather in your project than the plugin. Please try to make a basic implementation without toggling the layouts and timers and see if the problem still exists.

    Thanks

  • Hello

    How do you make apk with these plugins inside construct 3 with android Cordova please answer here thank you

    Hi there,

    In the very first post here you will find a series of video tutorials explaining everything step by step.

  • Hello everyone!

    I'm having some problems with Rewarded video not loading. It work sometimes but more often than not, the video doesn't load. Can you guys see if there's anything I need to change? I have a Variabel called "WatchTime" so if the video doesn't load within 60 seconds you are sent to another layout so you doesn't get stuck.

    I would be super happy if you could help me out with this.

    Thanks in advance,

    Tomolo Games

    Based on what you think the video is not loaded? I don't see you stopping the timer when a video is loaded so it will move to "NotLoad" layout no matter if it's loaded or not.

    Also, note that on event 7 you start loading another video and immediately go to layout "Worlds". Loading a video is asynchronous so before the loading gets completed you switch to "Worlds" layout. Be sure to have conditions there which check if the video is loaded.

  • Hi there!

    When you click on a certain sprite, a rewarded video is playing but if you stop the video before it ends you are suppose to go to a different layout.

    On video stopped / System / Go to layout X

    The problem is that sometimes, not always, when you watch the full video you are still sent to layout x. Sometimes even before the video starts. Can anyone figure out why?

    Also, sometimes when clicking on that specific sprite nothing happens. I assume that's because the video has not loaded yet because if you wait a while and then click on it a video pops up. If it is because the video has not loaded, what's the proper way to check if the video has not loaded. I tried to invert the "Is Video Loaded" but it doesn't seem to work.

    Thanks in advance,

    Tomolo Games / http://www.TomoloGames.com

    Hi

    Please post here or send me (toby@neexeen.com) the capx (or a snippet with that code) so I could see how you do it. There might be hundreds of non-plugin related reasons why you have unexpected result in your app so it's better not to just guess.

    Thanks

  • Hello, I would like to know if the notifications work even though the game is not running. Is

    say that the notifications are reproduced in the background?

    Hello, yes the notification pops up in the mobile status bar even when the app is closed (no need to keep it running in the background).

  • Maybe a dumb question but... if i set notification in events on certain time or some other trigger... how does it get displayed if app is shutdown?

    It will display same as on screenshot example. A notification will appear in the mobile taskbar. After clicking the notification, the app will run.

  • May i just check...

    1. This works both on iOS and Android?

    2. App must be active but can be in background?

    3. Notifications look like standard mobile push notification or can be customized?

    thanks!

    Hi irina,

    ad1. It's based on katzer/cordova-plugin-local-notifications and supports the following

    ad2. App does not have to be active, you can close the app completely, no need to keep it in the background,

    ad3. You can customize the big icon as showed in example (screenshot) on store page

  • Hi, is there any update?

    The Generating the Xcode project on the Mac using Cordova CLI tutorial is now available. Please note at the bottom the "ADS" button which reveals additional content about Ultimate ADS.

  • Hi, is there any update?

    Not yet but it is a weekend, so I don't dare to rush anyone on Sunday. Please give it a bit more time. I'll ask him on Monday.

  • Please help!

    Hi fanjiangang,

    I'm sorry for late reply but I had to rethink of how can I help in your case. And I have some good news. I asked a friend to test a project with Ultimate ADS with Xcode and he managed to get it working. I asked for a tutorial so I could send it to you.

    I should have the tutorial soon, so you could just follow step by step.

    Thank you for your patience.

  • EasyLeaderboard — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2-plugins/easyleaderboard-4145

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

    • EasyLeaderboard plugin for C2 & C3

    <h3>What is EasyLeaderboard plugin?</h3><div class="deshr"></div><p>It's a simple 3-column (position, name, score) leaderboard with customizable appearance. </p><p>All you need to do is set/update the entries (users) with particular score and the plugin will do the rest for you.</p><h3>How it works?</h3><div class="deshr"></div><p>First you need to initialize the leaderboard which means: set the number of entries you want to see on the leaderboards, margin between entries, bind fonts, set position and layer.</p><p>Optionally you can set a required user which is a user that will always be drawn on the leaderboard even if it's far away from top entries.</p><p>Then you just set entries which means setting a score for particular user like "Set score 50 for player James". EasyLeaderboard plugin will calculate his score against all other scores in the leaderboard and sort it the right way.</p><h3>Features</h3><div class="deshr"></div>

    • Fully customizable appearance
    • Compatible with all text-type objects (Text, SpriteFont, SpriteFont+, etc.)
    • Two sort type modes: Ascending/Descending
    • Top X entries to draw
    • Required User feature
    • Available 3 columns: position, name, score

    <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%3Cp%3Eor my FB: facebook.com/C2C3Plugins%3C/p%3E

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

  • Actually I lied... :X I may have a Cordova plugin that will require me to use PNG. What's the possibility of getting an option of being able to configure the filetype as JPEG or PNG?

    I'll keep you posted if I find out otherwise.

    Thanks!

    I just checked it and it looks like I lied as well. Right now it saves as a PNG. You can see it in the header of the base64 string if you console.log the thumbnail. Sorry for the confusion!