How do I detect which browser i use?
It is in the HTTP request headers.
Browser.Product
gumshoe2029 blackhornet ok, now how detect this in c2 events
Develop games in your browser. Powerful, performant & highly capable.
blackhornet, this is not effective because the "Browser.Product" is reported as "Gecko". Detecting the browser name by Construct 2's expressions isn't effective yet. delgado, for now you can ask for help for using custom Javascript, instead. Good luck.
Add the Browser plugin, and use the expression Browser.Product. There are various expressions to get details of the Browser. You'll have to see if they meet your needs.
https://www.scirra.com/manual/110/browser
blackhornet Browser is great plugin. You mean type "Browser.Product" to execute javascript?
i need only simple condition and event.
When game is opened on chrome do something but when is FF do other thing
Actually you can parse it out of the UserAgent field:
System.CompareTwoValues: find(uppercase(Browser.UserAgent),"FIREFOX") > 0