Neller's Recent Forum Activity

  • Thanks guys, I tried doing the save game route but for some reason when I loaded my game again it had wierd results (like my player couldnt move).

    In the end I removed the 'persist' behaviour off my objects and just store the states I needed in Arrays, then when I reset the game just cleared the arrays, seems to be doing the job for now anyways.

    Thanks again

  • Hi Guys,

    If my game uses a few objects with the 'persist' behaviour on, is there a way I can easily reset these say on game over? so any that was destroyed will be back to there original place etc.

    Better yet, is there a way to easily reset the whole game (like the reset global variables) but which resets the global variables and persist objects and anything else.

    either would be great if anybody knows, I can probably figure out but didnt know if there was an easy way

    Thanks,

    Alan

  • HTML 5 Website

  • Hi,

    Does anybody else have problems toggling the sound on / off on a kindle HD?

    It appears my 'sound affects' dont play when I use the 'set silent' mode on the audio object, however my 'music' files seem to carry on playing regardless.

    Should I be using a different method?

    I'm using CS2 r184

    Thanks,

    Alan

  • At the top click on 'View' then change the zoom %

  • Lets say your exported folder name is 'mygame' you should just be able to upload that folder and all its contents into your websites directory and then play it from the URL, for example

    I don't use Godaddy but I assume from your control panel you can just upload files into your web directory.

  • Well for now I have just added another action to set the volume so low you cant hear it, but I assume there must be a better way.

  • Hi,

    Very simple question, but I have had reports that the mute button I added to a game doesnt work on a Kindle fire HD, (seems to work on my mobiles and my desktop) - but I don't have a kindle Fire HD to test with.

    The game is finished and has been submitted for QA on FGL, but this has come back, I'm currently doing it using the 'Set silent' from the Audio object.

    Should I also be doing it another way?

    Thanks,

    Alan

  • Using web storage you just store anything to the key, so if you stored something under the key ('highScore') , you can then use the functions provided to get whatever is stored in that key, the 'key' can be anything you choose as its name.

    However, if you are looking to implement a 'high score' table that other people can view (so the scores are global if you like and everybody can see / try and beat them) , the web storage is not what you need as its limited to the person playing the game only.

    Anyways... I dont know if I have explained very well, but here are 2 tutorials that might help you, the first one is about making a high scores table using web sotrage

    https://www.scirra.com/tutorials/448/ar ... high-score

    And this second one is to do what I mentioned earlier and make a high scores table available to anybody who plays from any device.

    https://www.scirra.com/tutorials/346/on ... -php-mysql

  • This should cover what you need - https://www.scirra.com/tutorials/346/on ... -php-mysql

  • Apologies., I did also explain that it doesnt solve that issue and that im at work so couldnt do that part with the capx...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can fix the error by checking the $_POST['score'] variable exsits, so before your query you can use

    if(isset($_POST['score'])) {

    $score = $_POST['score'];

    } else {

    $score = 0;

    }

    and then use the $score variable in your query, this wont fix the reason the $_POST['score'] variable isnt being sent, but its always best to check whats being sent and also in your case make sure its a number to stop people doing stuff they shouldnt be able to.

    if(isset($_POST['score']) && is_numeric($_POST['score'])) {

    $score = $_POST['score'];

    } else {

    $score = 0;

    }

    I'm working at the moment so cant have a look at the capx, I will try and help when finished.

Neller's avatar

Neller

Member since 12 Feb, 2014

None one is following Neller yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies