Include eventsheet doesn't run on layout restart?

Get help using Construct 2

Post » Thu Jan 31, 2013 4:11 pm

I have an include "anothersheet" at the top of a layout.

And the "anothersheet" uses json loading into hashtable via ajax.

Happen to notice that

1. If you try to push "preview" from construct 2 when the browser is already running preview ...the preview reloads but the include doesnt run / ajax call is ignored?
Because the JSON values all become zero!

2. Even if you browser refresh the layout its the same case.

3. "Restart" layout also doesnt probably call include / ignores new ajax call and uses cached values.
Because try having a key for restart layout (say Esc).. and change the json on the fly, then press Esc.. it still uses old values.

A work around for point#3, is to use On key pressed Esc -> Go to layout "samelayoutname" instead of "restart layout" .. that seems to make a fresh ajax request.

So far, I haven't found a workaround for point #1 and #2.

Any sane reasons why this is so?
Hey! Did you know that you can hire me to make your games?

Click Here to See More
Posts: 391
Reputation: 5,682

Return to How do I....?

Who is online

Users browsing this forum: hajas and 3 guests