Sprite Stacking Example - Advanced
A downloadable example project
Download NowName your own price
Feel free to use the code from this project in anything you make! I'd love to see what you do with it, so message me on twitter or anywhere else with your games! That said, please don't use the art from this project, as I will be making a game with it.
For instructions and explanations of what's going on here, visit this article: article
If this helped you out, drop me a follow here or on twitter! It helps a lot :)
Download
Download NowName your own price
Click download now to get access to the following files:
SpriteStackExample.yyz 80 kB
Comments
Log in with itch.io to leave a comment.
Hey! I pulled some code from this into my game. Would you mind if I sold my game (which uses this code, but not the art)? Also, would you mind if I made that game open source? Thanks in advance.
Go for it! I would not especially recommend using this anymore for performance reasons, but don't worry if you are already far along.
also, i have a weird bug where my billboarded sprite always shows on top. whether he's in front, behind, he is always on the front. any idea why this is happening?
Hi dev_dwarf. I've bought your advanced tutorial on sprite stacking for 2$=D and I was wondering if it's possible to make a zoom function for the camera? To scroll the view in and out. I realize that it's not real 3D, and this technique has it's limits, but I'm still curious to know if it's possible. I hope it's possible even with Isometric view (and not perspective).
I tried to reach you on discord but you don't accept DM's from strangers =P
Hello,
Zooming can be accomplished by changing the width and height of the camera. It sounds like you want an easy way to this with a "zoom" variable. The easiest way (if you're working off of this exact code) is to multiply `new_width` and `new_height` by the zoom variable every step, so that changes to the zoom instantly effect the size of the view.
Hope that helps.
Thank you so much. I'll try that =) and yes, I'm working off your project. I'm thinking about making it into a template.