View Single Post
Old July 30th, 2013 (8:37 PM).
BlackWaltz3's Avatar
BlackWaltz3 BlackWaltz3 is offline
Join Date: Jul 2009
Gender: Male
Posts: 188
First you want to add parameters to the relevant methods. I've outlined these in red below. That way, you can call "pbCallPokemonSelect(a,b,c)" like you want to. Then, you want to move those three lines with the instance variables "@blahblah" into the def, "pbStartScene", as indicated in blue. From now on, if you want to access those values from any method in that class, you only need to use "@blahblah". I'll let you figure out what to do with them after that.

Oh, and as a quick side note, there are better ways of encapsulating your left/right input triggers.

def pbStartScene(starterOne,starterTwo,starterThree)



 pbFadeInAndShow(@sprites) { update }


def pbStartScreen(starterOne,starterTwo,starterThree)


def pbCallPokemonSelect(starterOne,starterTwo,starterThree)
Reply With Quote