makarone's Forum Posts

  • You do not have permission to view this post

  • Hi, i was stuck in calling the plugin from C3, but it's solved now.

    So to init this plugin i did that:

    if (typeof cordova !== 'undefined') {
     ('cordova-plugin-yandex-ads/www/yandexads');
    }
    
    // Initialize with your Yandex block IDs (get from Yandex dashboard)
    YandexAds.init({ 
    
    
    Inside Init there are a lot of code, and it is just taken from github of the plugin as is
    
    })
    

    Here are few notes about integrating plugin to the cordova ios project ( on Mac)

    Cordova should be installed by npm without sudo

    If your cordova doesn't run tasks without sudo, then permission should be added to the whole user folder ( i just did that, not sure what else can work)

    in terminal : Chown -r 'USER FOLDER'

    This was the main issue when adding plugin ( there were an errors like 'swift old version', 'no such module', pods errors etc.

    Just fixed permissions, installed cordova without sudo and everythig ran smooth.

    cordova platform add ios, cordova Plugin add 'Plugin name'.

    Inside the construct there are some js code to check cordova and event listeners. And it's been discussed here in forum

  • Hi, is anyone know how to correctly import Cordova plugins using JS ( files or in the event sheet)

    The project has been added to the Xcode, but the app can't find it since there is no working Import call from inside the app.

    Here is an example how developer of the plugin adding it in regular code, but adding it to cunstruct JS i see an error in the xcode console that this plugin is not found:

    import * as 'ProjectName' from 'cordova-plugin-yandex-ads/www/yandexads';

    await ProjectName.init({ ]}

    This line has been added to the js block OnStart of layout.

    Please help!

  • Hi guys, please help.

    How is it possible to check the transparency of the touched area (Touch.X Touch.y) ?

    Shortly, i need to ignore the transparent area of the sprite and make it touchable only at painted pixels.

    Trying to do it with the drawing canvas ( DrawingCanvas.Snapshotat(x,y), but no luck.

    Setting up the collision polygons is not really an option, since there will be a lot of images.

    Thanks!

    Mak

  • ANOTHER SOLUTION!

    I also read at the manual, and it was even easier, so we

    just need to set the string as Array.JoinString(",") , but without separator. it will write it as a big number.

  • Oh Thanks Igor! You are awesome!

  • Hi guys, could you please help me with a thing.

    So, i have an array which values are only at.x

    Ho can i put these values to a string like a single line?

    Each cell at X has its own value->

    e.g Cells 0,1,2,3 has values- (3,1,2,0) - and i want to get them as a single number like 3120

    Please help :)

    Cheers,

    Maksim

  • Thanks for the answer. I wish i got a reply from you :)

    So, will be trying to figure this out. Thanks!

  • Hey Guys, i'm creating a physics object from many of the sprites connected to each other by the prismatic joint like a fixed chain.

    And when this big object is falling on the static boxes( especially on the corners) i see how the joints is being spread a little bit.

    Is it possible to fix them permanently? To make this object kind of a solid.

    I've tried some other types of joints, but the prismatic works best.

    Thanks!

  • Hey Guys,

    Would you like to have an option to save your behaviours properties and add it to different objects in 2 clicks?

    i've created an idea of this feature, so if you are interested in it, please vote for it here:

    construct3-21h2.ideas.aha.io/ideas/C321H2-I-453

    Here is an exaple of the idea

  • Thanks! But it it possible to write this function in the index HTML? Since main sdk file is downloading from server, i don't have such file in my folders.

  • Hi, i'm preparing project for the platform and adding their SDK with ads.

    I'm working with the C2 runtime and features of the c3 runtime are not available for me with this project.

    The thing i can't handle is to get function from their api.

    The question is : How to get this function that happens in the Console and then to run action inside Construct?

    For example:

    ->From the Construct i'm Executing JS with the function 'showAds'

    -> then ads is showing

    - > after the ads Complete i can see the function 'adsComplete' in the Console

    -> then i need to run the action in the Construct, after this^ function.

    As i know it can be done from the index.html with c2_callFunction, but i don't know the coding.

    I'm hoping anyone know the solution!

    Thanks!

  • Hey all! I've noticed that NwJs C3 on Mac (iMac 27 2020) run projects slower and more laggy than the browser build. The same game on safari C3 is pretty smooth, but with the desktop version ( when running the game from editor) frame rate is not the same and even worse.

    Is there a way to make it run as smooth as the browser version?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, is there a way to get External editors work for Mac OS?

    I'm trying to select the app, but is not selecting.

    Is that a bug? Or can I write the path manually somewhere? Thanks!

  • Here is the answer:

    We have to comment this block in index.html:

    <!--<link rel="manifest" href="appmanifest.json" />-->

    Then THis button should be disabled.