Paradox's Forum Posts

  • It says it needs the Boundary plugin.

    I was going to copy the "Touch zoom" demo into an event sheet, and include it in your event sheet, and see if that worked.

  • Here's mine you can compare, (not real names) but I have a feeling it may be the database.

    This PHP deletes them after they are 10 days old, but only when a new score is added. (I need to change that eventually)

    <?php
    
    $db = "puckdata";//Your database name
    $dbu = "serv_pucked";//Your database username
    $dbp = "fakename";//Your database users' password
    $host = "localhost";//MySQL server - usually localhost
    
    $dblink = mysql_connect($host,$dbu,$dbp);
    $seldb = mysql_select_db($db);
    
    if(isset($_GET['name']) && isset($_GET['score'])){
    
         //Lightly sanitize the GET's to prevent SQL injections and possible XSS attacks
         $name = strip_tags(mysql_real_escape_string($_GET['name']));
         $score = strip_tags(mysql_real_escape_string($_GET['score']));
           $xtime = date(U);
           $time = time() - (60 * 60 * 24 * 7);
         $sql = mysql_query("INSERT INTO `$db`.`scores` (`id`,`name`,`score`,`xdate`) VALUES ('','$name','$score',now());");
         
       
      
         if($sql){
         
              //The query returned true - now do whatever you like here.
              echo 'Your score was saved. Congrats!';
              
         }else{
         
              //The query returned false - you might want to put some sort of error reporting here. Even logging the error to a text file is fine.
              echo 'There was a problem saving your score. Please try again later.';
              
         }
           echo $time;
           $qry_del = mysql_query("DELETE FROM `$db`.`scores` WHERE xdate < DATE_SUB(NOW(), INTERVAL 10 DAY)");
           if($qry_del){
         
              //The query returned true - now do whatever you like here.
              echo 'Old Scores Deleted';
              
         }else{
         
              //The query returned false - you might want to put some sort of error reporting here. Even logging the error to a text file is fine.
              echo 'There was a problem deleting the old scores.';
              
         }    
    }else{
         echo 'Your name or score wasnt passed in the request. Make sure you add ?name=NAME_HERE&score=1337 to the tags.';
    }
    
    mysql_close($dblink);//Close off the MySQL connection to save resources.
    ?>
  • Did you try entering the URL manually, and see which response the PHP shows?

    I've used the high score save myself, so I know the | character works.

    I just manually entered my get script url for my Pucked game and it sent:

    Paradox|16496|Glitz|13431|Joseph|7240|Joseph|6978|ABR|5681|A|5667|ABRA|5607|b|5254|ABR|5029|A|4708|

    edit:

    Just had a thought, is your database expecting a number for that spot, or a string? If it's formatted for a number and your sending strings, that could be the problem.

  • Wouldn't it end up looking exactly the same as what we have now? I mean for convenience the objects event sheet would probably be in the project list with the other event sheets. And included in the primary event sheet.

    Just like any included event sheet.

    So the only thing this request actually does is add a hot link to an object that opens the event sheet?

  • The widths are set in the events. If you don't use "Give your fonts mono" by BlackHornet, then you have to do it yourself. My tutorial attempts to explain it.

  • I still remember the days when they added tables to HTML and half the people argued very heatedly, "browsers are hypertext viewers, it's not supposed to look like desktop publishing!"

    Now we are working to get them controlling frame rate to the exact microsecond. I find this so funny.

  • Thanks, I thought it would be fun for people to share, but I think too many people are scared to even look at it.

  • I seem to be having a problem like that in the Nexus 7 Chrome browser, without using Cocoon.

    The title music, and map screen music, are playing on the gameplay screen where it repeatedly has stop instructions. But instead plays multiple overlapping music, until the browser finally crashes.

    Anyone have a device with Chrome browser that can tell me if they get the same thing? http://visualparadox.com/games/cbb/

    Works fine everywhere else, and my other games work fine on the Nexus.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you go to play the sound add a condition that checks the sound is not already playing. That way you know for sure that's not it.

    I had that happen once where it sounded fine on PC, but on a mobile, you could here really maxed out audio where the sounds overlapped.

  • For fades I like to use a sprite, usually less than 32 pixels. I put the fade across it, and stretch it to fill the screen, and the blur added to it blends all the colors for me. (the ground in my Chicks game is 1x20)

    I try not to do that with transparency though, as when played on mobile, it can only handle drawing 3 screen worth before taking performance hits. Meaning areas seen through a sprite are using twice that screen area to draw. And too much overlap can reach that limit pretty fast.

  • The mime types were mainly for getting sound to work, but black screen usually means it stopped with a java error. Probably not recognizing the filetype.

    Do you have a "webconfig" file in your root directory?

    here is a clip of the start of mine, it has a bunch of other junk in it you wouldn't need.

    <configuration>

        <system.webServer>

            <staticContent>

                <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />

           ??<mimeMap fileExtension=".m4a" mimeType="audio/mp4" />

            </staticContent>

    If you don't have access to one, ask your provider about adding a couple mime types, they may have to do it for you.

    Here is a tutorial page:

    https://www.scirra.com/tutorials/655/tips-on-publishing-html5-games-to-the-web#h2a3

    edit:

    you might go ahead and stick:

    <mimeMap fileExtension=".webapp" mimeType="application/x-web-app-manifest+json" />

    under the audio types, if you ever submit to Firefox marketplace, it needs that one.

  • Some games do it comic book style, put up slide show images with click or touch to continue..

  • That's what I do when that comes up, I put all the objects in a family, and use it as the subject of the pick.

  • Since you aren't repeating top to bottom, you could put a transparent row along the bottom edge as well, which should catch the blur that's wrapping around.

  • I am trying to whip out another game for the extended contest, but rather than writing a whole achievement system, I was thinking of using the Clay plugin.

    Has anyone used Clay with Tizen, or know if it works with it?