Can this be done in Gamesalad?

Hi all
Can anyone know if I can put an image on the screen ( run time) and after dropping it on the screen I can scale it ( has + and - button) also I can rotate it?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    The pinch-zoom-rotate mentioned above would work fine but if for some reason you actually wanted +, -, and rotate button(s) to do the job that would be simple to code as well. You have access to every actors scale and rotation through behaviors.
  • justpro5justpro5 Member Posts: 49
    Thanks Darren and Jami .
    OK Darren if I'm going to use the example that you gave me and I have more than 1 image what should I do to make all images have the same properties.
  • CatGoneCrazyCatGoneCrazy Member, PRO Posts: 90
    Make a 'global' attribute and set this to change when you input control commands. So if you had a 'rotate right' button, you'd give it a rule behavior that says when it receives a touch, it changes the value of this global attribute. Now go back to these multiple images you want to rotate (each should be its own actor) then create a rule for each that says its rotation angle should be governed by the global attribute you just created. That way, when you press the button, the global attribute changes and all the actors referencing it will move to copy it. Simples. There are many more ways of doing it and it will need some tinkering to work out when to stop rotating, etc, but you'll have to do that bit. But yes, global attributes are your friends :)
Sign In or Register to comment.