brunopalermo's Recent Forum Activity

  • There are two big problems in your file.

    1. When you get the stats and fill the array, the numbers are filled as STRINGS, probably because they come from a CSV. When you fill up the array 03_Live _Stats you should use int() in the Value field:

    int(02_Todays_stats.At(03_Live_stats.CurX,1))
    

    Also, you dont need "VAriable3", just use "03_Live_stats.CurX" as I did above.

    2. You're only getting the first 10 players from your 02_Today_Stats, so, you're not listing the 10 best. You're just showing the first ten ordered by total score. 03_Live_Stats should have the same length as 02_Today_Stats. So, when you transfer players all of them will be there. Thus, when you sort 03_Live_Stats and reverse, you'll get them all. After that you can choose to only show the first 10, which will be the best ones.

    EDIT: Check this file for the solution.

    Hope this helps...

    Cheers!

  • You'd just have to put it under "On AJAX_EVENT_NAME complete", and call the AJAX event "on start of layout". It should work no matter where you put this.

    If you can share your code, I'd gladly fix it.

    Cheers!

  • But be careful, if you have Steph Curry and Kawhi Leonard on your list they will always come out on top, no matter how you sort it.

    Hahahahahahahaha

  • Listen... I have a game currently with that and it's working. I'm not even debating IF this work. I can see it does. I have this working right now.

    But, since you're being so stubborn, here it is:

    sample showing you that you're wrong

    Just mouse over obstacles to see that tiles below them were succesfully destroyed.

    See, mom, no waits!

  • Done.

  • Sort it ascending and then reverse it.

    Check this example to see how.

    Hope this helps.

    Cheers!

  • I loved your game. Let me say that again. I LOVE your game.

    The basic mechanic is very good, the concept is awesome. I love the aesthetics too, very appropriate and accurate.

    I agree with dop2000 that there are some interface problems, but they're definitely easy to solve. I disagree in terms of difficulty, since I found it quite easy. But I understand in a full game you would gradually increase the difficulty.

    Overall, it's a very cool game and I'd definitely play it. There is some improvement needed to make it a viable product. I could help you on private if you want, since I'm a professional game designer with around 15 years in the industry and I might have some valuable tips to share.

    Well done!

    Cheers!

  • the first function will completely execute before the second one, but since they are both called from the same top level event, the objects will not have completed the creation process.

    So you say, but I'm doing it, without the wait and it's working perfectly as it should. :)

    That would only be a problem if you were calling the second function from inside the first one.

    For instance. This would need a "wait":

    on Start of layout:
    ----Call createLevel
    
    on createLevel:
    ----(all code for the create level functions, positioning tiles and stuff)
    ----Wait 0
    ----Call loadEnemies
    
    on loadEnemies:
    ----(all code for creating enemies and destroying overlapping tile)
    

    This would not:

    on Start of layout:
    ----Call createLevel
    ----Call loadEnemies
    
    on createLevel:
    ----(all code for the create level functions, positioning tiles and stuff)
    
    
    on loadEnemies:
    ----(all code for creating enemies and destroying overlapping tile)
    

    That's what I'm saying. I used the second approach, no wait needed.

    But thank you for the discussion. It's great to have this exchange of ideas!

    Cheers.

  • Can you share a file? It's very hard to help without knowing your whole setup...

  • You should set a variable, like selectedCharacter, upon the choice on the first layout and use it to pick the character object accordingly in both layouts. I'm not sure how you do the character choice, but it should be somethng like this. If you can share a file, I'd gladly take a look at it and see what's missing.

    Hope this helps.

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm doing it without the wait and it's working perfectly. As far as I know, the first function will be completely executed before calling the following one.

    There was some thread on that some weeks ago, let me check and find that for you.

    EDIT: Here's the thread I mentioned above.

    Cheers!

  • You could also use imagepoints to mark the exact position of the sun and the moon, instead of the position of the whole imagem.

    Cheers!

brunopalermo's avatar

brunopalermo

Member since 7 Jun, 2013

Twitter
brunopalermo has 6 followers

Connect with brunopalermo

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies