CoffeeOD's Recent Forum Activity

  • In short, I have now tried to purchase license using paypal but no luck, keep running into different problems even after trying 3 different cards (1 visa, 2 mastercards, all within my family in case you wonder).

    Is there reason why Scirra has not enabled Google Wallet purchase option? I have used this with other services (such as allgamer.net) without any problem, its easy, fast and I can use my normal bank card.

    Paypal likes to makes things hard with continuess "account security" updates, which has now made our own dedit card useless to use and it will take time to solve the issue, which means delay on my game projects testing and development.

  • Problem "solved", file was corrupt and all the work I did yesterday is gone. I did save yesterday before going to sleep, today when I finally got back to home and game is missing two layouts, files. code changes and everything else related to yesterday work.

  • Failed to load .capx

    Unable to locate first file in archive C:/path/to/file.capx

    I uploaded file (single .capx project) to my webserver and tried to download it just now to continue working on the project at work, but got this error.

    I have done this (FTP upload file, download it to another computer and edit game) past few days without problem, could this be just corrupt file download?

    1) I had earlier .capx and project folder with same name (making sub directories like layouts, animations etc.). Deleted them both.

    2) Tried to rename file.

    3) Other files are working (samples I downloaded from same server).

  • Bump, would be lovely to get some sort of example. As far I see this could be used to make some sort of turn based games, for example something like Tic Tac Toe.

    My upcoming game would benefit from this alot, if indeed I could use web socket to create turn based games.

  • Awesome work! I visited your websites and left it open to listen your songs past hour or so. Again, very nice work and Im shocked if you arent working for some bigger game company already.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Agreed, simple tutorial about how to get started with the new websocket feature would be nice, it could be simple as sending text to websocket server and displaying that text in-game (from server).

  • Short answer: Yes.

    Longer version:

    This scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql tutorial will give you basic information, you can modify script for your needs.

    Example call:

    "http://website.com/get.php?name="&name

    note: after name=" you should define where script looks for name, it can be global variable, instance variable or so. To get information out, I had following line in my PHP script

    $result = mysql_query("SELECT * FROM (table) WHERE (row) = '" . mysql_real_escape_string($_GET['name']) . "'");
    $row = mysql_fetch_row($result);

    (table) = name of database table.

    (row) = row where to look for info.

    Example

    $result = mysql_query("SELECT * FROM highscores WHERE name = '" . mysql_real_escape_string($_GET['name']) . "'");
    $row = mysql_fetch_row($result);

    In this script is looking from highscores table and checking "name" row to match player name and gets information from there. Then we want some data out from player mysql rows. We can do following

    $koe = stripslashes($row[3]);
    echo $koe;

    This would echo $koe value to browser which you can echo to game using "Ajax.LastData" method. So whats up with $koe? In "$koe = stripslashes($row[3])" line Im looking third row from database, here is

    example setup:

    highcores table: ID, name, score.

    now when we look at this, "score" is third row which is why we echoed it since we wanted score.

    At websites (where we we have this script) we echoed $koe Ajax.LastData got one value which was $koe (score from database). You can use this method to dig out information from database to your game, modify script for your needs. To save up some time, you can also do few if/elseif things in script to define what exactly script is looking.

    Example

    "http://website.com/get.php?pid=score&name="&name

    example code at PHP page.

    <?php if $_REQUEST["pid"] == "score") { mysql code for score search };
    elseif ($_REQUEST["pid"] == "avatar") { mysql code for avatar search ; }?>

    Now you have to only change "pid=score" line from ajax request to match score or avatar and your PHP script would echo information you need without need to setup more complex thing. To get image, I assume you could echo full URL, for example check this file: dl.dropbox.com/u/59009902/load_image_from_url.capx

    Hopefully this helps abit, I assume you wanted more simple and short answer but I figured that small tutorial would help others who are looking for answer to same problem.

    This is not perfect solution but worked for me, tho I was searching and taking larger amount of data but idea is same. Feel free to send me private message if you need more detailed help.

  • I have done this multiple times using code, but having brainfart with C2 drag&drop system, any help would be very welcome.

    In short:

    1) while inventory(0) < inventory.width let loop run trough array from first to final "slot".

    2) If currentX equals 0 set string to get what X is first empty, then stop loop all together, no need to touch anything other as I want to get first empty (in this case "0") X location.

    Here is my few attempts but they fail, some loop affect all X?s and other just stops after first one, does not run trough all values and then pick first 0.

    This is inventory test where I want to put new item automatic to first empty slot available, since its random (maybe first slot is taken, maybe first, second, fourth but not third etc.).

    <img src="http://media.rajatila.com/images/failurtpt.jpg" border="0" />

  • Email send (from email), was in hurry tho so hopefully my points were clear enough :)

  • You do not have permission to view this post

  • Pretty fun, gameplay is simple but challenging.

    Have you consider any sort of power-up�s for normal attack? Example making enemies slower, blasting off multiple targets using area of effect missile etc.

CoffeeOD's avatar

CoffeeOD

Member since 13 Dec, 2012

None one is following CoffeeOD yet!

Trophy Case

  • 11-Year Club

Progress

11/44
How to earn trophies