1 decade ago by papyhardcore
Hi,
I have two entities :
My player : Player.js
Player.js
My save point : SavePoint.js
SavePoint.js
I wan't to detect collision between player and save point.
I try to use check function in Player.js
But I have an error : Uncaught SyntaxError: Unexpected identifier for
Thx for your help
I have two entities :
My player : Player.js
Player.js
My save point : SavePoint.js
SavePoint.js
I wan't to detect collision between player and save point.
I try to use check function in Player.js
check: function(other){ if(other instanceOf EntitySavePoint){ console.log('save'); } }
But I have an error : Uncaught SyntaxError: Unexpected identifier for
check: function(other){
Thx for your help