lennaert's Recent Forum Activity

  • The signalling server is an app that receives and conveys computer adresses, to make devices connecting to it able to communicate to eachother.

    The host for a game needs to be an application opened in a browser or as an app. (requires a screen etc)

  • It kind of depends on what you are trying to achieve.

    From what your saying, that autojoin doesnt work when trying to reconnect, has likely to do with events for disconnecting, reconnecting and joining are happening too fast, but without the events involved its hard to say whats happening.

    I solved some issues with similair situations, where the host disconnects, and migrates to one of the peers, having the old host reconnect as a peer, preserving game state. This involves keeping track of the Peer IDs assigned, and remembered, same goes for the room name ofc.

  • In the Host section (event 28 of your cp3) you are setting the x,y,points and player for the peer without knowing what they are, thus they revert to 0,0.

    Disable that event and actions (creators with peerid other then your own) And that camera thing will move through the screen.

    Also, you added the X,Y client input value tag with an angular interpolation, switch that to linear.

  • I updated event 28 and 29 ...

    You need to disconnect and wait a bit ... its networking, not everything is instant.

    1drv.ms/u/s!Atd4bP2W1lworhxxSiw38moOtZ_L

  • WebRTC is available in iOS since iOS 11, so it has been at least 2 versions of existing support on iOS.

    Hey Kyatric, nice to see your still about ^_^ and thanks for the awnser!

    Will be trying that out!

    Yikes, I need a new ipad -_-

  • Hello,

    I been out of it some time and figured I try again to see if there has been some progres.

    - How is the connectivity with apple devices nowadays ?

  • You can execute some JavaScript to get the browser variables:

    Language = navigator.language || navigator.userLanguage;

  • Yeah I do that too.

    Just have the selection append a variable to the game or room name before connecting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Crud is generally outside of the scope of construct. As php files reside on a remote server accompanied with the needed mysql server.

    Common approach is to use the Ajax capability to request the php file with data in the request. And the php file should spew out the desired information which gets returned to your construct app and can be accessed by Ajax.Lastdata after a successful request.

    Involved databases generally get tailored for the app; often by phpmyadmin or the likes.

  • Nicely done.

    And yeah, decent sleep tends to help hehe. Many times I got issues solved by taking a well needed break ^_^

  • If you host a webserver with a PHP somewhere, you could perform an Ajax request to that file, with some PHP code that replies the country code.

    Example php file content:

    <?php
    
    $ip = $_SERVER['REMOTE_ADDR'];
    $details = json_decode(file_get_contents("http://ipinfo.io/{$ip}"));
    echo $details->country; 
    
    ?>
    

    The code uses a free service from IP info, should still work. (Been around for years)

lennaert's avatar

lennaert

Early Adopter

Member since 8 Oct, 2013

Twitter
lennaert has 13 followers

Connect with lennaert

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

25/44
How to earn trophies