sizcoz's Forum Posts

  • I have a listbox(drop down) with numbers 1 to 100 already populated, I want to append a text box with my choosen selection, which is not a problem with "on selection changed", but where my problem lies, is when I want to select the same number twice.

    e.g 1,2,3,6,2,4,2,5,4 is ok

    but 1,2,2 is where i get a problem because the selection has not changed, it only shows 1,2

    Any ideas ?

  • Firstly , Your php, should look like this,

    header('Access-Control-Allow-Origin: *');

    $host="your host i.e 0.0.0.0"; // Host name

    $username="your username"; // Mysql username

    $password="your password"; // Mysql password

    $db_name="the database name"; // Database name

    $tbl_name="your table name"; // Table name

    // Connect to server and select database.

    mysql_connect("$host", "$username", "$password")or die("cannot connect");

    mysql_select_db("$db_name")or die("cannot select DB");

    // Retrieve data from database

    $sql="SELECT * FROM your table name ORDER BY id DESC LIMIT 300";

    $result=mysql_query($sql);

    // Start looping rows in mysql database.

    while($rows=mysql_fetch_array($result)){

    echo $rows['id'] . "|";

    }

    // close MySQL connection

    mysql_close();

    ?>

    Then you should be able to access the ajax.lastdata, make sure it shows up in the debugger.

  • Have a look at a capx I wrote a while ago https://www.scirra.com/tutorials/4804/s ... -16-events

    You could add your special items to the tail, by adding

    Every tick > (your sprite) set position to (snake_body.x,snake_body.y)

    To reduce the snake if its hit by something , just subtract some amount from the growth variable

  • Simples, as RamPackWobble mentioned, just count the characters with left.

    left((Browser.ExecJS("Date()")),16)

  • Awesome, thanks a lot for this!

    I was avoiding using any height methods at first because I wasn't sure what font sizes I'd need, and I didn't want a system that would need some re-coding every time I altered my formats. But it's the next best thing.

    I'm having an issue, though. I've troubleshooted it as best I could with a friend for the last few hours and it seems to me that when I ask for the value TextHeight I get a negative version of the "Line Height" property of the Text Object.

    For example, if I have Variable=Text.TextHeight, no matter how much text is in the Text object, I'll get Variable=(-1 * "Line Height of Text"). If my Line Height for the Text Object is manually set to 12, TextHeight will return the number -12. If my Line Height is 4, I'll get -4. So there's a correlation between TextHeight and the Line Height property that is baffling me.

    It's possible I'm misunderstanding something key in the example you made for me. Any idea what I'm doing wrong?

    Turn the negative into a positive with the expression abs, abs(x) Absolute value of x e.g. abs(-5) = 5, might work

  • I prefer Sprites, css style I found was inconsistent, especially if your making the buttons global.

    Try http://dabuttonfactory.com/ , its free.

  • sizcoz

    here is a pinch to zoom capx I made a couple months ago while testing various interface things...

    You can pan around with one finger, zoom with two.

    http://www.rieperts.com/games/forum/TouchZoom.capx

    Cheers AllanR, I can see you've worked hard for this, just what I needed, cheers again !!

  • I'm not sure what your issue is.

    Perhaps you want to replace any "Text" object with "SpriteFont" objects so the overall zooming can apply "better" ?

    I have finished a basic website with mysql data for my local snooker league, I have been asked if when on mobile its possible to 'pinch to zoom', because its ok on pc and tablet, but far to small on mobile, I was looking for a simple solution.

    The website is http://www.mineheadsnooker.co.uk

    C2 made it quick and easy to make, compared to a traditional website, but is lacking 'pinch to zoom'

    Any suggestions would be grateful, it would be a shame to have to redevelop in html, just for this one reason.

    Also many thanks for replying.

    Also how do I change the favicon.ico?

  • ?is it possible?

  • How do I invoke 'pinch to zoom'?

    The example given with c2 is no good for text, seems to be shaky & longwinded, normally you can use one line of code in the head section of html which is

    <meta name="viewport" content="width = device-width, initial-scale=1.0, user-scalable=yes" />

    I have tried changing the index.html file, but it does not work.

    Any ideas??????????

  • Had the same problem with 213, would not minify, then when I exported a game update to the scirra arcade, it only worked in Edge(ie), I had Java 8 update 60, win 10 64bit, I had to revert back to 212.2, to get it all working again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Had the same problem with 213, would not minify, then when I exported a game update to the scirra arcade, it only worked in Edge, I had Java 8 update 60, win 10 64bit, I had to revert back to 212.2, to get it all working again.

  • Here's my entry for the underground jam.

    Get your name on the leaderboard (hard) by getting the (chipper) pick axe, and defeating the Skull Boss. You will only get your name on the leaderboard, by beating the boss,'not that easy'.

    Controls, just click , touch or press, works on modern tablets, phones, and pc

    Have a go anyway!!

    https://www.scirra.com/arcade/undergrou ... -2318?cp=2

    Good luck, to everyone else that has entered, it's all a bit of fun.........

    cheers

  • Hi, just made a quick snake clone and put it up on the Scirra Arcade, I have also posted the capx.

    https://www.scirra.com/arcade/action-games/snakey-1836

  • It's seems to be a good idea but you will must create nice level designs to keep your game funny. In the more complicated levels, roundtrips caused by lack of skill could be annoying for the player.

    Cheers norab, Level design is a difficult balancing act, thanks again for trying it out.