How to control an Actor so one Moves up another Moves Down
I'm trying to develop a colouring book app. I have a serious of coloured crayons at the bottom of the screen. I would like to have it so when 1 of the actors is clicked the one next to it moves up and can be selected. Once that is clicked the one next to that moves. If I have for instance 30 actors would I need 30 GAME attributes or would it be far more simple to use replace image and have 2 states up and down. I have attached a picture just to clarify what I mean.
<img src="http://i75.photobucket.com/albums/i282/cmw333/photo-3.jpg" border="0" alt="Photobucket">
<img src="http://i75.photobucket.com/albums/i282/cmw333/photo-3.jpg" border="0" alt="Photobucket">
Comments
make an self attribute ID int
so make sure you have 1 in the first crayon, and 2 on the second crayon(you have to double click in the right side of the window, not in the actors place)
IN THE CRAYONS(make sure you click them on the right side)
when attribute ID is 1 ,up? is false, and touch is press, do ....(in the first crayon) and change up? to true
after 0.1 sec
change attribute up? to false
when attribute ID is 2, up? is false and touch is press, do .....(in the second one)
after 0.1 sec
change attribute up? to false
and so on
_________________________
http://www.thatgameforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/
http://gamesalad.com/wiki/
Thanks for your help but I can't get it to work. I am a noobie at GS and a little confused by your instructions. I have uploaded a screen shot of Actor 1 & Actor 2. I did as you mentioned clicked in the scene editor and no the actor window and made sure the ID in Actor 1 was set to ID 1
and Actor 2 ID 2.
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screenshot2011-07-01at104604PM.png" border="0" alt="Game Boolean UP?">
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screenshot2011-07-01at104751PM.png" border="0" alt="Photobucket">
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screenshot2011-07-01at104723PM.png" border="0" alt="Photobucket">
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screen-shot-2011-07-01-at-1054.jpg" border="0" alt="Photobucket">
so what is the prob?
is it that your actor won't even move or if your actor will not go down after another goes up?
Thanks for your help. I worked it out in the end