Construct 2 - One Trick Everyday #15 - Create image gallery quickly

  • 2 favourites


1,415 visits, 2,038 views



This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Hi Friends,

Sometimes we need image gallery in our games so I am going to tell you simplest and fastest trick to create an image gallery. Just follow simple steps below or download free capx for help. If you find any difficulty then see full demonstration in the video here

Step1: add image sprites like I showed in video

Step2: add direction arrow sprites

Step3: Create Global variable index

Step4: subtract 1 when user taps on left arrow

Step5: Add 1 when user taps on right arrow

Step6: When index value is less than 0 set index variable value to no. of images-1 bcz index starting from 0 instead of 1

Step7: here set index% (no. of images in gallery)



  • Order by
Want to leave a comment? Login or Register an account!