Jump to content

fast collision problem


Recommended Posts


the container is moving too fast and ignore the collision between the player. 
2. the container have a scale tween :

this.add.tween(container.scale).to({y : 0.8}, 300, Phaser.Easing.Linear.None, true, 0, Number.MAX_VALUE, true).loop();

and when stand on the container coz this tween the player fall across .

here the link for the test:

and here the code:

ty for any in advance
Link to comment
Share on other sites

oh and the scale collision problem is a different thing..  i don't know much about arcade physics -- i just was surprised that scaling the sprite also scales the physics body..  


in p2 you need to change the shape separately.   here is a working example of a scaled object with a player standing on i with p2



Link to comment
Share on other sites

ty but i done the whole game with arcade psychic. 
the collision is check in every frame. i think i have to change the delta time.

can i fix the size of the body for the scale tween. it can solve the scale tween collision.

or i have to attach a invisible rectangle to the sprite and use collision for this?

sry for bad english

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...