Neller's Forum Posts

  • 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...

  • 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.

  • this might do what you need - https://www.scirra.com/tutorials/346/on ... -php-mysql

  • Add an instance variable to your boss named 'canFire' or something, check this is true when going to spawn a bullet, and when he does spawn a bullet set this to false so he wont spawn another straight away.

    Then after the bullet is destroyed set the bosses 'canFire' variable back to true, not sure if this would do what you wanted.

    Other way you could set the variable back to 'true' every 1 second or something.

    Hope this helps

  • nice one

  • Yeah I thought it seemed too simple

    I see what you mean now, off the top of my head if the walls and player was both set to solids, and the player also had the 'bullet' behaviour on him (setting the bullets angle and speed based on the direction pressed) , then an event for when he hits a solid, set his speed to 0

    To fix an issue where he might not move due to being right next to a wall, you could always add an event to check when his bullet speed is 0 (ie stopped) , move him more central in the tile / empty square hes in, only needs to be by a pixel or 2 so wouldnt be noticed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have not used contstruct2 with Facebook yet but have developed apps for facebook in the past, but that sounds like its saying the URL you are hosting your game on doesn't match the ones you have entered into your facebook setup app page.

  • Hi, not sure if im missing something but would this work? - requires no code as such other than the built in behaviours.