Activating an object

BaKkABaKkA Member Posts: 3
edited November -1 in Working with GS (Mac)
Hey , Im new here , Im just stuck with my first game , here's the problem ..
there are 2 objects , when I choose or ( click ) the first one for example it should start an animation . and the 2nd object should be deactivated and shouldn't respond to any clickings . How should I do that
pllzzzz help :)

Comments

  • BaKkABaKkA Member Posts: 3
    Sorry but didn't work , I mean It worked but I'm still not able to do what I wanted , its my bad , I didnt explain well , look here's the whole thingy if u dont mind
    as u can see in the pic there are 3 stages
    stage one : all of them are inactive , and there should be a number randomly generated between 1 to 3 to choose which ball will be green or "active" , so I created an attribute (integer) named ( ball number ) and as the game starts its generated as random(1,3)

    stage two : here , the first ball was chosen... so I made ( when ball number =1 ) make this ball to ( change image ) to green then when I click that green ball ( which should be the only one which is clickable ) , it turns back to gray "inactive" and generates back a random number between 1 to 3 , to choose another ball , for example at stage 3 its the third ball

    but when I click play its kinda good at the first 3 or 4 clickings , then nothin responds to any clickings ... I think the problem is with this generating that random number , a conflict or something happens , so PLZ help . if u dont mind :)

    http://imageshack.us/f/703/explanationw.jpg/
Sign In or Register to comment.