baks's Forum Posts

  • For form elements used in game, the most straightforward way is to use the set css style action for each form element object directly. Other objects do not use css for styling.

    You can also prepare multiple different .css style sheet files in advance, and load each stylesheet on demand via the browser objects load stylesheet action.

    Yeah, the problem is that I have a text editor and I want to affect to other game from this editor, so I need to edit the CSS, that's why I wanted to upload a CSS or edit the one of the game.

  • Css is supposed to be read only, I've never heard of modifying it via post.

    Php is generally used to interact with web services, in particular databases like MySQL to provide dynamic content.

    I want to change the css of a game from this app, how can I do it then?

  • Hi, I want to add a string to my CSS file uploaded on the server using Ajax.

    This is my code

    Maybe I need a .php? But I don't know how to do it. The CSS has all the permissions on the server.

    https://www.dropbox.com/s/gslk2hvijnfjbt2/Upload%20string%20CSS.c3p?dl=0

    Thanks so much for the help.

    Tagged:

  • This is my actual php file.

    Sorry, I don't know why but I can't copy paste the code on the post.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I usually use a PHP code to upload .jpg files

    But now I need to upload .png for the transparencies.

    There are any similar PHP or can be edited?

    Thanks so much!

    Tagged:

  • That was the old link, you can read them now here: https://www.construct.net/en/blogs/ashleys-blog-2/render-cells-work-921

  • I have this example project, I think it might help you with your problem.

    https://drive.google.com/file/d/1IuZO6fhGEAvVK1HXCDTOSZRIdvDc0Ffy/view?usp=sharing

    Yes! It's working, thanks so much, the only problem is that maybe is too sensible, because the sprite is continuously vibrating, there should be a way to stabilize it.

  • I want to rotate a pipe using the mobile tilting considering speed and amount of incline.

    I tried with this but it does not take these factors into account, it only turns left or right depending on where you lean

  • You do not have permission to view this post

  • The error in the log indicates that the method is called, so it's fine.

    To build with C3 you need to export your project for Cordova, then unzip the exported game and edit two files - config.json and config.xml

    See how other cordova plugins are configured there and add "cordova-plugin-device" the same way, preserving the correct formatting!

    After that add all files back to ZIP, open Export Manager in C3, load your updated zip there and click "Build application" icon.

    This will only work if cordova-plugin-device plugin is whitelisted in C3, I am not sure if it is.

    Thanks, I will check how to edit the xml because I used to did on Construct 2 but know the format has changed.

    Yes! I checked here: https://www.construct.net/en/forum/construct-3/plugin-sdk-10/build-server-cordova-plugin-149266 and cordova-plugin-device is there!

    About removing the plugin references, it wasn't working haha but was a good point. Possible because when you add the plugin it needs to add the Admob ID.

  • dop2000 OMG! Really useful tips, thanks so much, I've changed the function calls and changed "Import for events", but I'm checking the console log and I got this error.

    About "add this plugin to config files after exporting and then continue building the project with Construct Build Service."

    How I could do that? It would be very cool

  • The best solution would be finding someone who could make an addon.

    If you want to do this with JS, you can try adding their script to the project, set its purpose to "Import for events". Then call its functions from the event sheet, for example showBanner()

    You may need to call onDeviceReady() function directly to initialize the API, I don't know if the event listener will work in C3 game.

    This will be difficult to test, because you'll have to build the app every time with this cordova plugin, it won't work in preview. If you are testing on Android, I suggest collecting logcat logs to check for console and error messages.

    Thanks so much for the answer! I'm trying it, so I made this for testing.

    For testing with this should work?

    And when is exported to add the plugin on the folder how can I do it?

    This is the documentation: https://developers.yodo1.com/knowledge-base/cordova-integration/

    I'm not sure if it's better to edit the config file and add the code or make this code as js, include it in the folder, and then add with the command like in the documentation.

  • Hi,I need to implement this plugin:

    https://developers.yodo1.com/article-categories/cordova/

    I found this video where it uses Browser JavaScript to implement an Admob Cordova plugin, but I'm not sure if this is possible with this other plugin too.

    Subscribe to Construct videos now

    Tagged:

  • This is an interesting network with Ads management, they have a sdk with a Cordova plugin or native Android, but I think there is no Construct plugin yet.

    https://developers.yodo1.com/article-categories/cordova/

    How can I integrate with Construct 3?

  • Cartoon animator

    Is a game based on the old "The Simpsons Cartoon Studio" or the "SpongeBob cartoon creator".

    You can use some characters, assign an animation and make your own chapter of the cartoons.

    Screenshots

    You are able to use animations, make the characters walk, add voice recordings, move the camera, change the scenery or add background music.

    Is ready to be played on Scirra Arcade:

    https://www.construct.net/en/free-online-games/cartoon-animator-24861/play