pou may have noticed from the title that this is the first part in a 2 or 3 part set of steps for the epic boss fighter game. This is because the shop mechanic is quite complicated and it requires lots of additional code but now lets just get right into it.
The first thing we need to do is add a button that will allow the player to go to the actual shop and it is a good transition in general.
This is the sprite I chose for the shop button but of course as always feel free to change the sprite if you would like. Now that we have our sprite we can begin to add code to this button.
This code ensures that the shop button does not appear when the Vrunzol backdrop as it would cause obvious problems. Now that we made it so that the backdrop does not show up on the Vrunzol backdrop the next step is to make a plain backdrop that is called shop Option.
Once you do that then we can add our next piece of code and just a fair warning it is a long one.
Now this si all fancy code to make it so that when the mouse hovers over the shop button it will get bigger and slightly darker and when the mouse is taken off the button the effects will go back to normal. We are onto our last step for this part of adding the shop.
With this final piece of code when the mouse clicks on the shop button it will switch backdrops to the actual shop to buy stuff. Then this backdrop should pop up.
Thanks for reading this blog and if you want check out my YT channel @Drago Gaming link:https://www.youtube.com/channel/UCrlNUqQVBxLIbdltHQBdcYg?