Juryiel's Recent Forum Activity

  • Scirra focusing on multiplayer is good for their engine and their competitors, but ads, share function and mobile performance isn't there yet, I have 2 nearly finished games that i can't do a serious publish without those things, Performance with cocoonjs is much much better (10 physics objects max on screen) than crosswalk witch is the selected export option right now by scirra and sound is realy bad. So i don't know what to do.. change engine ? and start everything from start ? or wait for some update ? I was really happy when scirra announced asm.js and performance updates some months earlier..

    I think that it's better to make existing things PERFECT and add multiplayer and everything else later.. you can feel this in the forums

    Yeah I absolutely agree. I would much rather get the current features, which represent a fairly complete feature-set for mostly any game you may want, to be perfected and reliable across platforms. I'm essentially in the same boat.

  • Interesting resource. I'll take a look, thanks!

  • I'm looking to buy a custom 2-animation (8 frame each) sprite made to which I will exclusively own the rights. I already have an example in mind, but I'd need you to take that example and make something unique along a similar vein. Unique enough to be trademarkable if it comes to that (it probably won't, but still, that's the main motivation to paying for one rather than using a free one). I'm not sure how much this would cost so pm me with an example of your work and a price and i'll see if I can afford it.

  • Not sure if this is working as intended but just FYI, this doesn't wrap correctly when the offset causes a wrap. E.g. one easy way to reproduce is to make the subwidth the same as the texture size, then offset x by some amount. I was planning to use this to randomly sample different parts from one repeating texture to procedurally generate some content but it seems like I'll have to pad my texture with itself on all sides if this is the intended behavior.

    EDIT: The problem seems to only happen in the editor. It looks like it's correctly wrapping in game.

  • I think it depends on the game. Maybe if you're playing angry birds yes. If I make a quality game with a bit of depth etc, I imagine the audience would be different. I would in fact like the option to have it played on Win XP in an accelerated form when possible, and besides, my game is not playable without webGL anyway. If users care enough complain I would be more than happy to walk them through how to deal with the option.

    I guess I don't see why having such an option available can hurt. And not having it means that essentially C2 no longer supports Win XP for my game. Not that any of this matters since I just do this as a hobby and no one who isn't me will play this game, but in theory

  • Aphrodite - ideally, end users shouldn't have to make a choice like that. Generally if you ask a non-technical user a technical question, they will give up, try to cancel it, or pick a random choice because they don't understand the consequences.

    Wouldn't this depend on how it's presented? I'm not sure if this is feasible, but having the user choose "This will improve performance but may cause crashes" in-game option should make things pretty clear. 'I'll try this, if I get crashes I'll just turn it off'. They don't need to know what it is.

  • I can't find the setting that lets me set which object comes next when switching between textboxes and buttons etc with 'tab'. Any help would be appreciated!

  • I added a few actions to allow to set the max and min X and Y through the event sheet. Not really tested well but it seemed simple enough, so if anyone wants that functionality here it is:

    https://dl.dropboxusercontent.com/u/308 ... nction.zip

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I finally got back to this. The AJAX thing doesn't work unfortunately, but just having a condition with "Compare two values" with one value being (typeof functionname == 'function' ) and the other being 1 works pretty well.

  • lennaert R0J0hound

    Sorry I didn't copy/paste the actual code because I changed it to the working Textbox version I mentioned, so I introduced some red herrings on the board that are not part of the actual code.

    First, the variable is not called var, that was just a dummy name, it's called window.unencryptedresponse.

    Second, there are in fact quotes around the C2 data structure (either the ajax or textbox etc), here's the actual call.

    Browser.ExecJS("window.unencryptedresponse=encrypt ('mykeystring', atob('" & AJAX.LastData & "'), 0, 0,0, 1);  ")[/code:23l4u1k7]
    
    encrypt is the enryption function and its various parameters, atob and btoa are functions that convert from base64 and back.
    
    This is another call that fails for the same reason:
    
    [code:23l4u1k7]Browser.ExecJS("window.encryptedresponse='" & AJAX.LastData & "';") [/code:23l4u1k7]
    
    All of these actually work when using Textbox.Text instead of AJAX.LastData, (but not when using TextLabel.Text).  So that makes me fairly convinced that it must be some illegal characters in there that Textbox does not support and removes, and that error message is known to come up in chrome in those zero-width-space situations.
  • I'm using encryption in my game to communicate with a server. The response I get back is a base64 encoded string that looks like this:

    hAqJMf1lc4wnqtMgYhrzVCoPrE2q5c6xb7ivwqYzmKUrHFQR/hYj5l9zOrJY8DyUGrUmTyoAral9/a2m7agRkfzWB5udiqieSVAjXWXknWDEYzmWyu4uVA6ZYdFpE3gkxUq7YOq4XB3HJiN/RIT03/+BrO40maUHhhaAGbIeMGvlBNran051RVB5M7EHuaQdSUqnOSWerlaqB0xfmlBFtrLzY6PM0HeCpBC1p4tXRvtcxS7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PJ0ojI+6D9NvGz6u3SpAkMIu+hsO9jsRzR6xutvsDhe9WI1T6p+0t3Y0KezNuD5xebqFlt6AAhllfz6lYye38t5v3QwcVru854ip52KxxUEf4WI+ZfczqyWPA8lBq1Jk8qAK2pff2tpu2oEZH81gebnYqonklQI11l5J1gxGM5lsruLlQOmWHRaRN4JMVKu2DquFwdJlqcjV8sk9p1m6+IOo8dxdEw3u1eOhAWO3jtUGXpo2JWlAPdswFzGE2v4JhGOs7IWxI+NisbWxl1LD9jydKIyPug/Tbxs+rt0qQJDCLvobDvY7Ec0esbrb7A4XvViNU+qftLd2NCnszbg+cXm6hZbegAIZZX8+pWMnt/Leb90MHygi5ibrEsQv0DzB85KwCtHPg0Khx6nf37HbnkmmpzNVu264NhSudopaKchsdE9Mr8U4rvczoZx1B5M7EHuaQdeVhpvWUQ4G2i9UA44XkaoIcm48TD494GpnjgRMQdvqwvqd+6wUGTaVBCZCzAdRrKn966yELt9zwz2rIFm4U2u8EEa8wUZUaQ1vIEmTF6yGWihjqYXsOOadB9R1BsD8br/Z8BTi52HltSlXdCkvklPxXr1Jq+avr39xboG0PAu2vZTmoyr7yvd5XOxP2b4L+fjvk9pKX9uiIrHFQR/hYj5l9zOrJY8DyUGrUmTyoAral9/a2m7agRkfzWB5udiqieSVAjXWXknWDEYzmWyu4uVA6ZYdFpE3gkxUq7YOq4XB0M3gMX6zipgnWbr4g6jx3F0TDe7V46EBY7eO1QZemjYlaUA92zAXMYTa/gmEY6zshbEj42KxtbGXUsP2PJ0ojI+6D9NvGz6u3SpAkMIu+hsO9jsRzR6xutvsDhe9WI1T6p+0t3Y0KezFxoaZ3n/fE7[/code:k8ge7qwv]
    
    To clarify, that's the type of value that comes back in AJAX.LastData 
    
    So then whenever I try to use this in ExecJS in this form:  
    Browser.ExecJS("window.var =" & AJAX.LastData & ";")
    I get the following error
    Uncaught SyntaxError: Unexpected token ILLEGAL
    It's likely that this is due to invisible zero-width space chars that may find themselves in the string, I'm not sure, I don't know how to save AJAX.LastData to a textfile to check.
    
    However, if I make a textbox and set its text to AJAX.LastData, then load its text in javascript, it works.  The textbox probably removes the bad characters (though a text label does not).  
    
    Is it possible to get C2 to remove these characters with a system expression? (trim does not work).  I tried looking with RegExp to find them but it's poorly documented so I was not sure how.  Something like trim() that removes all whitespace everywhere would probably work.
  • This sounds like much more than an array plugin extension. You can probably achieve this easily enough with an existing javascript matrix library though, or even build a plugin around an existing library.

Juryiel's avatar

Juryiel

Member since 30 Sep, 2010

None one is following Juryiel yet!

Trophy Case

  • 14-Year Club
  • Email Verified

Progress

15/44
How to earn trophies