jance0405's Forum Posts

  • Im also looking for a tutorial

  • I dont know if its correct but you can buy Andreas R template. He has everything what you are looking for.

    Btw, i have the same problem as yours, also been looking for a tutorial for Google Play Leaderboard this past few weeks but mostly outdated or paid tutorial (template).

  • I think they close the registration on their website. Any update?

  • > Hello, can you explain the "Link" and "Image/File"

    >

    > can i import a png file on my capx then use it to that "Image/File". If yes, how can i do that exactly?

    >

    > Image/File: "Logo.png" <<<<< is this correct?

    >

    > If i cant do that. Can i upload the logo on facebook then put the link on "Image/File"?

    >

    You must use the image path or an url, like "www/Logo.png" or "https://www.yourhosting.com/logo.png"

    I guess it is better to upload my picture on a website

    and by the way, what is an ideal size for the image?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there any complete tutorial for Google Playstore Leaderboard?

  • Hello, can you explain the "Link" and "Image/File"

    can i import a png file on my capx then use it to that "Image/File". If yes, how can i do that exactly?

    Image/File: "Logo.png" <<<<< is this correct?

    If i cant do that. Can i upload the logo on facebook then put the link on "Image/File"?

  • Still hoping for a solution........

  • >

    > > Just use a for loop and name your loops

    > >

    > > For "loop1" from 1 to 12000 -> for "loop2" from 1 to 12000 -> if sprite2.animationframe = loopindex("loop1") -> if sprite1.animationframe = loopindex("loop2") -> do this

    > >

    >

    > Thank you but it doesnt work.

    >

    Why doesn't it work?

    The only frames being compared is from sprite1 frame 0 and sprite2 frame 1

  • > i think there is no other way but to compare it 1 by 1

    >

    Might not

    Depends on what you are trying to achieve.

    The only reason I can see you wanting to use the | expression, is if you wanted to compare both sprites, like this:

    Sprite1.frame = 0 | Sprite1.frame = 1 = Sprite2.frame = 0 | Sprite2.frame = 1

    But in most cases I would still think using simple conditions like "Is between" and basic "Sprite1.Frame = 0" would make it easier to work with. Personally I haven't used | a lot, as I haven't really run into something where it would be extremely useful, but maybe someday

    I dont understand that "Is Between" can you make a capx for me

  • > I tried this | "Pipe" symbol, construct 2 accepts it but when i run it, the other frames doesn't work.

    >

    > Example:

    >

    > Event:

    > sprite1frame = 0

    > sprite2 frame = 0 | 1 | 2 | 3 | 4 | 5

    >

    > Action:

    > System go to layout 2

    >

    > On this example, only the frame 0 of sprite1 and frame 1 of sprite2 will work. The other frames seems to not work

    >

    Its because you think the | works in a different way than it does.

    The | will return true or false depending on whether one of the Or conditions are correct.

    So it should look like this:

    If Sprite.frame = 0 | Sprite.frame = 1 | Sprite.frame = 2

    = 1

    Then it will return true and therefore condition is true as well. If Sprite.frame is not 0, 1 or 2 then it will return false.

    So its not a functionality where you can ask in the sense of whether Sprite.frame is 0,1,2.....100 and if that's that the case do something. Well you can but you have to write it as I did above and compare it to either 0,1 (False, True)

    i think there is no other way but to compare it 1 by 1

  • I tried this | "Pipe" symbol, construct 2 accepts it but when i run it, the other frames doesn't work.

    Example:

    Event:

    sprite1frame = 0

    sprite2 frame = 0 | 1 | 2 | 3 | 4 | 5

    Action:

    System go to layout 2

    On this example, only the frame 0 of sprite1 and frame 1 of sprite2 will work. The other frames seems to not work

  • Just use a for loop and name your loops

    For "loop1" from 1 to 12000 -> for "loop2" from 1 to 12000 -> if sprite2.animationframe = loopindex("loop1") -> if sprite1.animationframe = loopindex("loop2") -> do this

    Thank you but it doesnt work.

    I dont know how can i do this in construct 2 but how can i do the "Or statement" in construct 2?

    Example:

    0 or 1 or 2 or 3 or 4 or 5............or 100

  • Good day. I just want to compare my frames from sprite1 to the frames of sprite2 without having too much events everytime i compare the two. (How can i make a short version of long method but has the same function)

    Please take a look at my example capx

    (UPDATED CAPX)

    http://www.fileconvoy.com/dfl.php?id=gf ... 54ef614044

  • I made a perfect example of this here.

    OMG, i love you it works. I just need to design my game shop and thank you. By the way, i also use your "Local Storage High score System" and i love it

  • The title says it all, but i wanna know how can i store the coins being collected by the players and later on use it to buy some item in my game and also subtract the collected coins if the player decided to buy new item. (If you are familiar with pen apple game from Ketchapp, You can collect coins and use it to buy pens. That's what i want to achieve)

    This is a mobile game and im not pertaining to In-App purchases, I just want an "In game shop" where players can collect coins and buy items using it