How can i create a blade effect like fruit ninja??
Can you write me a code??
How can i create a blade effect like fruit ninja??
Can you write me a code??
Hi there,
A “blade effect” like fruit ninja is a pretty broad idea, so it depends what you want to do. But in general, you’ll need to use a touch listener to track the player’s finger movement, and you’ll probably want to store the locations of their touch during the “move” phase so that you can draw lines to show it visually and determine if it intersected something.
I see that you’re fairly new to Corona and the forums, so welcome! But it’s important for you to know that you won’t get much traction asking people to write code for you. The hard work of writing code is something you need to learn to do yourself. The forums are a great place to help troubleshoot problems that you’re having with your code, get feedback on ideas you have or approaches you’re taking, etc.
That said, you might try looking at the code exchange (http://developer.coronalabs.com/code/) and seeing if you find anything along the lines of what you’re looking for.
I made a rough test of doing fruit ninja sliceing and used some code there that maybe could work for what you want to achive or point you in the right direction.
video of the effect:
http://www.youtube.com/watch?v=z7C2ZDMP47U
github link:
Hi there,
A “blade effect” like fruit ninja is a pretty broad idea, so it depends what you want to do. But in general, you’ll need to use a touch listener to track the player’s finger movement, and you’ll probably want to store the locations of their touch during the “move” phase so that you can draw lines to show it visually and determine if it intersected something.
I see that you’re fairly new to Corona and the forums, so welcome! But it’s important for you to know that you won’t get much traction asking people to write code for you. The hard work of writing code is something you need to learn to do yourself. The forums are a great place to help troubleshoot problems that you’re having with your code, get feedback on ideas you have or approaches you’re taking, etc.
That said, you might try looking at the code exchange (http://developer.coronalabs.com/code/) and seeing if you find anything along the lines of what you’re looking for.
I made a rough test of doing fruit ninja sliceing and used some code there that maybe could work for what you want to achive or point you in the right direction.
video of the effect:
http://www.youtube.com/watch?v=z7C2ZDMP47U
github link: