Hello guys,
In an effort to drive myself completely insane, along with all my other todo things in Block Breaker like getting the sounds working correctly, trying to change to way the ball bounces. I decided that I want powerups in the game, also another thing I know nothing about. So before I go too far and get totally lost with the actual powered up ability. I need some pointers on how to get the powerup to drop from the brick that’s destroyed.
Now, what I’m thinking is that I need a brick that’s tagged with the name “powerup” so that just before the brick is destroyed it drops a prefab item. Meaning the counting of items will need to include the “breakable” tag and “powerup” tags. Would this be the correct way of going about it?
And with the prefab item, in the original game as the “powerup” item scrolled down the screen it “rotates”, well it gives the appearance of rotating as it steps through it’s images. Now because we don’t really have access to X and Y screen co-ords we really can’t control the descent of the item, so, would the best way to get it to descend downward to our bat be by using our friend gravity? And I have no idea as to how to scroll through the images as it’s descending - I have a sprite sheet sliced ready for this - to make it look like it’s rotating. Does anyone have any pointers on this? We have changed the images of a sprite and spriterenderer using an array but only after an action has happened, this will have to occur automatically and not so quick as to be unreadable or turn into gibberish.
As always here is a big thankyou in advance.
Regards.