I would like to make a scene like donkey kong country

agueisagueis Member Posts: 420
Hello i would like to make a scene like donkey kong country when he spawns in 9 or 10 multiple barrels, any idea how to make it?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Even after watching a video of DKC gameplay, I can't figure out what you mean. Pretend you're talking to someone who has never played the game... what is it you're trying to do?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • agueisagueis Member Posts: 420
    hello tatiang. When my hero actor jumps into a barrel , the hero actor disappear and is spawned to another barrel when the key a is down, and when he collides with the secod barrel; when the key a is down is spaned to the third barrel,etc.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    So something like this?

    When actor collides with actor [barrel] AND key [a] is down
         Change attribute game.randomBarrel to random(1,10)
         Change attribute self.position.X to randomBarrel*100

    If you space the barrels every 100 pixels, it will land your hero on a random barrel.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • agueisagueis Member Posts: 420
    But, the barrels are all already on the sky, on an specific position, The first is on 200 x 300 y , the second in 1300 x 1000 y , etc.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Then adjust the expression to fit where your barrels are. Or use a table and enter the positions in the table each in one row and then pick a random row of the table.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.