dxc
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by dxc
-
-
-
As long as we get to turn it off if we want to, which it sounds like you're planning on doing, I'm happy.
I heart GS.
-
I want to be able to seamlessly jump between different states of the animation. For example, let's say there's a walk, run, sprint, and idle animation (in that order). Let's say I'm running and I want to sprint. I can use play("sprintFrame") and it'll go straight to that label, but then if then if the legs aren't exactly how they should be on that frame, it'll look jumpy. I tried using tweenTo, but it plays all the animations in between. I'm thinking of using a fromTo, but then I'd have to manually get the current size, position, and rotation of everything. That could get ugly. Is there a better way that I'm not thinking of?
Thanks for always proving such amazing support for newbs like me!!!
-
Oh, turns out it's super easy.
transformOrigin:"65px 77px"
-
1
-
-
-
Works perfectly. Thanks!!!
- Lance
-
I thought it might have something to do with Snap or calling the node, but even if you take snap out of the equation, the same thing happens:
Draggable.create($("#geometricOctopus2"), {type:"x,y", bounds:bounds});
-
Though bounds size reacts slightly differently when I put in hard-coded numbers (codepen updated), but the bounds still move every time you let go of the image.
-
Check out the Codepen and you'll notice that you're able to drag the octopus to the left a bit before the bounds stop you from going further. You can't go to the right at all. After you let go, you'd expect to be able to drag it to the right (back to where it started), but it seems as though the bounds reset based on the image's relative position. When you drag it, you can't go to the right, but you can go further to the left than you originally could.
Thanks for your help!
-
You, Diaco, are the best.
-
-
Oh, I didn't realize transformOrigin wouldn't work in IE. That makes life a little tougher. I may have to just be content with the animation not working in IE . . . stupid IE.
-
Oh how I hate IE. I have this working in all browsers, including mobile iOS. The only place it doesn't work is in ie. Everything shows up as it should, but none of the movements happen. I'm not even sure where to start. Thanks for your help! Here's the non-codepen version if that helps: http://aprendagames.com/stock/error_pages_robot/headlessRobot/?errorcode=404
-
That's exactly what I needed, thanks!
-
Blending Animations (ie walk, jump, idle)
in GSAP
Posted
Sorry I was being so confusing! Diaco, I'm pretty sure that's just what I needed. Thanks!