javascript - TypeError: R[o5R.F6s] is not a function in changing states in phaser box2d -
i build game using phaser.2.4.3.min.js
, phaser.2.2.2.box2d.min.js
when trying change states error being raised typeerror: r[o5r.f6s] not function
, can't seem figure out problem
ps : took source code of box2d plugin example folder in phaser , , did not purchase full plugin yet testing .
is there anyway fix issue ?
here game code : http://jsfiddle.net/fbdtq1tg/5/
and here error raised :
setgameover: function () { this.game.state.start("thegame"); }
the error seems clear: script trying execute function, variable isn't function.
what happens: box2d.m_gravity = box2d.clone();
r[o5r.f6s]()
string "clone" , not function. r = box2d, the script trying execute function(r[o5r.f6s]()
. o5r object lot of functions in requested f6s
string("clone").
so, did research why box2d.b2world = function(gravity){...this.m_gravity = gravity.clone();.. }
, seems bug.
check out following links:
Comments
Post a Comment