GAME ERROR

Get help using Construct 2

Post » Sat Oct 24, 2015 11:45 pm

Uncaught TypeError: Cannot read propert 'current_event' of undefined http://localhost:50000/preview.js, line 4778 (col 50)

I was having a variable that when it hits that variable it goes to a different layout then goes to the layout then set the variable to 0 to stop looping....
B
5
S
1
Posts: 86
Reputation: 571

Post » Sun Oct 25, 2015 5:21 am

You can use this to open the capx if you need to recover any graphics or if you want to try repairing it.
http://www.7-zip.org/

Maybe need to file a bug report.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Tue Oct 27, 2015 5:34 pm

You probably assigned a string to a number variable, like: current_event = "JabiJabiJabi"

Despite JavaScript's 'promise' of being type safe/flexible, it is neither.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Tue Oct 27, 2015 5:49 pm

gumshoe2029 wrote:You probably assigned a string to a number variable, like: current_event = "JabiJabiJabi"

Despite JavaScript's 'promise' of being type safe/flexible, it is neither.


JavaScript is. The Construct 2 engine, not so much.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Wed Oct 28, 2015 6:59 pm

Well, typesafe perhaps, but it likes to pretend that it is type flexible too, which it is most certainly not.

var = string, int, etc.

but God forbid if you put a string into an int var. Then you get errors like the above.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 35 guests