wildmedia's Forum Posts

  • Okay, it's easy xD

    In your Files Folder, import the font that you want to use, I suggest to convert it to woff and also a font.css file.

    The font.css must contain the following code:

    {

    font-family: '[name]';

    font-style: normal;

    font-weight: 400;

    src: local('[name]'), url('[file]') format('woff');

    }

    After you imported those 2 files, in the event sheet, add the "Set Web Font" action, (On Layout Start > [Your text obj] > Set Web Font )

    Family name: [the name you used in your font.css file]

    CSS URL: "font.css"

  • Can you provide some code in order to make an idea and come with a solution?

  • levela, if Post variables via AJAX you must create a string that will look like "var1%var2" or any other character that won't be in contained by your variables, I often use * or ^, to create this string you can use: var1 & "*" & var2. In the postpack script(i suppose taht you use PHP), you must use the

    $string = $_POST['AJAX_TAG'] method to get the string and then :

    $anything = explode('*',$string) (that will create an array with your variables)

    $anything[0] = your first variable,

    $anything[1] = your second variable,

    if you need any help dont be afraid to ask. xD

  • Maybe is your CPU a little bit old for the settings you are using?

  • If is your personal computer and nobody else is using, I think that you can use the licence on a second machine, trow a look an the TERMS and then you'll find the correct answer, if you are allowed, you only need to copy the license file somewhere on the second PC and tell Construct 2 the location of the file.

  • I think that the 1 px error is a render problem, or the engine has to aproximate a distance < 1px, and that's why. If you show us a bit of your code maybe we can be more specific.

  • yeah he can do that, but if the game is large and it will not work with cookies disabled, my way will be faster and more effective.

  • The best way is to check it before the game loads, with a java script like this.

    function are_cookies_enabled()

    {

         var cookieEnabled = (navigator.cookieEnabled) ? true : false;

         if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled)

         {

              document.cookie="testcookie";

              cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;

         }

         return (cookieEnabled);

    }

    If you want the game to know if cookies are enabled, you can call this function trough AJAX and handle teh response.

  • Hello, the game is pretty easy to build, it depends on the number of holes and shapes.

    1. I think that the best way is to create separate sprites, and use the family method only if you want to have many colours.

    2. Fist, you have to check if the position of the sprite is the same as the hole position, for example (x:200,y:100), and then check if the sprite is under a certain angle, ( you will use Set Angle in order to rotate the object). I suggest to set a tolerance(about 5 degrees) or whatever suits your game.

    3. Use an array for shapes and one for holes(e.g. 0 for circle, 3 for triangle and so on)

    I hope that this will help you. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thank you very much! You saved me :) Silly me xD

  • Hello everybody, I'm a student from Romania. I study computer science and I decided to create some games with scirra c2 for my website, in order to find a bit more about game dev.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I have a problem and I can't find any solution. I implemented the CopperCube level into my project, the level is loaded but I can see the copperCube map only on the left side of my canvas, and is width is only about 10 px. What I am doing wrong? : ( Here's an URL with a screenshot Image