How do I switch weapons by scrolling?

Get help using Construct 2

Post » Mon Nov 03, 2014 6:28 am

I have an array with all the weapons the player can scroll through saved to it, mouse wheel up goes to the current index +1 and scrolling down goes to the current index -1. This doesn't work though, scrolling up past the last value in the array makes the value zero then loops back to the bottom, scrolling down past the first value makes the value zero and doesn't loop back to the top. How do I make this work?
Posts: 59
Reputation: 497

Return to How do I....?

Who is online

Users browsing this forum: adventurist and 61 guests