Hit Test Object
Olá, eu gostaria de saber se alguém pode me dar um help. Eu estou fazendo um jogo em AS3 e por algum motivo os Hit Test Object não estão funcionando.
O código é este, até onde sei não tem nenhum erro:
if (this.hitTestObject(MovieClip(parent).blocodeinterrogacao)) {
this.y = stage.stageHeight - 450-this.height;
this.gotoAndStop("parado");
MovieClip(parent).moeda.visible = true;
MovieClip(parent).blocodeinterrogacao.x = -300;
}
if (this.hitTestObject(MovieClip(parent).blocodeinterrogacao2)) {
this.y = stage.stageHeight - 450-this.height;
this.gotoAndStop("parado");
MovieClip(parent).inscrita.visible = true;
MovieClip(parent).blocodeinterrogacao.x = -300;
}
Se alguém puder me ajudar, desde já agradeço.Discussão (0)
Carregando comentários...