FatRat's Forum Posts

  • Thanks for the replies (and sorry for the late reply myself, I tried to reply last week but was getting an error on the forums).

    I used OddConfections suggestion of this "random(2) > 1 ? 3 : 1" which did exactly what I needed in the end.

    The 'choose(1,3) option sounds useful though. I didn't know about that function.

  • Hey all, been trying to solve a problem involving random values, and have had a good search through the manual and forums but can't seem to figure this out...

    I'm trying to pick a random value between 1 and 3, and are currently using this which works fine (the 'Ceil' rounds the numbers up to whole decimals, which is what i want):

    Ceil(Random(3))

    But how do I use this to pick only 1 or 3 (i need to exclude 2). I thought it would be something like this, but it doesn't work:

    Ceil(Random(1,3))

    Thinking it would choose either 1 or 3...I think I'm barking up the wrong tree with this logic.

    Does anyone know a way to do this? Totally appreciate the help...

  • Facebook has a 'sandbox mode' which lets you make it only visible for certain specified users. Thats what I used for testing my own facebook game, and when you're happy with it, you can turn sandbox mode off. Then it becomes publically viewable.

  • I didn't actually do anything, it just suddenly stopped giving me 0's and started posting the actual score. I believe the Facebook API was being updated, or was down for maintenance or something at the time I was initially testing.

    I found a few little bugs like that which seemed to fix themselves - I think Facebook are always making changes to their API and it just causes little niggles. Nothing we can do about it really!

  • Last night, my scores suddenly started working properly. Before, they were all showing up as zero's, but now they load properly.

    I'm guessing facebook's API was down for maintenance or something while we were testing our games. Do they work for you guys now too?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, I too am constantly getting a score of '0' for every user who tests my game...everything else is working, I just can't figure out why it always results in a zero for the Facebook score

  • I got a certificate from godaddy for about a tenner, but I got a friend to configure it as I don't really know how to set them up. If you have a hosting package, you'll have to look into setting it up on that.

  • Have you gone through the entire Facebook game tutorial on this site first?

    scirra.com/tutorials/58/how-to-make-a-facebook-game/page-1

    Unless you have the game hosted on a secure domain (https://) the Facebook API has very limited functionality. That was the first headache I had when starting on this...

  • Aha! Yes, thanks a lot. Using 'Append Text' works. I now have a list of highscores, but they are all showing up as '0' score and in the wrong order, but I think that's something I can fix.

  • Thanks for the response Ashley, that helped a lot. I've now successfully got the text field to load up the current user's score, but I can't get it to load up the other users. (to test this, I've got several friends to play and submit scores as well, so there's definitely a few scores being submitted).

    I would totally appreciate an example file if you have one too...

  • I've been trying to implement the Facebook object, and its mostly gone smoothly and I'm happy with the way it works, but I've come up against a bit of a wall when it comes to making the highscores list work. At the end of my game, you can submit your score, and it automatically posts a message to your wall saying "I scored X points!" and it works fine.

    The bit I can't work out is how to display a list of scores - say, the top 10, for example.

    When the 'submit' button is pushed, it also "Requests Highscore board" - but what do I do with this? I'm guessing I need to link this to a text field and display the scores in that, but I can't figure it out.

    Has anyone done this successfully yet, and if so, could offer some tips?

    Thanks a bunch

  • Well that explains a lot. Thanks for the help :D

  • thanks Kyatric, I did look at that already, it will probably do what I need to do, but still not sure where that "Set Image Offset" setting is hiding...

    Thanks though, gonna try and do it that way instead.

  • Does the animation itself last exactly 3 seconds? If so you can go into the animation 'edit' view and tweak some settings there.

    1. From the layout view, double click your sprite

    2. Select the animation itself from the list on the right on the right,

    3. On the left side there will be some options. You can set it to 'loop' and set the 'repeat to' as the frame you want it to loop from.

    Maybe this will solve it?

  • I'm trying to make a Tiled Background scroll to the left, and loop infinitely. I've searched the forums for a while and everyone keeps mentioning "Set Image Offset" but I can't seem to find that option anywhere. Has it been changed since the latest update?