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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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?
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.
cool thanks man