Menu

.bQuit = true

2004-11-08
2012-12-25
  • Nobody/Anonymous

    i noticed a script in another area of the website about automatic scrolling, i found the information very useful just one question though, when the player is smashed between a solid tile and the edge of the screen can i change the ".bQuit = true" to activate a special function to reset the level? thanks

     
    • Benjamin Marty

      Benjamin Marty - 2004-11-08

      Sure... It'd go something like this:

      With ProjectObj.GamePlayer
         .ActivateFunction(.rMap.Specials("ResetMap"))
      End With

      That would activate a function called "ResetMap" on the map where the player is currently playing.

       
    • Nobody/Anonymous

      keep getting errors, would the lines "With ProjectObj.GamePlayer
      .ActivateFunction(.rMap.Specials("ResetMap"))
      End With" replace the entire line called ".bQuit = true" or just replace the word true, or am i way off?

       
    • Benjamin Marty

      Benjamin Marty - 2004-11-09

      If you are within a "With" block that already says "With ProjectObj.GamePlayer" then all you need to do is replace the .bQuit line with .ActivateFunction(.rMap.Specials("ResetMap")).  But you need to make sure that every map that could cause that code to run has a function called ResetMap then.

       
    • Nobody/Anonymous

      cool thanks man

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.