ChesVCF's Forum Posts

  • Hi!

    I need some help on CSS. I want my text box to rotate 45º on the X-Axis. I already tried setting the CSS Setting "transform: rotateX(45deg)" but this only applies to the text, and not to the borders. I also tried with "clip-path: polygon(0 100%, 10% 10%, 90% 10%, 100% 100%)" but then you can't read all the characters in the text box.

    Any clue? Thank you

  • Hi!

    I am having a problem when using Bullet and LiteTween Behaviour at the same time:

    I have an object that moves at angle 90º when clicked (with the Bullet Behaviour) and, after a second, it stops. When the Bullet speed is equal to 0, a LiteTween starts and makes it move to a target. This works fine. But, when I click the object once again, instead of moving at angle 90º, it moves at angle 0º. I have already tried everything. I even tried changing the "angle of motion" property in the debugger from 0 to 90, but it doesn't allow me, it is blocked at 0. I can change all the other properties (vectors, gravity, etc), but not the angle of motion.

    Therefore, I think it is a bug, LiteTween somehow blocks the "angle of motion" property in the Bullet Behaviour. I can post a sample capx if you want.

  • I don't think you can show rewarded videos with the official AdMob plugin, so you would have to either use a third-party-plugin or another service (that isn't AdMob) like this one.

    And please be careful when using non official plugins to show ads, because many of them take a percentage (usually less than 5%) from your benefit.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's called "Interstitial Ads."

    https://www.scirra.com/manual/184/admob

    Are you sure? I think what he is asking for are rewarded intersticials (Videos) and I am not sure if you can load them with the admob plugin, as rewarded intersticials are not exactly the same as normal intersticials (you have to setup mediation in Admob etc...). I use third-party plugins to show rewarded intersticials.

  • Hi!

    I am making a game where a player (with Physics behaviour) has to advance and, on the background, there are other objects (also with Physics behaviour). My problem is, the player's phyisics interacts with the background object's physics (which shouldn't happen, as background objects are far away in the z axis).

    So, is there any way to turn off the solid behaviour that comes with the phyisics behaviour by default? Or is there any way to go through any of these background objects?

    Thank you!

    Note: I already tried with Platform behaviour, but it isn't what I want. It is really necessary that the player behaves "physically".

  • It should be a setting on your host rather than anything you do in your project.

    Yes, on HTML5 games the setting will probably be on the host, but what if you want to export to Android? I'm sure there is a way to allow http connexions, but I imagine you have to change something in the apk's code and explicity allow such connexions.

  • Anyway, I'm sure there has to be a way to allow exported projects to request not only https URL's but also http URL's. By default, http are blocked.

  • Yes! It works!

  • Make sure you can access the URL in a normal browser first, i.e. just type in the AJAX url into your browser and see what happens.

    I did, and it works perfectly.

    Second observation, and probably why it is not working. Your "Access-Control-Allow-Origin: *" header never made it into your response headers. So your PHP is bad.

    I think the PHP is good because it works in the preview, on every browser I tried and on the Intel XDK's simulator. I used the net tab of the debug tools and I found this

    I'm going to upload the PHP to a https server and check if it works in HTML5 (hopefully!)

  • I have tried but I still have the same problem. I have a sample capx and I exported it to a HTML5 version.

    The project requests a PHP on a server that gets some values from a database. As you can see, when you run the capx, you can successfully see those values. If you run it on the exported version, there is an error. The requested PHP opens with

    <?php
    header('Access-Control-Allow-Origin: *');[/code:xrjb1mhz]
  • I already tried with the first option and it didn't work. I'm going to try with the scroll-to behaviour, hopefully it works

  • Hi!

    I am trying to export a project, but I am having some problems with the AJAX. "Post to URL" and "Request URL" actions don't work in the exported version (I did already export to HTML5 and Cordova). I think this is strange, because "Request project file" action works perfectly. I have already checked it on multiple devices and with different Internet connexions, but it simply doesn't execute this two actions. Any clue?

    Also, if anyone could help me with this problem it would be great.

    Thank you for your help!

  • Hi! I totally agree with jobel

    I liked your tutorial but I would add some things:

    • attach a sample capx to the tutorial (it is easier to understand it if you have the capx and this way nobody will miss any step or do anything wrong)
    • if you do a tutorial on Firebase API, it is very important to explain how to set up the Firebase account and the Firebase database etc.
    • I think it is easier to follow a tutorial if you hear the instructions than if you have to read them, but that's only my opinion
  • Fine

  • You are beginning to see why I consider dedicated servers 'normal' though.

    Yes

    You need two server-side programs running. One is the webserver which runs your C2 application and one is the browser on the server which talks to the webserver (over the localhost, presumably) and acts as the 'host' client.

    Ok... So, I have the first one (the server that hosts my C2 application) but I don't have the second one, I guess... And what do I have to do in order to get the second one to work? I have looked up many tutorials but I didn't find nothing interesting.