actor come to screen from Random position-UP, DOWN, LEFT, RIGHT

BaherJaberiBaherJaberi Member Posts: 30
edited November -1 in Working with GS (Mac)
hey.
i have some problem by making one actor spawn to screen from different places of iphone screen

i want my actor spawn and appear to the screen from different places and then by touch the actor i redirect it to any other place i want..

did any body make a demo project can help me in it ? or any suggestion or idea ?

Comments

  • ValanValan Member, BASIC Posts: 410
    I did a similar thing in Firelight.

    I think I setup a Game Attributes called Random.x and Random.y
    Calculate random numbers in a scene controller actor using a timer and keep changing the Attributes.

    Rule: When actor is pressed the actor is Destroyed and Spawned using the Random.x and Random.y coords.

    I think now I would change the Alpha to 0, change the Position of the actor to the Random.x and Random.y and change the Alpha back to 1.

    Make the actor non Movable.

    Hope this helps.
Sign In or Register to comment.