Creating duplicate characters as a game mechanic

dow30000dow30000 Member Posts: 0
edited January 2012 in Working with GS (Mac)
I was thinking of making a game where the player performs an action, then a copy of him repeats the action, leaving him free to perform another action. Is this possible to do in GS?

Comments

  • POMPOM Member Posts: 2,599
    What i suggest is ,
    In you Hero , make a self attribute - REAL - call it "action delay"
    Now , in your hero actor you have actions right , so i would wrap those action in a timer , like , lets say your hero jumps ,
    So when game.jump IS true
    TIMER - after "self.action delay"
    Perform the jump.

    Now You gonna need to make a duplicate of your character in the scene , lets call him "Hero 2" for example , double click him in the scene and give
    his "self.action delay" attribute a value - e.g. 1 .

    When you hit the preview and jump you will notice that hero 1 jumps immediately (cause his delay value is 0) , and hero 2 jumps after 1 sec (cause his delay value is 1)
    You can make as much heroes as you like this way with different delays of actions.

    Cheers :D
    Roy.
Sign In or Register to comment.