|
-
Dec 9th, 2009, 03:53 PM
#1
Thread Starter
Member
Problem with turning images invisible on click event.
Hi there, i'm having a problem with what i thought would actually be a pretty simple task. In my form i have an image array containing 9 images with indexes from 0 to 8 inclusively. What i want to happen is when the form is clicked, or when an object is clicked, i want it to do the following:
If the first image in the array is visible, then set it's visibility to false, otherwise, if the first image in the array is not visible, then set the next image in the array's visibility to false. Then if the second image's visiblity is set to false, then set the next image in the array's visibility to false. And so on and so forth.
Basically whats happening is it's a reload function for a game so that when you click, one of 9 images of a bullet is made invisible. Upon the next click, the next image in the sequence's visibility is set to false if the previous image in the sequence's visibility is false.
For some reason i am having a great deal of trouble coding this and so i would appreciate any help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|