aminhanifm's Recent Forum Activity

  • aminhanifm

    Sending t0 in event is even better idea than storing it locally. Then you don't confuse different pings running in parallel.

    But you do not need to do anything each tick or second. Check ping whenever you need it. Maybe once per room join. Send an event with the current time to yourself. When the event received, subtract the time stored in the event from the current time. The result is rtt or ping.

    Ahh i'm gonna try it soon, thanks anyway :D

  • DMW

    I guess you are from Indonesia which where i'm coming from also, haha. It's because the internet provider i bet.

  • Actually it's happening here also, i got stuck at transfer progress 100% whenever build on android, but its work when im building it on NW.js. To solve this i used vpn app on my laptop, and it's working smoothly after.

  • aminhanifm

    You need to get the current time t0 (not sure what is the best way to do so in ConstructX), send an event, receive it, get the current time again and subtract t0 from it. The result will be round trip time, that is the time required to transmit the signal to the server and back.

    So i need to make variable "t0" then set this variable to my current time every tick, then send an event with t0 data to my own actor for every second, after getting it i need to substract t0 to photon.eventdata ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • aminhanifm

    Layout loading:

    If you join a room after layout has been loaded, the "finish" signal would be "on actor join" event. You can simply check the current number of players in the room in this handler.

    Latency:

    To measure round trip time to the server, send an event to yourself (specify client actor id in TargetActors).

    The same works for rtt to players. Send and event and reply to it back to sender.

    I got it work for waiting for other players, thanks !

    But i have another question for this rtt, should i use construct 3 built-in addons like platforminfo plugin to measure rtt of my latency ? then send this latency to myself ? or photon plugin itself has an ability for this ? sorry it's hard to understand for me to measure this rtt..

  • ThePhotons

    I wonder how to measures my latency / ping ? and is it even possible ?

    If yes, can i show latency / ping to other players ?

  • Anyway, is it possible to create waiting for other players to finish loading layout and after finished they send finish signal to the players that already finished loading at first? so they can play althogether.

    Because im having trouble with some potatoes device, the first actor that has faster loading and send to nobody because he finished the loader than this potatoes device which still loading to gameplay layout.

  • Your action may be crash with matchdone = 1, make sure when you are touching / tap it, you already having matchdone variables not equal to 1, because it will get enabled again somehow.

  • Just a little correction - you can't use dots in variable names. So your instance variable can be start_x or startX, but not start.x

    Yes that ! my mistake.

  • start.x is an instance variable of the sprite, you can add instance variable called start.x on your sprite, then set variable of start.x to self.x on start of the layout or from sprite properties. So you can call the start.x function as well. Hope this answer your question !

    He also puts instance variables on his video. check at 1:11 to see how to add instance variables.

  • Try to check admob > policy center. there should be a reason why your app's ads got limited, you can also try to request a review if there's no specific limitation problem or fixed the problem already.

  • aminhanifm

    Actor name is not updated on rejoin with the same actor number. Only new join updates the name. I meant new join when wrote "rejoin".

    We will hopefully fix this in the next release.

    Ahh that's why it doesn't working even i tried to change actor name many times after once joining.

    We will be waiting for the next release, Thanks !

aminhanifm's avatar

aminhanifm

Member since 9 Feb, 2017

None one is following aminhanifm yet!

Connect with aminhanifm

Trophy Case

  • 7-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x16
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x3
    Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

12/44
How to earn trophies