Hi, I have been using construct 2 since 2013. Recently I'm facing a problem. The problem is I'm asked to make a game which will show some ads in a specific city. Outside of the city the ads won't pop up. Ads are hard-coded that means it is just another game object image with a company logo attached to it. So, how can I do that. I've searched stackflowover. I have found a solution but I can now implement it to my game. Here's the link.
I guess the easiest way would be comparing if the geolocation values are within a square using the "system is between values"-condition..
Thanks LittleStain for replying to this post I've made. Can you please help me with just one thing? How will I implement the expression of the geo-location in "system in between values" condition?
Seems pretty straightforward
You want to compare if geolocation.longtitude is between a minimum number and a maximum number
and if geolocation.lattitude is between a minimum and a maximum number
if both these conditions are true you are within a certain square on the map..
Develop games in your browser. Powerful, performant & highly capable.
You can use this even in Construct with the AJAX object. Just call it with the IP in place and parse the result.