brunopalermo's Forum Posts

  • I'm not sure I understand the first one. But this file has one of the several ways of doing the second one.

    EDIT: Oh, f***! You're using C2, this forum confuses me sometimes, let me port it...

    EDIT 2: Here you go, a Construct 2 version.

    Hope this helps...

    Cheers!

  • Yep. int(x) is a system expression to convert a float or a text to a integer. There are also str(x), which is almost never needed but may be and converts float or integer to a string, and float(x) that converts an integer or text to a float, that is, a fractional number like 5.2.

  • I'm no lawyer, but I have studied this issue in the past and consulted some lawyers. As far as I know, you could use country names freely, but no player or event mention. That said, note that laws vary wildly from country to country so you may be able to pull that off where you live. Specially if the game is small, non-commercial or don't get too famous, lol. I'd consult an expert, though.

  • And you can't use the retro styled template because...?

  • Weird. Now I'm even more curious! I'll check other versions. As far as I know, some stuff may work differently in beta versions and, then, come back at the next stable.

    Maybe Ashley could shine some light on this issue.

  • Not a problem. Like I said before. I love this type of debate, because everybody ends learning and, thus, everybody wins. People tend to get personal sometimes and things go sour, but it was not the case here so, thank YOU for insisting on it!

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you share a file? It's very hard to help without knowing your whole setup...