Kyatric's Recent Forum Activity

  • The custom AJAX POSTer does.

  • System: On start of layout
    .. System : Pick random Cat Instance
       -> Cat: Set boolean to true
    
    Cat: is  boolean
      -> Cat: This is the cat you want
    

    Assuming all cats Boolean are set to false on start of the layout.

    This is the usual picking with variable.

  • The answer is still Lerp (be sure to click it's another topic explaining the usage of Lerp)

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x11
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs