pinball .capx download

0 favourites
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • emoaeden

    check pm

  • Rudi how did you made the hiscore system? I need to use it for a game that I'm developing but I have no idea on how to do it, could you upload a .capx with it or at least explain how did you develop that system?

  • hi,

    i started with a tutorial i found on this site ,for some reason i cannot find it back

    so i do my best to explain

    note: english is not my native language

    first you need a msql database ,

    insert this sql


    CREATE TABLE `scores` (


         `name` VARCHAR( 20 ) NOT NULL ,

         `score` INT NOT NULL ,

         PRIMARY KEY ( `id` )

         ) ENGINE = InnoDB;


    there are 3 php files

    1 getscores

    2 savescores

    3 resetscores





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

    $host="localhost"; // Host name

    $username=""; // Mysql username

    $password=""; // Mysql password

    $db_name=""; // Database name

    $tbl_name="scores"; // 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 scores ORDER BY score DESC LIMIT 10";


    // Start looping rows in mysql database.


    echo $rows['name'] . "|" . $rows['score'] . "|"        ;

    // close while loop


    // close MySQL connection







    $db = "";//Your database name

    $dbu = "";//Your database username

    $dbp = "";//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']));

         $sql = mysql_query("INSERT INTO `$db`.`scores` (`id`,`name`,`score`) VALUES ('','$name','$score');");




              //The query returned true - now do whatever you like here.

              echo 'Your score was saved. Congrats!';




              //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 '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.











    $connection = mysql_connect("$host", "$username", "$password") or die ("Unable to connect to server");

    mysql_select_db("$database") or die ("Unable to select database");

    $sql = "TRUNCATE TABLE `$table`";


    echo "Table Deleted";





    i hope this help you out

    if you need more explanation contact me

    greets rudi

    Rudi2013-01-12 20:42:51

  • Rudi The .capx link seems to be down. Where can I download it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i lil type error


    you can try again



  • Rudi Downloaded, thanks for that! I'll try to do some things with it. Seriously thanks!

  • glad i could help

    greets rudi

  • Can you post it publicly? That would be awesome.

    It is still the single best pinball implementation in C2 I have seen so far.

  • i'm not finished yet ...need to do some stuff ...

    when done i release it as a pinball template .....

    greets rudi

  • Great game! I would however try setting a maximum speed for the bal, sometimes it gets a little to fast IMO.

  • Rudi Thanks for the effort!


  • I would like to help about graphics of the game if you need.

  • onur check pm

  • Great game! A piball style game is my very first with Construct 2 and I'm running into a problem with my flippers I was wondering if you could help me out with?

    Everything functions perfect, the only I am having is if the ball lands in the middle of the flipper as it is being triggered, the ball will pass straight through it.

    Not sure how to resolve this, tried dozens of different options and can't get anything to work right.

    Any ideas?


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)