Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How do I detect which browser i use?
Develop games in your browser. Powerful, performant & highly capable.
It is in the HTTP request headers.
Browser.Product
gumshoe2029 blackhornet ok, now how detect this in c2 events
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