This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 9th, 2012  |  syntax: None  |  size: 1.00 KB  |  views: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # In C++ code i can do CutsceneVM->playScene("intro");
  2. # it searches for the 'scene' defined as intro
  3. Scene intro;
  4. # background to draw over the map
  5. bg="data/textures/bg/cutscenes/background.png"; # no collision will happen nor gravity if using another bg
  6. # which actors are in the scene and where are their starting positions
  7. archduke (400,200);     # duke is the sprite type (so I can use its animations)
  8. maid (100,200);         # maid (another sprite type)
  9. magnus (100,200);       # player sprite type
  10. # the scene's operations
  11. fadein;
  12. archduke say "She's a WHORE!";          # say command
  13. wait 10;                                # wait 10 seconds before next line
  14. magnus move right 20;                   # move command moves the player x pixels towards direction
  15. waitmove;                               # wait until movement is done
  16. magnus say "Screw you!";                # again say command
  17. magnus move left 100;                   # run off the screen
  18. maid move left 100;                     # make her come with
  19. fadeout;                                # fade the scene to darkness
  20. play scene intro2;                      # and plays the scene named intro2
  21. end;                                    # end of the scene
clone this paste RAW Paste Data