Browser go back function not working

Get help using Construct 2

Post » Tue Jan 27, 2015 2:45 pm

Hey there,

I'm creating a game where it is important for the player to be able to switch back and forth between a site and the game. However the browser - go back event is not working. It simply doesn't do anything at all, even though the browser can go back (and does) by clicking the back button in the browser itself. (using google chrome btw)
The odd part is that the button works fine when I use it to navigate to a different layout, or even an URL.

Does anyone have an idea what might be causing this problem?

Any help is appreciated! :D
B
12
S
2
G
1
Posts: 34
Reputation: 741

Post » Fri Jan 30, 2015 10:40 am

Just to be sure, are you trying it locally or is the project uploaded to the server?
B
8
S
2
Posts: 13
Reputation: 544

Post » Mon Feb 02, 2015 2:38 pm

I tried both, and both weren't working. Also, when I tested it locally, I made sure that it had a page to go back to.

It's fixed now. I used the browser action go to URL, and used 'go to "/" (target self)' as a designation, so it always goes back to the webpage, even when the game changes websites or something.

Not sure if this is the proper way to go at this, but at least it's doing what I want now.
B
12
S
2
G
1
Posts: 34
Reputation: 741


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests