e7b62f0671b94223b27706131ce5638f's Forum Posts

  • Hello,

    I have simple sounds in my game etc. jump, hit, pick up coin... When i emulate project in Intel XDK or in C2, everything works fine, but when i build up the project in XDK and installed it on my device, every sound is delayed. When i jump the sound is being played in the half of the jump. Do you know how to fix this?

  • Hey guys,

    I followed this tutorial https://www.scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql

    Step by step. I have 2 php files on my hosting server 1st is getscores.php, 2nd is savescores.php,

    when i enter domain name to my browser and use /getscores.php or /savescores.php, it works perfectly, i can upload new score and names, but when I run layout in C2 it loads me previously saved scores nicely, but when I want to upload new score from game, nothing happens. Do you have some trick to It? Or is it just problem before exporting? I think there is problem with some security stuff, but I don't know how to fix it. :/

    Thanks for your help.

  • i got this in my getscores.php, i put it to savescore, but still not working... :/ Any idea, how to fix it?

    When i go directly to the page savescore, i can save the score there, getscores too, but in game i can only load scores, but I can't save them to that online php file. :/

  • Hello,

    I have a problem with posting scores and player names to my online php file. I don't have problem with getting the scores and names.

    I was following this tutorial: https://www.scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql

    Do you know how to remake that savescores.php document, to allow it saving the score cross-domain?

    I will appreciate every help, thanks a lot guys!

  • Thanks a lot man!

  • Hey guys!

    I was trying to figure it out on my own, but I just can't make it work.

    So here is the problem...

    I have 4 different backgrounds and I want them to change randomly every 25 points.

    Do you know how to do it?

    I know that i need random(0,3) for bg. I just can't get right that every 25 points trigger.

    Thanks for help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you don't need to see the other layers use "make layer visible" invisible, than zoom.

  • Hey. I think that you will need database for that... Database will remember the ID and password.

    Try to seach for something in manuals.... It will have to be online datase.

    I used mySQL for saving highscores, the principle will be same. You will have to add more action to compare if the password is correct.

  • Do you have some special kind of enemies or same enemies? If you have same... you can just spawn new ones after respawn...

    If you have some special ones, i have idea... I don't know if it is the easiest way to do it, but here is my opinion....

    You can make global variable "counter" for every kind of enemy, than after respawn you just take the value from that global variable and spawn the exact number of each kind of enemies.

  • I bealive you can find answer in this tutorial... https://www.scirra.com/tutorials/37/beg ... onstruct-2

    You just have to place the movement action under "every x seconds".

    In short this could work, i think.... : random direction movement, stay in one place, after x seconds generate another random movement. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    I hope you get the idea. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Thanks a lot! I was scared that it will stop my whole code. But it is working fine!

  • Hey guys!

    I'm finishing my game right now and while testing I hit on some problems that I don't know how to fix...

    When player dies the game makes layer 2 visible ''deadbox''. I added sound for jumping that is ok, but when player dies and I'm clicking on button on that layer 2 I can't stop that jump sound from playing...

    For jumping i'm using invisible rectangle with the action jump.

    Any ideas? I will be glad for every opinion.

    Thanks a lot!!!

  • Thanks a lot guys! You helped me a lot!

  • Hey guys!

    I tried to search for some topic, but none of them trully answered to my question....

    I have 4 types of player's skin and I want them to change after reaching some score or after purchasing in the shop.

    Do you have any ideas how to do that?

    And another problem, can I do some random pick from 3 backgroungs on every start of the layout (something like flappy bird had)?

    Thanks for all your answers and help.

  • Hello guys,

    I watched tutorial from ArcadED, but I think that is online database on web...

    Do you know how to create global High Score in game? etc. Like in flappy bird? You press button, to access new layout with 100 best scores of all scores worldwide, do you know how to do it? Can i save all new High scores to my PC and after the day refresh the highscore manually?