sizcoz's Recent Forum Activity

  • Just made a quick missile command clone for a retro blast.

    Put it up on the scirra arcade, grab it here.

    https://www.scirra.com/arcade/action-games/missile-commander-3491

    Capx now added.

    https://www.sizzle-games.com/missilec.capx

  • I made a website for our local snooker league, with ajax from a database, it works well, and everyone is pleased with it.

    works on pc, mobile and tablet.

    http://www.mineheadsnooker.co.uk

  • It's a bit like saying I won't buy this PC this year because in 2 years the spec will be out of date, you end up never taking the plunge, so in my opinion I would just buy it, you won't regret it, as mentioned the support, updates and community are a reason alone to purchase C2, you won't regret it.

    Cheers

  • hi ramones, did not work.

    just to verify, that is what i have done:

    step one:

    created array in construct with properties:

    width: 1

    height: 3

    depth: 2

    step two:

    loaded this string via ajax:

    {

    "c2array":true,

    "size":[1,3,2],

    "data":[ >      [ [300],[25] ],

         [ [100],[50] ],

         [ [800],[10] ]

    ]}

    as i understand now the size is similar to the array in construct, so

    - "size":[width,height,depth] - correct?

    step 3

    use the function Load from JSON string with ajax.lastdata (or the string itself)

    step4

    set debug.text to array.at(0,0,0)

    array.at(0,0,0) should be 300, right?

    If i get this thing working i will write a tutorial about it -.-'

    otherwise i have to fill my array with a splitted string... Padman2012-06-22 06:50:08

    Unless i misunderstood (which is often) If you set your json to "size":[3,2,1] instead of "size":[1,3,2] it should work, it gets 300 from array.At(0,0,0), therefore array.At(2,1,0) = 10 I have provided a capx here.

    http://www.sizzle-games.com/Ajaxtestarray.capx

    Also if you set your file to

    {

    "c2array":true,

    "size":[3,2,1],

    "data":[ [ ["cat"],[25] ],

    [

    [100],[50] ], [

    [800],[10] ]

    ]}

    array.At(0,0,0), will return cat

  • Asus Laptop, nvidia geforce 745m, intel i7, 8gb

    With touch screen, for mobile testing.

    Works well

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone! i have a top down game and i was wondering if there was an easy way to make a sandstorm or a blizzard that wouldn't be too resource hogging

    i suppose an effect that sticks to the screen and doesn't scroll would be the best choice? i don't know.

    Ok had a bit of fun doing this, it might be too resource hungry, see what you think !

    http://www.sizzle-games.com/sandstorm.capx

  • You can use the ajax object to request your json file, then once it is loaded, use the ' ajax on completed' to manipulate your json data or use a php script, to manipulate you json results.

  • start of layout>dictionary add key "attention" value (your value here)

    >dictionary set key "attention" value (your value here)

    Every tick> (your sprite here) set sine period to Dictionary.Get("attention")/50

    This will work, maybe you did not add the key, before setting the value?

    Thank you Nimtrix...

    And please explain me to rotate the same object in reverse order... which you provided in the sample..

    Just change the sin and cos around.

  • 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

sizcoz's avatar

sizcoz

Early Adopter

Member since 19 Apr, 2014

Twitter
sizcoz has 8 followers

Connect with sizcoz

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x12
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies