I’m learning AS3 and I’m trying to build a little interaction where I can throw a square off the stage. It just need to stay on the x-axis, to be thrown either to the left or right.
I found quite a few tutorials where it involves physics. I don’t need anything as complicated as that. With mine, as long as you click down on the square and throw it a bit, doesn’t matter how hard that throwing action is, the square will always be thrown off the stage, depending on the direction of your mouse.
I kind of have the idea in my head that the “throw” feel can be done with tween in a movieclip (since it only need to go to either left or right), which will be activated depending on the direction of the mouse.
I apologies if this is a basic question, I have no idea how to start on it. Please help!
Try using this as a base class for the object that you want to throw.