Kyatric's Forum Posts

  • Tom could confirm or deny the "Update" function for games uploaded in the arcade.

    But what do you mean by "a feature for the community". Are you talking about a custom plugin ?

    If so, for now, you can't upload games using any third-party (custom) plugins or behaviors.

  • You should then check PHP references and check the strings functions.

    The language has standard functions (in C2 that's system expressions ^^).

    str_split can turn your string ot an array.

    strpos will return the index of the first character of the search string or a default value if it is not found.

    Etc... ^^

  • Quick answers:

    1 - anglelerp

    2 - lerp

    3 - global variable

    Longer answers:

    1 - You would have to set your layer angle using a to be add system expression anglelerp.

    There is a way to do it in 3 events according to Yann, but I don't know it. Maybe some maths savy guy can come by here and enlighten us, I'd like to know that too.

    2 - Lerp is another system expression.

    It actualy already exists in C2 and you can check about it in the manual.

    Pretty much the same logic as above, set the sprite X and Y to lerp(current sprite's position, destination's position, 0.5) (the 0.5 helps to smooth the thing)

    3 - A variable that indicates that you want your object to move or to stop.

    Set it to 0 and be sure to check that it is 0 in the event were you move your sprite.

    When you want the objects to stop, set the variable to 1. When you want to move them again put them to 0.

  • It's one of the parameter sent in the url you put in your ajax request.

    Send ajax request: "http://myurl.ext/myScript.php?myParam1=value&myParam2=value?myParam3=value" etc...

    You set "myParamX" as you wish, it is your call, to a script that you made and will retrieve X params from its url in the $HTTP_GET_VARS array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mobile phones' browsers/OS have poor performances on gaming HTML5 atm.

    They don't support very well the HTML5, don't support at all webGL, etc...

    And the best performances comes from iOS5 as ICS "is a major step forward for the Android Browser, but still falls short of iOS 5".

    So if you're looking to only developp for iOS, yes, HTML5 is NOT YET (as hopefully performances will improve on mobiles) the better solution.

    But you know, it is a bit the same on desktop. Mozilla appears to be willing to propose its browser with more gaming options.

    So in conclusion, I'd say even if you don't use it for now, a time will come when mobile phones' browsers will nicely handle HTML5 and allow you to use Construct 2 for it.

    By then, C2 will have evolved and the performances too, making it even more relevant than it is today. The good thing is that you'll have had it at the early-adopter discount price.

  • I think it has to be in the same domain (so the project and the script both need to be on example.com at the very least).

    I think different folders should still work.

  • wiibaa: you might consider taking a look at the system expressions (like clamp and other usefull stuff).

    This might help you with your toying/discovery <img src="smileys/smiley2.gif" border="0" align="middle">

  • Also for your "registering" process there a mysql base would come in handy.

    You'd make a MYSQL request SELECT to take only $username from the base.

    This is why earlier I said you should learn/find documentation for it, because it is a full topic that is beyond the scope of C2's forum as it is highly depending on how you setted up your server.

    But this is what you're looking for for the leaderboard/registering, etc...

    The server side PHP/Mysql deals with storing/providing/processing datas of all your clients, your client deals with retrieving specific datas for a user and providing new ones (replays).

  • GingerBatMan speaks about this audio fix for iOS.

  • There are problem using copyrighted songs all the time.

    I mean it doesn't belong to you so to use it you need the permission of the owners.

    So no, don't use any kind of copyrighted material, use yours, and some that is licensed so that it can be freely/without notice to the owner used.

    In the "Game design" forum, there are a few music sites and musicians listed.

  • The whole leaderboard/replay upload/download/management, etc...

    This is all server side there. (so yeah, PHP/Mysql, you need to learn it/them)

  • There's no layer angle expression yet.

    The trick is to set a variable that will contain the angle of the layer and that the layer angle can be set to.

    By default the angle is 0, so just create a global variable and use it.

  • The better would be to set the project to full screen in scaled mode. This way it will automaticly apply to the resolution of the user.

  • omgitburns: I think the update function is already available.

    Probably users have switched to another project in the meantime (this often happen you know, fire and forget).

  • 5. Check firebug it raises a "Index or size is negative or greater than the allowed amount" in l.246

    exps.getValueSelected = function (ret)

    {

    var optionID = this.elem.options[this.elem.selectedIndex].id;

    ret.set_any(optionID);

    };

    Depending on the context, it appears to be freezing the appli and preventing the passage to another layout.

    I haven't been able to reproduce the freezing from a blank capx, but in soldjah's it clearly freezes and prevents to go to a second layout.

    Example that raises the error, but still goes to layout1 (starting from layout2)