Author Topic: AutoPlaying Games  (Read 3939 times)

Tony M

  • Fanatic
  • ***
  • Posts: 395
  • Games Developed: 5
    • MSN Messenger - tonyxna@live.com
    • View Profile
    • Who Cares? Arts
    • Email
AutoPlaying Games
« on: 2008-02-02, 06:36:28 PM »
How would you edit your game project, so it would be automatically played by clicking the left button on the mouse?
~ Current Projects ~
Websites

Like the Facebook page: https://www.facebook.com/WhoCaresArts

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: AutoPlaying Games
« Reply #1 on: 2008-02-03, 08:40:04 AM »
Use the record and playback wizard to record the game being played.  Then modify the script it generates to be triggered when the Display_MouseDown event occurs.  Of course that only works if your sprite and game are in exactly the same state when the mouse is clicked as they were when you started recording.  To see how to handle mouse clicks, check the FAQ documents -- it's in there somewhere (I think there's a list of GameDev documentation sources in the forums here somewhere, and the FAQ I'm talking about is in there somewhere, but I don't remember off the top of my head).