Delay issue when object collide with other

I got some issue in my game when my object collided with others its does not give the response on the time. It gives the response after a few seconds. Need some help.

can you share your code?

1 Like


Collision.prototype.initialize = function() {
this.entity.collision.on(‘triggerenter’, this.onTriggerEnter, this);

Collision.prototype.onTriggerEnter = function(event)

if( =="objectmove")
      this.Gamelevel.enabled = true;


Hi @HasnainX,

Check the following tutorial on how collision callbacks work and what value they return:

1 Like

Thank you