how do i make character vanish?

backhanderbackhander Member Posts: 28
edited November -1 in Working with GS (Mac)
i want to tap on character and make character vanish off the screen. how do i do that? please help me

Comments

  • RodericRoderic Member Posts: 145
    You can set up a rule where when pressed to destroy the actor. That's probably the easiest way.
  • VGXVGX Member Posts: 796
    backhander said:
    i want to tap on character and make character vanish off the screen. how do i do that? please help me

    Theres a Destroy behaviour in (Behaviours) Just drag it into your touch is pressed rule in the actor you want to disappear
  • mangaroomangaroo Member Posts: 419
    destroy is a bit final and resource heavy - an alternative would be to play with the self attribute alpha (found under color) - 1 is max opacity, 0 is not visible at all. you can interpolate for a smooth transition or just change it to 0 when pressed - it will stay at that level till something changes it back though - depends really if you plan on re-using the actors to save on processing or if you only need to do now and then destroy should be ok
  • RedlerTechRedlerTech Member Posts: 1,583
    if you dont want to destroy and just want to vanish change self.color.alpha to 0
  • backhanderbackhander Member Posts: 28
    destroy works fine its instant. thanks roderic and vieraone
  • mangaroomangaroo Member Posts: 419
    test on a device :P
  • backhanderbackhander Member Posts: 28
    i havent viewer yet. still learning to use gamesalad. also i have problem with touchin my charactors i have 1 in front of other and i can touch both. i only want 1 to vanish not 2. please help
  • VGXVGX Member Posts: 796
    Not another one, lol i know what you mean..

    tenrdrmer suggested this to me see if it will help you,
    ..................................................
    make a boolean game attribute called touchallowed

    and then in the (your actor) make a rule
    when touch is inside
    --change attribute game.touchallowed to false
    Otherwise
    --change attribute game.touchallowed to true

    and then add to your touch is pressed rule on the (your actor 2) add the condition game.touchallowed is true
  • backhanderbackhander Member Posts: 28
    ta peeps will try this if not work i will cum back and haunt you
Sign In or Register to comment.