Adding the cherry-throwing capability

In Chapter 7, Implementing our Player Character, we demonstrated the Cucumber Man's throw animation using the E keyboard key. In this section, we will make the necessary changes to instantiate a cherry in the Cucumber Man's right hand when the E keyboard key is pressed and then allow it to be launched. We will check to ensure the Cucumber Man has at least one cherry in his inventory so we know whether a cherry should be instantiated or not. Okay, let's get started.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset