Nicely noted, munkeeb! Oh, yes, I'm well aware of that, and I actually do that exact thing in another game-project I'm working on ("The Bucket Game", which isn't yet ready for me to post), where it was easy to do that because the center of rotation of the bucket was at the top. Placing another sprite on top of it was easy. However, the center of rotation for this cannon is near the bottom, and because this program was simply for test purposes, I didn't bother with adding another sprite and aligning its center of rotation somewhere off in space (the point of which I would have to find by trial and error) so that it aligned right up with the top of the cannon. But thanks for the suggestion! Really, everything helps. ;)
=D (...I used a Taylor series to calculate the sine and cosine of the cannon's angle to get the components of the ball's launch velocity. ...Thanks, Taylor!)
Comments
You need to be logged in to post comments
Add a Comment
you a freeken guinius! check out my prodjects! see if u could give my friends and i some tips!
(view all replies)Comment Reply
Nicely noted, munkeeb! Oh, yes, I'm well aware of that, and I actually do that exact thing in another game-project I'm working on ("The Bucket Game", which isn't yet ready for me to post), where it was easy to do that because the center of rotation of the bucket was at the top. Placing another sprite on top of it was easy. However, the center of rotation for this cannon is near the bottom, and because this program was simply for test purposes, I didn't bother with adding another sprite and aligning its center of rotation somewhere off in space (the point of which I would have to find by trial and error) so that it aligned right up with the top of the cannon. But thanks for the suggestion! Really, everything helps. ;)
(view all replies)Comment Reply
If you put another sprite of the cannon of just the front bit it actually looks like it's coming out of it... 8)
(view all replies)Comment Reply
...WOAH. This is NOT the program I wrote in Scratch. Please download it if you actually want it to work.
(view all replies)Comment Reply