I then created the bullet by creating a new scene and importing the bullet texture to a new sprite node. I also added a shape collision and changed it from a square to a circle collision box to properly represent the shape of the cannon ball.
After that I added a script to the cannon node and began the coding to make the cannon fire which will be in the screen cap below.
This code is unfinished and will hopefully be finished next session, most likely the first part of this tutorial will be complete by the end of the next day.
No comments:
Post a Comment