yes, thats how you do it.
now that i think about it i've been wasting resources... thats actually pretty smart thanks
which engine you're making your game in?
None, I use a graphics library in C called raylib.