I'm currently teaching myself coding and I've found recursive programming to be a real head-scratcher. I see it a few times in RGSS script and it always brings me to a brick wall.
For an example. I'm trying to make a bit of code that will do something whenever the user changes map. I think I've found what I'm looking for in scene_map line 203 (this is VX Ace):
def perform_transfer pre_transfer $game_player.perform_transfer post_transferendSee that? It calls the method perform_transfer within the definition of perform_transfer. How does this work? Where is actually the nuts and bolts of perform_transfer? I'm feeling really stupid right now someone please help me out!!
Thanks!
For an example. I'm trying to make a bit of code that will do something whenever the user changes map. I think I've found what I'm looking for in scene_map line 203 (this is VX Ace):
def perform_transfer pre_transfer $game_player.perform_transfer post_transferendSee that? It calls the method perform_transfer within the definition of perform_transfer. How does this work? Where is actually the nuts and bolts of perform_transfer? I'm feeling really stupid right now someone please help me out!!
Thanks!