collisions hitTest() animate 2017
First i want to say the adobe animate team has done a great job to rework a tool that exported this kind of interactivity in swf now in html5 I was a big user and fan of AS2 and was never a fan of AS3 and suffer greattlly with the whole flash funerall process and all that, but to be able to recicle all those habilities that where in the droor for 4 or 5 years? it fells awesome to use and fell flash as best interactive animation for the web again!
I have badder with these issue before, and been pointed by mr Skinner to tutto on his site, and found some others, but always something that was above my code level of understanding cous i an one of those with more graphic desing and anim bck plus had bad math teachers mostlly in other words i need something more simple like in the AS2 times (actionscript 2) wich was:
if(yourhero.hitTest(enemy1)){
hero.gotoAndPlay("herosdied")
}
other two objects any movie clips on your stage
if(enemy2.hitTest(enemy3)){
enemy1.gotoAndPlay("bounceanim")
enemy2.gotoAndPlay("bounceanim")
}
in most game makers, construct2, buildbox, defold, unity its something similar super simple, even in free html5 libraries like enchant,js its as simple as these:
Apple.intersect(Enemy);
would acomplish the same job very efficientlly.
I seen the flappy birds demo, wich its very good, but it gets complex cous theres lots of functions interacting together, i would need just a simple tutorial for "hodors"(got) with 2 movieclips on esene, moving movie clip with button on stage or mouseclic into a colliding path, then alert("collision success") this would send me upong the sky!!
but i have search and only found big game tutorials, where i cant quite understand or implement.
thank you very much for your attention
have a great end of week!
