Hi - sorry I'm still new to C3 and not much versed with coding either. Is there a way to redirect a user based on his location?
thanks
Yes.
Use the geolocation plugin. construct.net/en/make-games/manuals/construct-3/plugin-reference/geolocation
You can use it to request the device's location, which may or may not be supported.
On location update, you'll be able to get the latitude and longitude values from their expressions.
what you do with the latitude and longitude is up to you.
Latitude and longitude are not very useful. If you need to know which country the player is currently in, you'll need to use some online services, for example:
https://freegeoip.app/json/ https://ipapi.co/json
Develop games in your browser. Powerful, performant & highly capable.
thank you both for replying
dop2000 - is it possible to select only parts of json and pass it to text?
tia
Latitude and longitude are not very useful. If you need to know which country the player is currently in, you'll need to use some online services, for example: > https://freegeoip.app/json/ https://ipapi.co/json
> https://freegeoip.app/json/ https://ipapi.co/json
Yes, you need to parse it with JSON object and use something like JSON.Get("country_code").
Check out "JSON" template in construct to see how to do it.