Copy link to clipboard
Copied
I'm working on a class project right now for a small 2D interactive game. I have an interactive button that makes the character jump over the hole but I can't get the rest of the classic tween of them skating after it to continue playing. Is it something in the code that it is causing it to do that? This is what I have right now. Thank you for the help.
this.stop();
this.jumpbtn.addEventListener("click", function (jumpbtn)
{
this.gotoAndPlay(40);
}.bind(this));
Copy link to clipboard
Copied
Hi.
Are the jumping and skating animations in the same timeline?
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Hi! I'm not sure. I think they are. I added a photo of what it looks like. Layer 4 is the jumping tween.
Copy link to clipboard
Copied
Thanks.
If you press Enter/Return in this timeline you can see your character on stage jumping and then skating?
Copy link to clipboard
Copied
I have a button that pops up that the user needs to click to trigger the motion tween
Copy link to clipboard
Copied
I mean while you're editing in Animate. What happens if you press the Play button?
Copy link to clipboard
Copied
When I hit the play button it plays every animation in sync
Copy link to clipboard
Copied
Do you mind sharing your file by uploading it to a file sharing service (Creative Cloud, Google Drive, Dropbox, WeTransfer...) and then pasting the link here?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks.
You have a stop call in frame 40 (41). Just remove it.