adobe-animate

Hittestpoint not working with camera (adobe as3)

纵饮孤独 提交于 2021-02-11 14:01:35
问题 grav = 0; gravity = 2; this.character.y += grav; grav += gravity; while (this.ground.hitTestPoint(this.character.x, this.character.y, true)) { this.character.y -=gravity; grav = 0; } } I use this command for gravity and they work with camera for Flash Player 26 but "hitTestPoint" is not working properly in "air 26 for Android". When camera moves, hitTestPoint is failing and causing the character to fall. 来源: https://stackoverflow.com/questions/51799421/hittestpoint-not-working-with-camera

actionscript 3 stretching and rotating a movieclip arrow with drag

﹥>﹥吖頭↗ 提交于 2019-12-24 01:17:07
问题 I am quite new to actionscript, and a bit stuck now. I am trying to make an arrow that is fixed at one end, but the pointy end should be draggable with mouse drag, thus streching and rotating the arrow. It would be also great if I could keep the triangle tip of the arrow from changing size while dragging it. I thought about making a movieclip composed of the tip and of the line separately, the line doing all the "stretching" while the tip simply follows around. I am just not sure how. Most of

Adobe Animate/CreateJS - this.myMovieClip.stop(); not working - no error in console

。_饼干妹妹 提交于 2019-12-13 20:27:15
问题 I'm just getting started in Adobe Animate/CreateJS. I'm trying to control the timeline of a movie clip ("myMovieClip") on frame 1 on the main stage, preventing it from playing. According to the documentation, this should work: this.myMovieClip.stop(); But it does not... the movie "myMovieClip" clip plays immediately on test in the browser, and I'm not getting any error love from the console. It's as if the above line of code wasn't even there. This seems pretty basic. What am I missing? I