Hi Jakkie,
I saw your game. Let me first tell you about the strength:
What you can do is take a bool variable set it true in mouedown event and increase another integer variable in onEnterFrame event only when the bool variable is true and set the bool variable false in mouseup event.
Hope you got it.
Moving to your second question : I found that…
show moreHi Jakkie,
I saw your game. Let me first tell you about the strength:
What you can do is take a bool variable set it true in mouedown event and increase another integer variable in onEnterFrame event only when the bool variable is true and set the bool variable false in mouseup event.
Hope you got it.
Moving to your second question : I found that every thing is fine with your stone path but its not parabolic for this what you need to do is start decrease the Y -Axis after some time.
YOu can take a variable called gravity
say Stone.dy += gravity;
Stone._y += Stone.dy;
So here first Stone.dy will be negative for some time what you are already doing and then after some time it will be positive and start falling. Its nothing but a physics.
Hope all your dought is clear if you have any problem please le me Know.
Thanks
Rupesh
show less