gamify Posted January 10, 2017 Share Posted January 10, 2017 How to move an entity on dragstart as i am not able to see drag moment of entity in dragstart Quote Link to comment Share on other sites More sharing options...
gamify Posted January 10, 2017 Author Share Posted January 10, 2017 game.dragey=me.DraggableEntity.extend({ dragStart: function (e) { //The below line throws me the error so can you please tell how to resolve this this._super(me.DraggableEntity, "mainPlayer", [e]); }, }); error: melonJS-min.js:594 Uncaught TypeError: Cannot read property 'apply' of undefined at Class._super (melonJS-min.js:594) at Class.dragStart (DraggableEntity.js:63) at melonJS-min.js:29311 at Object.me.event.api.publish (melonJS-min.js:26831) at Class.translatePointerEvent (melonJS-min.js:29331) at Class.mouseDown (melonJS-min.js:29298) at triggerEvent (melonJS-min.js:19976) at dispatchEvent (melonJS-min.js:20127) at HTMLCanvasElement.onPointerEvent (melonJS-min.js:20235) and can u please tell me what i am missing Quote Link to comment Share on other sites More sharing options...
obiot Posted January 11, 2017 Share Posted January 11, 2017 replied here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.