Maukka's Recent Forum Activity

  • This doesn't seem to save tooltips of slider bars(for textboxes it does save it so I assume it should be saving it).

    Also I didn't realize there was newer version of this at first since they were under different categories in the new object list. (Old version didn't like canvas objects which led to me discovering that the new version exists.)

  • Are you using FileChooser and AJAX?

    Should work.

  • Would just getting the difference between your time and another player's time and adjusting the timers based on that work?

    If adjusting timers won't work or is too much trouble maybe you could increase time scale to some high number until current time matches other players.

  • You can use a global layer for the UI to prevent it from scrolling or you can just use CanvasToLayerX() to change on-screen coordinates to coordinates in a layer.

    Something like:

    CanvasToLayerX(0, WindowWidth/2, WindowHeight/2)

    Should get you X for middle of the screen.

  • I'm not familiar with Firebase so not sure how much I can help.

    Local Storage is shared for games opened using the same browser which you could use to prevent some cases of accidentally connecting twice.

    Maybe you could on starting the game set some random value that will be different each time and use it like IP.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Draconiz717 It probably wouldn't be very readable but you could use something like sexagesimal or base 64 numbers which would make say 1 trillion into just 7 characters but still show smallest of changes

    http://convertxy.com/index.php/numberbases/

    If you want a number system with higher base to get even shorter numbers you'd probably have to figure some of it out by yourself or be better at googling than I am.

  • Now that this supports even inserting images it's almost perfect as far I'm concerned but one small issue I have is that to do tooltips for certain words I would need to get start and end coordinates of a word within a string and while I probably can do that by doing stuff like setting another instance of a TagText to just one line of text ending at the word I want and getting TextHeight and TextWidth for that but it would be a lot less trouble and possibly faster if there was a expression to find X or Y of a word, something like system.find expression but for coordinates instead of index and with parameters to get either start or end of the text.

  • You could use pin behavior to make them move together or move each of them same way with something like pick by evaluate or pick by comparsion.

    Not sure how to do smoothly such a specific distance.

    CustomMovement behavior might be useful if you can do some math and figure out how much and how long you need to accelerate and decelerate to move 20 pixels more smoothly than just at constant speed.

  • Another way might be to change the array value after picking it(you could add another z level if you for some reason can't change current values) so that you can check it when picking and repick if it it picked a already set value.

  • I was thinking it'd be nice to add some amount of support for using multiple monitors but I'm not sure how I should go about it.

    Mainly I want to show various stats and such that would otherwise take too much space to be shown all the time in another window.

    Just running the game again on another tab and using local storage to save relevant stuff seems to work but having the game loaded twice(or more) probably isn't very good for performance.

    Doing another project that has only the things I want on a 2nd screen would probably be better but I have no idea how I could get them to communicate the stats I want between them since I assume I can't use local storage values of another project.

    Are there any other ways it could work?

  • Hmm I'm not sure I understand what you are asking.

    [quote:1q0lh9on]and then add that with array.speed in a X,Y coor

    based on that are you are asking how to add the array value in a another expression? If so

    something+array.at(array.IndexOf(name),array.speed) might be what you want.

    Also I'm not sure but as far as I can tell it might be better to use X for names and Y for stats because some stuff seems to be either for just X or X and Y but not for just Y.

  • For large arrays like unit lists and such I use instance variables for stat positions on an axis so I don't need to remember stuff like if I had health as 12th or 13th item and can just use array.hp in place of it.

    But for using the name maybe IndexOf(name) could work if names are unique.

Maukka's avatar

Maukka

Early Adopter

Member since 27 Oct, 2014

None one is following Maukka yet!

Trophy Case

  • 10-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

12/44
How to earn trophies