[SOLVED] I want a sliding effect on images loaded as textures when a button is clicked

If I’m adding your code at the start it won’t go into init() function. I have added some comments if it makes you look at the code better.