Zerei's Recent Forum Activity

  • Thanks! Now things get complicated.

    Let's say I have this CSV file, with 5 lines and lets say, 20 columns.

    How do I make the construct read this CSV, and if, at the column 1:

    Line 1 value is 1, spawn one fireball at Y = 100,

    Line 2 value is 3, spawn three fireballs at Y = 200

    Line 3 value is 0, spawn 0 Fireballs At Y = 300

    Line 4 value is 1, spawn 0 Fireball at Y = 400

    Line 5 value is 2, spawn Two Fireballs at Y = 500

    Did I make that clear? Then, after let's say, two seconds, the cicle goes on, but now reading column 2. Then3, 4, And So on.

    Please, somebody help :(

  • Guess it's more like Nimtrixs said. Can you explain me better , how to use this loop?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello guys. Two Questions:

    1) I need to make a sprite spawn some fireballs at determinated positions, many times, in a order that I want.

    Let me explain better.

    I have a Witch who spawns 4 fireballs at 5 random locations.

    How can I create a preset, I mean, how can I pre determinate the order and the position at which the fireballs are spawned, without consuming a lot of my time on the process? That's because the witch will spawn about 100+ FireBalls per stage.

    2) Actually, i'm using this code:

    <img src="http://img269.imageshack.us/img269/3945/semttulooa.png" border="0" />

    But sometimes, some fireballs are spawned at the same Y Coordinates. How can I set them to spawn exactly four, but always at different Y? (being it 100, or 200, 300, 400 and 500)

    Appreciate the help!

  • So, basically, if I make an event:

    Every Tick > Add 1*dt to Timer(varible)

    That variable will represent an actual time counting?

  • Hello!

    If I remember corectly, maybe one of the Construct 2 earlier releases implemented an high resolution timer. Am I wrong about that?

    Anyway, question is: if i'm right, then, how do I use it?

    I want to make a game that register miliseconds. That's impossible with construct, right?

  • Actually, I don't know if I must adress to it as a bug or as a mistake that I did.

    Saying that because, after some changes (which I don't remember), my game, after being exported to HTML loads very fast, and then just shows a Blank Screen.

    I'm kinda desperate about that, because my computer restarted all by itself some days ago, I think that this was the reason. Maybe my game got corrupted?

    I don't know. i'll post the Capx if it's really needed (78mb). My version is r90.

    Every help is appreciated!

  • A little bump again :) (Hope it's not agains the forum's rules)

  • Well, I worked a bit on it. Got some help with some students here in my University.

    This is what I got:

    <?php

    $username = $_GET['name'];

    $score = $_GET['score'];

    $acerto = $_GET['Hit'];

    $tempoReacao = $_GET['reactionTime'];

    if (!isset($username) || $username == "") {

        echo "failure";

        exit;

    }

    if (!isset($score) || !is_numeric($score)) {

        echo "failure";

        exit;

    }

    if(!isset($acerto) || !is_numeric($acerto)){

    echo "failure";

        exit;

    }

    if(!isset($tempoReacao)){

    echo "failure";

        exit;

    }

    $entry = $username . "," . $score .";".$acerto.";".$tempoReacao."\n";

    if (!file_put_contents("scores.csv", $entry, FILE_APPEND)) {

        echo "failure";

        exit;

    }

    echo "success";

    ?>

    But I have a question now, a very important hone.

    How do I use it with AJAX?

    Like, I think that I must go this way:

    Keyboard -> On Spacebar Pressed -> Ajax -> Request (request what and how?)

    Thanks!

  • Best explanation that I've found so far. Thanks a lot!! Really.

  • No problem. I'm ashame of my ignorance, hahaha.

    Here, I've read some threads before, and I have some question about this:

    "post.php?name=" & Vname & "&score=" & Vscore

    Vname is my variable and "name" is my field in PHP, right? Same thing to score.

    Then if I write this on construct using the AJAX, it will post my Variables called "vName" and "vScore"?

  • twdead

    I'll take your advice. But in order to explain my problems properly, could you please tell me how I can make it interact with constrcut? Just a small example.

  • Sure Thing... But I didn't understand a thing that you just said. Sorry, I'm that incopetent ;

    Could someone just tell me how do I write those variables, in a way that I can understand?

Zerei's avatar

Zerei

Member since 7 Mar, 2012

None one is following Zerei yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies