How Do I Make Things Disappear Or Go To A Different Frame When Colliding with Objects?


Hey Im Making A Game But I Need To Be Able To Collide with Objects To Make It Restart The Game Or Go To A Different Level/Frame.


You can use the this.hitTest function for this.
it basiclly does what it says, checks for an objects name upon collision.

if(wall.hitTest(‘player’)) {
// Die or something?

just plug in where ‘wall’ is for the name for your obsticle and ‘player’ well for your character. ^_^
Just shoot me a pm or ask someone else or reply to this if ya get stuck. happy to help and happy creating.

oh and use This.delete(); to destroy an object